Alternative to zotero:// protocol as direct http request (so it works in Google docs)

I'd like to link from a Google doc to an item in the Zotero client. This means I need to have a web link, that is recognised by Google Docs as a web link; and of course the link needs to be able to select the item in the Zotero client.

Zutilo offers to copy these two links:

zotero://select/items/7_MEBM3FIW - pasted into your browser, this opens the item in your library in the Zotero client. However, google docs doesn't recognise this as a link.

https://www.zotero.org/groups/2249382/items/MEBM3FIW - pasted into your browser, this opens the item in the web library. So while it's of course recognised as a link, it points to the web library, not the client.

Is it possible to rewrite "zotero://select/items/7_MEBM3FIW" as |http://127.0.0.1:23119/.../selectItems/.../MEBM3FIW" ? I looked at /connector/selectItems on https://www.zotero.org/support/dev/client_coding/connector_http_server, but there's no example.

I think it would be really helpful to have this functionality within the Google Docs plugin: I.e. when you click in item to have two choices: (1) change the reference (currently implemented) and (2) reveal the item in Zotero. (Use case: I may not just want to cite the item, but access my notes on the item in writing the paper.)
  • From the Add/Edit Citation window, you can click on the item’s blue bubble and then click Show in Library. (This is the case in the Word plugin, and I believe also in Google Docs.)
  • edited December 8, 2018
    Yes, that works. When you say edit in Zotero, the item bubble comes up, and you can double click it, and then 'locate'. Would be really nice to have a quicker way... like http://127.0.0.1:23119/.../selectItems/.../MEBM3FIW :)

    Basically, my use case is that I am in Zotero already, and I'd like to insert a link that allows me to get back to Zotero. I suppose it would be nice if it was possible to copy create a link in Zotero that could be pasted as a reference recognised by the gdocs plugin. However, for me it would be fine just to have link like http://127.0.0.1:23119/.../selectItems/.../MEBM3FIW. Otherwise the workflow is awkward: I already have the article selected, but then need to search it via Google docs, and when I get back click several times. Of course, for one article it's fine, but I'm trying to build up a literature review, so it's just too complicated.
  • Similar to copying with Zutilo, but for pasting text extracted with ZotFile: enable the %(uri) option, see https://forums.zotero.org/discussion/74966/zotfile-extracting-more-features-of-annotations#latest. The uri appears in the extracted text and (like the Zutilo copy) has the item id in it.
Sign In or Register to comment.