zotero-better-bibtex icon indicating copy to clipboard operation
zotero-better-bibtex copied to clipboard

Citekey fails to fully refresh if pattern changed before restarting Zotero

Open dstark opened this issue 5 months ago • 5 comments

Debug log ID

MWP4MBT9-fio-ISSA4sfP2y8i

What happened?

This has always been the behavior of shortTitle. shortTitle picks from the Zotero Title field of the item, and by instructing it to take two words, you end up with SemanticsBiblical. If you want the Zotero Short title in the citekey, you must use ShortTitle. The leading capital instructs BBT to take a Zotero field, verbatim.

Thanks so much! I've been searching for this off and on. One thing I'm seeing though in Zotero 7.0.5 stable and 7.0.6 beta (Windows 10) is that if I

  • already have an item with a citekey,
  • change the citekey from a different pattern to use ShortTitle, and
  • refresh a citeky with this new pattern,

then the citekey

  • still displays as the old citekey in the library pane and
  • the citation key box in the item info pane goes blank

It is just a matter of the display to the user, though. The change to the citekey actually does get applied. If I duplicate the item, it will that duplicate will reflect the old citekey. If I then refresh the duplicate's citekey to apply the new pattern to it, I'll get a to differentiate it from the old item. And after restarting Zotero after the change in the citekey pattern, the display to the user shows the current citekeys for both items and other citekey refreshes display instantly as expected.

Originally posted by @dstark in https://github.com/retorquere/zotero-better-bibtex/issues/2985#issuecomment-2361188672

dstark avatar Sep 19 '24 16:09 dstark