Bibliography format not working. Reports error "Style not installed"
Since a few days back, zotxt started reporting this error when using bibliography format to respond. I have installed the required Chicago style in my Zotero, but it just refuses to work.
❯ curl "http://127.0.0.1:23119/zotxt/search?q=john&method=titleCreatorYear&format=bibliography"
"Style http://www.zotero.org/styles/chicago-note-bibliography is not installed."%
When using other formats (like key, betterbibtexkey, apa, ieee or even chicago etc.), it works fine. So, why is bibliography format suddenly not working? I didn't change any config in my Zotero.
I think there may have been some changes from Zotero. The default installed styles that come with Zotero are these:
❯ curl "http://127.0.0.1:23119/zotxt/styles" | jq ".[].fileName"
"american-chemical-society.csl"
"american-medical-association.csl"
"american-political-science-association.csl"
"apa.csl"
"american-sociological-association.csl"
"chicago-author-date-17th-edition.csl"
"chicago-author-date.csl"
"chicago-notes-bibliography.csl"
"chicago-shortened-notes-bibliography.csl"
"harvard-cite-them-right.csl"
"elsevier-harvard.csl"
"ieee.csl"
"modern-humanities-research-association-notes.csl"
"modern-language-association.csl"
"nature.csl"
"vancouver.csl"
Hence, there is no such chicago-note-bibliography style, but there is a chicago-notes-bibliography (notice the s). Perhaps, this is some change from Zotero side.
Whereas extension/core.js has fixed chicago-note-bibliography (without the s) as the default style:
https://github.com/egh/zotxt/blob/174786f6c065888c505458255396549e5e519fcb/extension/core.js#L23
This needs to be changed to chicago-notes-bibliography (with the s).
I am not sure though. Maybe there is something wrong with my Zotero setup. Others kindly verify if they are facing the issue as well.
Yes, something I think changed at some point in Zotero. It was fixed in emacs in https://github.com/egh/zotxt-emacs/pull/79/files but it looks like there is a hard coded version in zotxt. I will fix and publish a new package.
Should be fixed here: https://github.com/egh/zotxt/releases/tag/v7.0.2
Yes, something I think changed at some point in Zotero. It was fixed in emacs in https://github.com/egh/zotxt-emacs/pull/79/files but it looks like there is a hard coded version in zotxt. I will fix and publish a new package.
Could you release a package on MELPA ?
Hm, should have been been updated - let me look into melpa.
Should be fixed now!