Zotero 5.0.96.3
zotxt 5.1.4
Hook 3.4.1
I’ve installed zotxt and was hoping to be able to link to a Zotero library item (following this discussion).
The problem I’m getting is the ‘no linkable items’ message.
I’ve checked zotxt. Initially using
curl -s -d selected=t&format=json -G http://127.0.0.1:23119/zotxt/items
which throws an error but by experimenting found that removing the ‘&format=json’
` curl -s -d selected=t --get http://127.0.0.1:23119/zotxt/items
which produces
[
{"id":"noauthor_iso/iec/ieee_2011","citation-key":"noauthor_iso/iec/ieee_2011","issued":{"date-parts":[[2011]]},"publisher":"International Standards Organisation","title":"ISO/IEC/IEEE 42010: 2011: Systems and Software Engineering, Architecture Description","type":"report","URL":"https://www.iso.org/standard/50508.html"}
]
returns the selected reference item in what looks like a JSON format.
Next I checked the AppleScript in Hook under Zotero > Get Address
The AppleScript throws an error. At the end of the script the line
set theLink to item 2 of theTextItems
causes an error because there is only 1 item - the citation key. Changing this from ‘2’ to ‘1’ produces a result for theLink
[ISO/IEC/IEEE 42010: 2011: Systems and Software Engineering, Architecture Description](zotero://select/library/items/noauthor_iso/iec/ieee_2011)
which looks like the correct markdown link.
… but I still have no linkable items as far as Hook is concerned.
On pasting the Markdown link and clicking on it I get Zotero opening but it selects all of the references and all of the enclosed snapshots, notes et al i.e. the focus of the selection is not the specified reference but the entire collection so for some reason the URL scheme zotero://select/library/items/id isn’t working either.
I guess the first problem is to get a working zotero:// link but I’d like to understand how then to get rid of the ‘no linkable items’ error.