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/10/09 20:33] – [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 ======
  
-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.+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.
  
 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 61: 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.1539131608.txt.gz · Last modified: 2018/10/09 20:33 by dstillman