BetterBibTeX citation key when accessing group library via server API (pyzotero)
In view of automatically generating bibliographies for different topics or authors I am writing a Python script which accesses my group library via the server API using pyzotero.
At the same time I would like to use BetterBibTeX and its automatic export feature to create the BIB file which is then used in LaTeX through the abovementioned python script.
However, when accessing library items via the server API (using pyzotero) I cannot find the BetterBibTeX citation key as it is usually available in the Zotero client.
My assumption is that this citation key is only available locally (on the client's side) but not on the server, is that correct?
Is there a way to access the BetterBibTeX citation key or regenerate it automatically?
Or is there another way to easily link each citation key to each library item accessed via the server API?
At the same time I would like to use BetterBibTeX and its automatic export feature to create the BIB file which is then used in LaTeX through the abovementioned python script.
However, when accessing library items via the server API (using pyzotero) I cannot find the BetterBibTeX citation key as it is usually available in the Zotero client.
My assumption is that this citation key is only available locally (on the client's side) but not on the server, is that correct?
Is there a way to access the BetterBibTeX citation key or regenerate it automatically?
Or is there another way to easily link each citation key to each library item accessed via the server API?
If you can't find the information you need, I would suggest to open an issue on github.
Once pinned, the citekey is available in the Extra field of the corresponding item.
Do I understand correctly that the citekey needs to be pinned for each item after it has been added to the library?
Did I miss something or is there no way to automatically have the citekey pinned for every newly added item?
Another (dirty?) way is to export both BIB and JSON files (including citekeys AND the key of the library item) and parse the JSON file to get a kind of lookup table between citekeys and library item key.
autoPin
, which should automatically pin citekeys:https://retorque.re/zotero-better-bibtex/installation/preferences/hidden-preferences/#autopin
https://github.com/retorquere/zotero-better-bibtex/issues/890
The Zutilo add-on provides keyboard shortcuts for BBT, e.g., for pinning or unpinning citation keys.
https://github.com/retorquere/zotero-better-bibtex/issues/1497