retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.28k stars 284 forks source link

tex.origdate ignored in citekey generation #1696

Closed kevinmorio closed 3 years ago

kevinmorio commented 3 years ago

Report ID: 6YBCMKDU-euc

Expected behavior: The citekey should be orwell1945 thereby using the year given in tex.origdate.

Actual behavior: The citekey is orwell2008 and thus falls back to the date field.

retorquere commented 3 years ago

I'm sorry -- this has escaped my attention, absolutely didn't mean for it to take so long to respond. Can you get me a new debug log? I didn't pick up 6YBCMKDU-euc and it has since expired.

Almost two months -- apologies!

kevinmorio commented 3 years ago

Of course! No problem, the report ID is 85EV34KP-euc.

retorquere commented 3 years ago

I need a debug log created by right-clicking the item you describe above, and selecting "send debug log" under "better bibtex" in the menu that pops up.

retorquere commented 3 years ago

Can you try replacing tex.origdate: with Original Date: in the extra field? The tex fields don't have any special meaning to BBT other than that they're exported as-is; Original Date: is Zotero's way to add a "field" for things that it does support but does not have a field for in the GUI. BBT will pick it up for citekey generation, it will still be exported as origdate for biblatex exports, and as a side benefit you will also get the original date in Zotero-generated bibliographies.

kevinmorio commented 3 years ago

Report ID: TEQ4634L-euc

Using Original Date: or original-date: works fine. Thank you for the explanation about how this is handled by BBT and Zotero. I only noticed the issue of tex.origdate when importing bibtex entries from clipboard which add tex.origdate in the extra field when present. So it seems to be more an issue of how Zotero imports bibtex entries than with BBT.

github-actions[bot] commented 3 years ago

:robot: this is your friendly neighborhood build bot announcing test build 5.2.110.339 ("import origdate to cheater syntax")

Install in Zotero by downloading test build 5.2.110.339, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 3 years ago

Good point -- build 339 will move origdate to Original Date rather than tex.origdate.

kevinmorio commented 3 years ago

Thanks, that works perfectly! I didn't know that the import functionality is provided by BBT.

retorquere commented 3 years ago

It is when BBT is installed. If BBT is not installed, or if you disable BBT imports, imports are done by Zotero itself, but BBT's import fidelity is much better.