Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb:custom_pdf_resolvers [2018/08/16 07:47] – [Custom PDF Resolvers] dstillmankb:custom_pdf_resolvers [2024/07/26 03:38] (current) – [Example: Extract PDF URLs from a JSON API] dstillman
Line 1: Line 1:
 ====== 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 PDF resolvers currently can be configured via the ''extensions.zotero.findPDFs.resolvers'' pref, which should be an array of JSON 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.
Line 63: Line 61:
 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).
kb/custom_pdf_resolvers.1534420032.txt.gz · Last modified: 2018/08/16 07:47 by dstillman