aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 18:03:18 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 18:03:18 -0700
commit124c99a7e02023606d279e766b403ff42734024e (patch)
tree920dbc55e121f57a4f85a5e83ca7f5592f751409
parentb081f2af2c3f808a4b7f0672351c12428c83ce9e (diff)
downloadfatcat-124c99a7e02023606d279e766b403ff42734024e.tar.gz
fatcat-124c99a7e02023606d279e766b403ff42734024e.zip
pubmed DOIs need strip()
-rw-r--r--python/fatcat_tools/importers/pubmed.py2
1 files changed, 1 insertions, 1 deletions
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]):