new beta: citation key field for preprint

49 views
Skip to first unread message

Emiliano Heyns

unread,
Mar 6, 2022, 2:34:19 PM3/6/22
to zotero-dev
The new beta has a citation key field for preprint items, that is populated with the BBT citation key;
  1. where is the code that copies the key in zotero? I've been looking through master but cannot find it
  2. Is there a timeline for when all types will get this field?
  3. Would it be OK to let me handle migration of the keys out of the BBT database? It would make it easier for me to implement a migration strategy. I need to make changes to the BBT database as part of the migration.

Dan Stillman

unread,
Mar 6, 2022, 2:38:46 PM3/6/22
to zoter...@googlegroups.com
There's no code here. It's just a new field that was included with the new item type. It has no special functionality at this point. The field will be added to all types soon, but changing existing types is more complicated than adding a new type, so we started with this.

- Dan

Emiliano Heyns

unread,
Mar 6, 2022, 2:41:12 PM3/6/22
to zotero-dev
Oh, I get it. That field is being filled by calling `getField('citationKey')`, but I've monkey-patched `getField` to always return the key from my DB, so you can edit that field but it immediately reverts to the patched value.
Reply all
Reply to author
Forward
0 new messages