Can I trigger the zotero connectors from a webpage?
Hi all!
I am working on a publication website (open source for open science). I'll post its first journal website URL as soon as it is released here with the hope to gather some feedback from the community/
I already exposed the metadata of the articles so that it can be saved by the Zotero connector without any issue.
However, I would like to make a citation oriented feature where you not only add the reference but also the text you selected as a citation (under the "notes" tab is the best approach I found so far). Think of it as a medium style website based on Zotero for the storage of notes/references & identification.
The process would be as follows:
- You select some text from the article
- a contextual menu pops out with a Zotero button
- you click on it
- it triggers the same as if you clicked on the connector button but with the selected text as a note in the metadata somehow.
As far as I know, it implies doing 2 things I'm not sure I can do:
- Trigger the connector from the webpage
- Add a note in addition to the original metadata (I can edit it as I see fit but I'm not sure that adding notes is exposed by the connector metadata parser.)
Is it possible? I had a quick look at the documentation but couldn't find relevant info. Let me know if I missed something.
Thanks!
I am working on a publication website (open source for open science). I'll post its first journal website URL as soon as it is released here with the hope to gather some feedback from the community/
I already exposed the metadata of the articles so that it can be saved by the Zotero connector without any issue.
However, I would like to make a citation oriented feature where you not only add the reference but also the text you selected as a citation (under the "notes" tab is the best approach I found so far). Think of it as a medium style website based on Zotero for the storage of notes/references & identification.
The process would be as follows:
- You select some text from the article
- a contextual menu pops out with a Zotero button
- you click on it
- it triggers the same as if you clicked on the connector button but with the selected text as a note in the metadata somehow.
As far as I know, it implies doing 2 things I'm not sure I can do:
- Trigger the connector from the webpage
- Add a note in addition to the original metadata (I can edit it as I see fit but I'm not sure that adding notes is exposed by the connector metadata parser.)
Is it possible? I had a quick look at the documentation but couldn't find relevant info. Let me know if I missed something.
Thanks!
https://psyarxiv.com/k9mn3
https://github.com/CenterForOpenScience/ember-osf-preprints
You might also look at running citation-js on your server, which can take structured metadata and format using CSL styles.
I think the idea is to add to Zotero with a note based on selected text. I'm pretty sure that's not currently possible, but might be worth re-considering given the new note editor in Zotero 6
When Zotero ran entirely within Firefox there used to also be a way to add additional selected text to a selected note in Zotero. There are some technical challenges doing that now given browser extension restrictions, but we're hoping to bring it back in the future. For now, you'd have to copy additional text and paste it into the note as a blockquote.
@dstillman Thanks a lot for the info. It looks like it could do the trick with the native contextual menu :-)