How to import the bibtexkey of a Jabref file
I would like to import my Jabref database in Zotero. The import is fine, the only problem for me is the bibtexkey.
I use it as a cote and I wild like to import this data in the "cote" field of Zotero.
Any idea how to to it ?
Many thnaks in advance for your help.
Sophie
I use it as a cote and I wild like to import this data in the "cote" field of Zotero.
Any idea how to to it ?
Many thnaks in advance for your help.
Sophie
All Zotero exports are done by small javascript files in the translators directory in the Zotero data folder: https://www.zotero.org/support/zotero_data
Changes there take effect immediately, so it's pretty easy to test and you can revert them using the "Reset Translators" button in the preferences, so not much that can go wrong.
BibTeX is imported using BibTeX.js. The citekey is available as item.itemID during import and you could map that to item.callNumber (which I think is what cote in the French version corresponds to)
I tried both solutions and today I prefer the first one because I created my own bibtexkey and I really want to keep them (and not to replace them by an automatically generated key) and as it is precisely a call number, the "cote" field is the right destination.
Many many thanks for your help.
It is always a pleasure to ask a question here and to receive great advices.
Kindly
Sophie
But in my test, my own bibtexkey had been replaced by an automatic one...
As @bwiernik says, the imported key will be displayed at the top of the reference.
@"Sophie Cornu", if it is not displaying the key you had, please open an issue on the BBT github project. Are you by any chance exporting the imported references with "BibTeX" rather than "Better BibTeX"? That would explain why you're seeing automatic keys. I have halve a mind to offer the option to remove the stock Zotero BibTeX translators in my onboarding wizard. This problem of BibTeX vs BBT export happens pretty frequently.
If BBT handles the import, the citekey will show up in the `extra` field (and at the top of the reference in Zotero). If it is then again exported with BBT, that's the key that will be used.
If the reference was imported without BBT installed, Zotero will have done the import, and the citekey is lost; BBT cannot reproduce it from such references, so it will generate a new key. Similarly, the Zotero "BibTeX" export doesn't know about the citation key in the extra field, and will ignore it. To import and keep using existing citation keys in Zotero, importing and exporting with BBT is the only way.
I retry today and I would like to apologize.
I erase the previous tests, I enable the Zotero Better Bibtex extension in Zotero, and I re-import my .bib file after.
My own bibtexkey appears at the top of the reference and in the extra field. It's really great.
Thank you both for your help and the very clear explanation.
Kindly
Sophie