diff --git a/README.md b/README.md index e4f0e9e..3c47d1d 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,6 @@ The main logic of merging items is described [above](#-how). A few points to emp
JavaScript API - ```typescript async Zotero.arXivWorkflow.merge( preprintItem: Zotero.Item, @@ -130,12 +129,13 @@ To use this feature, select (and only select) the PDF you want to open by defaul Under the hood, this plugin does something "dirty". - That is because Zotero does not have the functionality of setting the default PDF to open. It determines the PDF to open by checking and sorting by: + - The attachment is a PDF - The URL field of the PDF matches the URL of the parent item - `dateAdded` of the PDF + Or in SQL: ```sql @@ -143,6 +143,7 @@ ORDER BY contentType='application/pdf' DESC, url=? DESC, dateAdded ASC ``` Therefore, to make Zotero perfer a specific PDF, this plugin + 1. sets URL field of the PDF attachment the same as that of parent item 2. sets the `dateAdded` field to be the oldest among all PDFs of parent item
@@ -150,7 +151,6 @@ Therefore, to make Zotero perfer a specific PDF, this plugin
JavaScript API - ```typescript async Zotero.arXivWorkflow.preferPDF( selectedAttachment: Zotero.Item @@ -164,9 +164,10 @@ This function assumes that the argument is a PDF attachment. Currently, no check ### 📄 Search for updated version of an arXiv paper If you have a preprint item for the arXiv paper, and you want to find if it has been published on journals or updated on arXiv, and then update the information, you can right click on the preprint item and select "Update arXiv paper". This will search: + 1. Published versions by trying: - 1. [arXiv](https://arxiv.org) for the "Related DOI" field, which may be updated if the paper got published - 2. [Semantic Scholar](https://www.semanticscholar.org) API + 1. [arXiv](https://arxiv.org) for the "Related DOI" field, which may be updated if the paper got published + 2. [Semantic Scholar](https://www.semanticscholar.org) API 2. If no published version found, the plugin will search [arXiv](https://arxiv.org) for updated versions > [!Note] @@ -179,7 +180,6 @@ After that, the preprint item and the newly created journal item will be merged
JavaScript API - ```typescript async Zotero.arXivWorkflow.arXivUpdate( preprintItem: Zotero.Item @@ -201,7 +201,6 @@ Say you have an arXiv paper PDF and import it into Zotero. Zotero finds that it
JavaScript API - ```typescript async Zotero.arXivWorkflow.updatePDF( journalItem: Zotero.Item diff --git a/addon/chrome/content/preferences.xhtml b/addon/chrome/content/preferences.xhtml index d1c4d27..c8f4ee7 100644 --- a/addon/chrome/content/preferences.xhtml +++ b/addon/chrome/content/preferences.xhtml @@ -18,7 +18,7 @@ /> - +