Two questions about protocol handlers for uri

77 views
Skip to first unread message

jl

unread,
Apr 26, 2013, 12:05:14 PM4/26/13
to zoter...@googlegroups.com
Hi, 

I have created a protocol handler for zotfile that opens pdf attachments on a specific page. For example, 'zotfile://open/[key]/[page]' opens the pdf associated with the item 'key' on page 'page'. This is very helpful because I can now add links to extracted annotations, which open the pdf on the corresponding page.

I have two problems though:

a) My protocol handler only works in Zotero for FF. In Standalone, I get a pop-up that asks me which application I want to use to open the link (Mac OS) and when I pick Zotero, nothing happens. My guess is that I still have to add some code to make this work in Standalone because the zotero's uri work in Standalone. 

b) Links only work from generated reports and not directly from the note window, which is a known limitation: https://forums.zotero.org/discussion/25832/note-hyperlinks-in-standalone/
Any chance to make them work form notes. That would extremely useful for this new feature and I guess also for other use scenarios (e.g. opening web links, linking to other zotero items from notes etc.)

Thanks!

jl

unread,
Apr 26, 2013, 3:35:02 PM4/26/13
to zoter...@googlegroups.com

jl

unread,
May 5, 2013, 9:18:32 PM5/5/13
to zoter...@googlegroups.com
no one? This would be very useful...




On Friday, April 26, 2013 12:05:14 PM UTC-4, jl wrote:

Simon Kornblith

unread,
May 10, 2013, 1:55:25 PM5/10/13
to zoter...@googlegroups.com
To get Zotero Standalone to load PROTOCOL:// links internally, you should set network.protocol-handler.expose.PROTOCOL to true. I'll try to look into the note link issue soon.

Simon

jl

unread,
May 10, 2013, 8:21:20 PM5/10/13
to zoter...@googlegroups.com
Great, thanks Simon! The links from reports in Z Standalone are now working and I changed the whole implementation a little. It now hooks into the zotero protocoll and uses zotero://open-pdf/[key]/[page] to open pdf attachments on a particular page. Looking forward to any updates about opening the links directly from the note...

Thanks!
Reply all
Reply to author
Forward
0 new messages