obsidian-citation-plugin
obsidian-citation-plugin copied to clipboard
The Markdown Citation Link/zoteroSelectURI doesn't work as intended
Hi,
I'm using Obsidian Citation plugin with Zotero and I'm able to access my zotero library and create markdown citations with the proper citekeys and zoteroSelectURI - (zotero://select/items/@citekey). The issue is that the zoteroSelectURI although able to open Zotero isn't selecting the zotero item or open the pdf. I've setup my markdown primary citation template like this - [@{{citekey}}]({{zoteroSelectURI}})
I don't see any errors in the console. Except for this one issue - "Audit usage of navigator.userAgent, navigator.appVersion, and navigator.platform". Which I don't think is relevant to this bug.
I'm not even sure if this is a bug of the citations plugin or the better bibtex addon in zotero or something else entirely.
Any help would be greatly appreciated.
Platform:
- Pop OS 22.04
- Obsidian version 0.15.9
- Plugin version 0.4.4
I can confirm, that there is some kind of bug there. I did some investigation and found:
- The Obsidian Citation Plugin expects
BibLaTex
as database format (although BibTex seems to work too) - The Obsidian Citation Plugin generates the ZoteroUri as follows: zotero://select/items/@[Document Identifier used in BibLaTex]
- Zotero does not resolve the URI (as said by @hussain-beig )
- I used the Zotillo extension for Zotero which allows to copy the item link directly via menu.
- The format of a ZoteroUri provided by Zotillo looks like this:
zotero://select/library/items/XZYH5D
(it uses some kind of Zotero generated internal identifier instead of the document ID as provided in the bib database file. - The format provided of the URI provided by Zotillo works just fine for me.
Conclusion: Zotero is not able to resolve the ZoteroUri format provided by the Obsidian Citation plugin, but in general is able to resolve a proper formated URI to a document.
Question to me is: Since this generated identifier (as provided by the Zotillo plugin) is not exported to the bib file, how to generate this URI by the Obsidian Citation Plugin? All the data comes from the bib file, and if the generated identifier is not there, there is no chance to generate this URI.
Another approach is to fix the issue on the Zotero side, so that the URI with the document identifier (@[Document Identifier]) works. But I am surprised that this does not work out of the box...
@hussain-beig , From here I got the information how to fix the issue you mentioned above:
You have to install the BetterBibTex Addon: https://retorque.re/zotero-better-bibtex/
After installing, using Zotero links with CiteKeys work perfectly for me.
I suggest to close the issue, since it can be fixed by installing the addon. :-)
Reading the link above, this issue isn't really fixed as it requires changing the format of your bibtex export (to use zotero-internal item IDs as a cite key). However, there's probably nothing for this package to do about it—it's on the zotero side.
Zotero fixed it!
The URI format is zotero://select/items/@<citation key>
. Note the @
!
https://forums.zotero.org/discussion/103505/open-cite-key-in-zotero-from-command-line-shortcut-whatever