Skip to content

Instantly share code, notes, and snippets.

@sjgknight
Last active September 15, 2026 01:30
Show Gist options
  • Select an option

  • Save sjgknight/5af2da3ebbb8c500d2f4f151e3833fcd to your computer and use it in GitHub Desktop.

Select an option

Save sjgknight/5af2da3ebbb8c500d2f4f151e3833fcd to your computer and use it in GitHub Desktop.
Bulk append extra field in zotero
const items = ZoteroPane.getSelectedItems();
for (const item of items) {
let extra = item.getField("extra") || "";
if (!extra.includes("note: *")) {
item.setField(
"extra",
extra ? extra + "\nnote: *" : "note: *"
);
await item.saveTx();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment