From 124c99a7e02023606d279e766b403ff42734024e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 May 2019 18:03:18 -0700 Subject: pubmed DOIs need strip() --- python/fatcat_tools/importers/pubmed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/pubmed.py b/python/fatcat_tools/importers/pubmed.py index 923c5492..d31e2f60 100644 --- a/python/fatcat_tools/importers/pubmed.py +++ b/python/fatcat_tools/importers/pubmed.py @@ -377,7 +377,7 @@ class PubmedImporter(EntityImporter): pmid = medline.PMID.string.strip() doi = identifiers.find("ArticleId", IdType="doi") if doi: - doi = doi.string.lower() + doi = doi.string.lower().strip() if doi.startswith('doi:'): doi = doi[4:] if not (doi.startswith('10.') and '/' in doi and doi.split('/')[1]): -- cgit v1.2.3