BibTex Citation Key not in Web Library?

Hi! I use Better BibTex and on my computer it puts a Citation Key field at the top of "Info", but this doesn't seem to exist on the Web version of my database. Is it only local to my computer?
  • it's only available in the app, but it does sync between devices, just not the the web interface, which add-ons can't change.
  • @adamsmith Can the citation key be inserted to the bibliography through edit the csl file?
  • It might be possible to hack something unofficial right now if you have BBT save it to the Extra field, but official support will only come with a new CSL version and field updates in Zotero, both likely this year (definitely true for CSL, optimistic but no promises for Zotero).
  • Ok, so I think you're saying it's "there" but the web interface just doesn't display it?

    The use case I was hoping for was to refer to items by citation key and a link to a group library.
  • The Extra field might be a reasonable hack, though, especially if I can get BBT to write it in both places for me. Thank you for that suggestion.
  • Got it, thanks
  • The BBT “pin” option saves the key to Extra.
  • With BBT's autoPinDelay option, citation keys will automatically be written to the Extra field.
  • The delay is there so that if you import a new item through the browser addon, you have some time to actually correct problems in the new item before the key is frozen.
  • @ambimorph: the key at the top of the item pane is display-only, and it's there whether the key is pinned or not.

    @johnmy: it can, although it will require a bit of work.
  • Ok, thank you @bwiernik and @qqbb on how to use the pin option for this. It worked, though I guess I have to refresh the whole database. NBD.

    @emilianoeheyns My issue was that it's not displayed at all in the *web library*, so I was wondering if it is part of the synced database or only on my local machine.

    However (oops), it turns out I didn't fully solve the underlying problem.

    I had been hoping to refer people to papers using a link to the public group collection on the web plus the citekey (via a shared database that already has these citekeys in it), but now that I've got the citekey into the Extra, I realised the web library doesn't allow search by field, so it doesn't point them directly to the paper (except by manually reverse engineering it).

    Do any of you know if there is a way to search fields on the web library, or if it's in a an upcoming feature?

    I may just have to suggest they get Zotero accounts to search by key.
  • If you have the keys already, why not store the public link to the item as you store the key? A redirection server would be trivial, heroku could host it for you for free.
  • @emilianoeheyns I thought about trying to use the public link, but I don't see an obvious way to find the link either manually or programmatically, other than searching it myself on my computer and then opening the web library and searching it there based on the author/title, which would be a time consuming and clunky manual process.

    If you could explain what you're thinking more explicitly, I'd be appreciative!

    So, as a concrete example, I set up my public group library so far with only one item in it to test. That one item is here: https://www.zotero.org/groups/2691979/mostly-fat/items/FS9HLUF2/library

    For whatever reason, there is no file on my system with the string FS9HLUF2 in its name or contents that I can find. (Some other items have a corresponding directory in ./Zotero/storage, but that one and many others do not.)

    I suppose I could write something to periodically iterate over all of https://www.zotero.org/groups/2691979/mostly-fat/items/ and parse out the citation key, and then set up a forwarding system, but that is way more work than I wanted to just share bibliographies!
  • The Zutilo add-on provides a "Copy Zotero URIs" function. You can use it to copy URLs for items in Zotero's web library without leaving the desktop program. See here.

    There's also a local version of these links, see here for details. They have the form zotero://select/groups/[groupID]/items/[itemKey]. You get them with Zutilo's "Copy select item links" function.

    Note that Zotero's search functions only search within a given library or group.
Sign In or Register to comment.