Log In
Register
Upgrade Storage
Home
Groups
Documentation
Forums
Get Involved
BetterBibtex export ItemIDs to .bib file
wakiv
December 4, 2022
Is it possible to export the ItemIDs, or alternatively a zotero-select link that goes back to the item (like zotero://select/library/items/...)?
adamsmith
December 4, 2022
yeah, you could definitely write that in a post-process hook in BBT. The best ID for an item is actually its URI, so you can use item.uri as the call and, if need be, extract the info you want and convert it into a zotero://select link
wakiv
December 4, 2022
Very nice, works great. Thank you!!!
I added this to the 'postscript' under 'export'.
if (Translator.BetterBibLaTeX) {
tex.add({ name: 'zoteroselect', value: zotero.uri.replace(/http:\/\/zotero.org\/users\/\d+\/items\/(\w+)/, 'zotero://select/library/items/$1')});
}
More info on the scripting capabilities of BBT are here:
https://retorque.re/zotero-better-bibtex/exporting/scripting/
Sign In
or
Register
to comment.
Upload image file with the file dialog or by dragging and dropping images onto the dashed region
Select a file
Close
Ok
I added this to the 'postscript' under 'export'.
if (Translator.BetterBibLaTeX) {
tex.add({ name: 'zoteroselect', value: zotero.uri.replace(/http:\/\/zotero.org\/users\/\d+\/items\/(\w+)/, 'zotero://select/library/items/$1')});
}
More info on the scripting capabilities of BBT are here: https://retorque.re/zotero-better-bibtex/exporting/scripting/