www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0714867e6aae0c53f1a88a87ae1c4b4ad59e0184
parent ed4546a56ff38b1f12f69a22f9627ffedf53232b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  8 Apr 2010 13:07:57 +0000

Pushed updated PubMed


Diffstat:
Mtranslators/NCBI PubMed.js | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/translators/NCBI PubMed.js b/translators/NCBI PubMed.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2009-12-17 08:10:00" + "lastUpdated":"2010-04-08 13:10:00" } function detectWeb(doc, url) { @@ -218,6 +218,14 @@ function doWeb(doc, url) { if (uid) { ids.push(uid.textContent.match(/\d+/)[0]); lookupPMIDs(ids, doc); + } else { + var uids= doc.evaluate('//meta[@name="ncbi_uidlist"]', doc, + nsResolver, XPathResult.ANY_TYPE, null); + var uid = uids.iterateNext()["content"].split(' '); + if (uid) { + ids.push(uid); + lookupPMIDs(ids, doc); + } } } }