diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-22 18:03:18 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-22 18:03:18 -0700 |
commit | 124c99a7e02023606d279e766b403ff42734024e (patch) | |
tree | 920dbc55e121f57a4f85a5e83ca7f5592f751409 /python/fatcat_tools | |
parent | b081f2af2c3f808a4b7f0672351c12428c83ce9e (diff) | |
download | fatcat-124c99a7e02023606d279e766b403ff42734024e.tar.gz fatcat-124c99a7e02023606d279e766b403ff42734024e.zip |
pubmed DOIs need strip()
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r-- | python/fatcat_tools/importers/pubmed.py | 2 |
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]): |