Last active
September 15, 2026 01:30
-
-
Save sjgknight/5af2da3ebbb8c500d2f4f151e3833fcd to your computer and use it in GitHub Desktop.
Bulk append extra field in zotero
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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