I have this code:
const rowID = Zotero.ItemPaneManager.registerInfoRow({
rowID: 'better-bibtex-citation-key',
pluginID: '
better...@iris-advies.com',
label: { l10nID: 'better-bibtex_item-pane_info_citation-key_label' },
position: 'start',
multiline: false,
nowrap: false,
editable: false,
onGetData({ item }) {
log.debug('3081:',
item.id, item.getField('citationKey'))
return item.getField('citationKey') as string
},
/*
onSetData({ rowID, item, tabType, editable, value }) {
Zotero.debug(`Set custom info row ${rowID} of item ${
item.id} to ${value}`);
},
*/
})
but the field keeps displaying the value of the first item it happened to display, and I don't see anything in the logs when I click around (getField is monkey-patched to retrieve the citationKey, but I have also added logging there, and I also don't see those). No relevant errors in the log.