How do I make the Unpaywall extension work on my site?
Created by: Richard Orr
Modified on: Mon, 8 Mar, 2021 at 10:07 AM
<meta name="citation_doi" content="10.1038/nature21360"/>
and looks up 10.1038/nature21360 in the API.
If you're a publisher, or run a preprint repository, institutional repository, or any other site with pages about items with DOIs, we'll need to be able to find them for the extension to work. The best, most consistent way for Unpaywall and other applications to find the DOI is by including a meta element as in the example above. The name attributes we recognize are:
Repository software will generally include one of these automatically, often through a plugin. If you're building your own platform, you'll need to include one of these yourself.
Note that the extension can only recognize a page as being "about" one DOI. Sometimes it isn't clear what this should be. For a page that centers on content related to another item with a DOI (a book review, for example) it may not be appropriate to present that DOI as representing the page - especially if the review or other related item has its own DOI.
Richard is the author of this solution article. Did you find it helpful? Yes No