BetterBibtex export ItemIDs to .bib file

Is it possible to export the ItemIDs, or alternatively a zotero-select link that goes back to the item (like zotero://select/library/items/...)?
  • 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
  • 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.