selectitems.xhtml can't render correctly

27 views
Skip to first unread message

Yu Qi

unread,
Jul 12, 2024, 7:19:58 AM (4 days ago) Jul 12
to zotero-dev

in zotero -- tools --developers -- run javascript, paste the following script and click run,

the selections can display correctly in zotero beta 96 and former, but not in beta 97-99, which can't show the item content.

however, I can get the right "out" result, whether in zotero beta 96 or 97-99.

Anyone can help me to fix this problem?

Many thanks.


```javascript
function selectItems(itemList) {
var io = { dataIn: itemList, dataOut: null };
window.openDialog("chrome://zotero/content/ingester/selectitems.xhtml",
"_blank", "chrome,modal,centerscreen,resizable=yes", io);
return io.dataOut;
}

templateNames = [
  "[Item] item-notes with metadata",
  "[Note] with metadata",
  "[QuickInsert]",
  "[QuickImport]",
  "[Text] table",
  "[QuickInsertV2]",
];

let out = selectItems(templateNames);
console.log(out);
```



ref.

zotero/chrome/content/scaffold/scaffold.js at 174bde74516f7a5a739845d69f6d4233ca0ecb60 · zotero/zotero

zotero/chrome/content/zotero/ingester/selectitems.js at 174bde74516f7a5a739845d69f6d4233ca0ecb60 · zotero/zotero

zotero/chrome/content/zotero/ingester/selectitems.xhtml at 174bde74516f7a5a739845d69f6d4233ca0ecb60 · zotero/zotero

[Share] Auto-run Better Notes template when opening an item, only when no other notes present · windingwind/zotero-actions-tags · Discussion #109

XY Wong

unread,
Jul 13, 2024, 11:53:35 AM (3 days ago) Jul 13
to zotero-dev
thanks. should be fixed in the next beta.
Reply all
Reply to author
Forward
0 new messages