zotxt icon indicating copy to clipboard operation
zotxt copied to clipboard

Bibliography format not working. Reports error "Style not installed"

Open shivams opened this issue 3 months ago • 5 comments

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.

shivams avatar Nov 21 '25 07:11 shivams

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.

shivams avatar Nov 21 '25 07:11 shivams

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.

egh avatar Nov 24 '25 17:11 egh

Should be fixed here: https://github.com/egh/zotxt/releases/tag/v7.0.2

egh avatar Nov 24 '25 19:11 egh

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 ?

dglb avatar Nov 26 '25 08:11 dglb

Hm, should have been been updated - let me look into melpa.

egh avatar Dec 01 '25 18:12 egh

Should be fixed now!

egh avatar Feb 06 '26 20:02 egh