Use of a custom citation style for Item Format makes the citation dialog crash
I cannot use the Zotero Integration plugin in some situation because the Zotero citation dialog (or picker bar) would crash if Zotero is configured to use my custom citation "Item Format" in the settings in "Export". Chosing any other style among the default does not cause any issue with the dialog.
It would start then close itself directly, nothing happen and there is no warning in Obsidian.
On Zotero I get the following error in the console:
Also, in the Debug Output I get this error:
I suspect that is has to do with my CSL file and Zotero, not Obsidian. At this point, I don't know what I can do. I already validated the CSL file using https://validator.citationstyles.org/
It is strange that this Export setting, that I use to copy the citation to clipboard from Zotero, affects the citation dialog. They seem unrelated to me.
I have uploaded my CSL file here: https://pastebin.com/ctFhFT5c
It would start then close itself directly, nothing happen and there is no warning in Obsidian.
On Zotero I get the following error in the console:
can't access property "opt", this.style is undefined triggered by [integration.js](chrome://zotero/content/xpcom/integration.js)Also, in the Debug Output I get this error:
TypeError: can't access property "opt", this.style is undefined Zotero.Integration.Session.prototype.cite@chrome://zotero/content/xpcom/integration.js:1558:15I suspect that is has to do with my CSL file and Zotero, not Obsidian. At this point, I don't know what I can do. I already validated the CSL file using https://validator.citationstyles.org/
It is strange that this Export setting, that I use to copy the citation to clipboard from Zotero, affects the citation dialog. They seem unrelated to me.
I have uploaded my CSL file here: https://pastebin.com/ctFhFT5c
Upgrade Storage
If you can use the style in a Word, Google Docs, or LO integration without issue, you'd have to contact the developer for the picker. One other thing you could try is to set a rel="self" link for your custom style, though I don't think that should matter.
Adding
<link href="http://www.zotero.org/styles/lienart_notion_obsidian_testing" rel="self"/>in the CSL file did solve the issue. It is very strange that it is necessary when actually this links does not exist.Also thanks for the context. I did not know that the picker was not an official Zotero feature. Or maybe I understood it wrong and you only refer to the picker version I get when I use Zotero integration plugin in Obsidian.