Improve the integration wtih better-bibtex
Bubblbu opened this issue · comments
Currently, ZotNote is accessing is opening the better-bibtex.sqlite.bak (the backup of the database) database because of locking issues once Zotero is running. This obviously comes with several drawbacks and issues.
I am hoping that a better approach might be the scripting API that better-bibtex provides. https://retorque.re/zotero-better-bibtex/exporting/scripting/
I found a code snippet that accesses a search endpoint on the running local webserver of the BBT instance and retrieves a Zotero item for a BBT citekey
curl http://localhost:23119/better-bibtex/json-rpc -X POST -H "Content-Type: application/json" -H "Accept: application/json" --data-binary '[{"jsonrpc": "2.0", "method": "item.search", "params": ["SEARCH_TERM"] }]'
This has been implemented with pre-release 0.2.0