www

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

commit 1fc74a3f93fe76eed9194ab08110198bcb296b49
parent e09c80e5e1b35cdb89d81eba25103386b147be69
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 21 Sep 2009 21:51:54 +0000

Don't save snapshots on PubMed


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

diff --git a/translators/NCBI PubMed.js b/translators/NCBI PubMed.js @@ -8,7 +8,7 @@ "maxVersion":"", "priority":100, "inRepository":true, - "lastUpdated":"2009-04-28 09:15:00" + "lastUpdated":"2009-09-21 21:55:00" } function detectWeb(doc, url) { @@ -65,14 +65,6 @@ function lookupPMIDs(ids, doc) { var PMID = citation.PMID.text().toString(); newItem.url = "http://www.ncbi.nlm.nih.gov/pubmed/" + PMID; newItem.extra = "PMID: "+PMID; - // add attachments - if(doc) { - newItem.attachments.push({document:doc, title:"PubMed Snapshot"}); - } else { - var url = "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=pubmed&cmd=Retrieve&dopt=AbstractPlus&list_uids="+PMID; - newItem.attachments.push({url:url, title:"PubMed Snapshot", - mimeType:"text/html"}); - } var article = citation.Article; if(article.ArticleTitle.length()) {