Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
kb:custom_pdf_resolvers [2018/08/18 04:20] – [Custom PDF Resolvers] dstillman | kb:custom_pdf_resolvers [2024/07/26 03:38] (current) – [Example: Extract PDF URLs from a JSON API] dstillman |
---|
====== Custom PDF Resolvers ====== | ====== Custom PDF Resolvers ====== |
| |
<html><p style="color: red; font-weight: bold">This is draft documentation pertaining to Zotero 5.0.56, currently in <a href="/support/dev_builds">beta</a>.</p></html> | Custom resolvers for [[/blog/improved-pdf-retrieval-with-unpaywall-integration/|PDF retrieval]] currently can be configured via the ''extensions.zotero.findPDFs.resolvers'' hidden pref (Advanced preferences → Config Editor). The value should be a JSON string containing an array of configuration objects. HTML and JSON sources are supported. |
| |
Custom resolvers for [[https://forums.zotero.org/discussion/73210/available-for-beta-testing-improved-pdf-retrieval-with-unpaywall-integration|PDF retrieval]] currently can be configured via the ''extensions.zotero.findPDFs.resolvers'' hidden pref (Advanced preferences → Config Editor). The value should be a JSON string containing an array of configuration objects. HTML and JSON sources are supported. | |
| |
You may wish to distribute a custom resolver using a Zotero plugin that adds or updates the pref at startup. | You may wish to distribute a custom resolver using a Zotero plugin that adds or updates the pref at startup. |
Here, the ''oa_locations'' array is matched directly, and ''mappings'' is | Here, the ''oa_locations'' array is matched directly, and ''mappings'' is |
used to assign the ''url_for_pdf'' and ''url_for_landing_page'' properties | used to assign the ''url_for_pdf'' and ''url_for_landing_page'' properties |
from the array objects to ''pdf'' (for a direct PDF link) and ''pageURL'' | from the array objects to ''url'' (for a direct PDF link) and ''pageURL'' |
(for a page where a PDF can be translated). | (for a page where a PDF can be translated). |