From 63f3a7302e3324ceaf4274b41f99dd1f20a0ac4a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 15 Jun 2026 14:43:53 -0400 Subject: [PATCH] Move PMCID declaration below DOI cleanup --- chrome/content/zotero/xpcom/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index afe7830780..0e9b562e11 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -1276,8 +1276,8 @@ Zotero.Attachments = new function () { var resolvers = []; var doi = item.getField('DOI') || item.getExtraField('DOI'); - var pmcid = item.getField('PMCID'); doi = Zotero.Utilities.cleanDOI(doi); + var pmcid = item.getField('PMCID'); if (pmcid) { let matches = pmcid.match(/\bPMC\d+\b/i); pmcid = matches && matches[0].toUpperCase();