Bubblbu / zotnote

Automatize and manage your reading notes with Zotero & Better Bibtex Plugin (BBT)
MIT License
19 stars 0 forks source link

Improve the integration wtih better-bibtex #6

Closed Bubblbu closed 4 years ago

Bubblbu commented 4 years ago

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/

Bubblbu commented 4 years ago

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"] }]'

Bubblbu commented 4 years ago

This has been implemented with pre-release 0.2.0