output style that includes *both* the VOR DOI and the green OA DOI/link?

So I got some advice about this on social media and want to continue the discussion here, where it's more searchable for the future.

I had asked:

Is there a citation output style that includes *both* the DOI for the version of record *and* a DOI or URL for the self-archived version?

Is there a #Zotero plugin that adds the green #OA links to records in your library -- even if you have access via subscriptions?

And Adam Smith said:
you could take advantage of unpaywall API for this, so add the DOI twice in two formats, both with prefix="https://doi.org/" and with prefix="OA Version: https://unpaywall.org/" (this is within any CSL style of your choice)

Basically add




towards the end of the bibliography section of any CSL style of your choice.
General instructions: https://www.zotero.org/support/dev/citation_styles/style_editing_step-by-step

All that is just recap :)

My new question is:
When I tried that in the Zotero Style Editor (which was super helpful btw), I ended up with a sort of Frankenstein's Monster of a URL.
First it had https://unpaywall.org/ (not hyperlinked) followed immediately by the DOI of the version of record (which was a hyperlink to the VOR).
When I tested that pattern, by copying the whole thing into the browser, with a paper which (I happen to know) has a green OA version, it worked! The link "https://unpaywall.org/10.1177/09567976231221990" resolved to a PDF in an institutional repository. This is great! But, it prompts questions:

1. In this case there is a green OA version for Unpaywall to resolve to. But what happens when there is no green OA version? I tested it with another record which I knew only had a paywalled version, and the link https://unpaywall.org/10.2105/AJPH.2023.307567 resolved to the VOR. That's not ideal.... I'd love it if I could display the Unpaywall link *only* when it actually leads somewhere useful.

2. I'd kind of like it if I could display, not a link that relies on Unpaywall continuing to work, but a link to the underlying green OA document (in the case above where it works, that would be https://dx.doi.org/10.7302/22357). Presumably this would be harder.

3. If it is only possible to have the Unpaywall + VOR DOI link, can I format it so that the hyperlink points to the Unpaywall link, not the VOR DOI?

Sorry it's so long!
  • 1. Yeah, that'd require both having that metadata somewhere in Zotero and using that in a citation style. The former would require an add-on (or manual entry), the latter would be possible but require a hack of some sort to mark for the CSL style that no OA copy exists.

    2. Yes, significantly harder: you'd again need to get the URL/DOI (from unpaywall, presumably) and then add it into the metadata (e.g. into the URL field or somehow into Extra) and then program the citation style accordingly.

    3. See my answer here: https://forums.zotero.org/discussion/comment/457580/#Comment_457580 (which is about the same issue with proxied DOI links)
  • Ok, now I understand more about how this works. And I know how to seek an OA version with unpaywall as a prefix, without having to load the VOR and then use the plugin, so that's a win :)
Sign In or Register to comment.