retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.39k stars 290 forks source link

Cannot manually set extensions.zotero.translators.better-bibtex.citekeyFormat #3013

Open okomestudio opened 1 month ago

okomestudio commented 1 month ago

Debug log ID

R94LWSHU-fio-DEooU4BeJLPn

What happened?

I'm using a configuration manager (Ansible) to bootstrap Zotero installation. For each installation, I update the user.js file (which influences prefs.js) to set the app config settings automatically for my personal configuration.

This works for most settings, but for some reason I cannot get it to update extensions.zotero.translators.better-bibtex.citekeyFormat (and extensions.zotero.translators.better-bibtex.citekeyFormatEdit, for which I'm not sure how they are related). This is the setting for citekey generation formula. It seems to always reset to "auth.lower + shorttitle(3,3) + year" no matter how I set this config item.

I can update these fields manually using GUI. The issue is that I cannot directly update prefs.js or user.js to have the same effect.

There is a somewhat similar field extensions.zotero.translators.better-bibtex.postscript which takes in JavaScript snippet, which I can manually set without any issue.

This is a follow-up ticket for a converstation here.