summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/arxiv.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-22 14:20:31 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-22 14:20:31 -0700
commit66fd8549b63e718b8cd2ed0252e96166905b999f (patch)
treead6d4df018b80a216ff66257988f6d481316f50a /python/fatcat_tools/importers/arxiv.py
parentc1080f94a49bdb1a036703825cd21ab3f9ca6775 (diff)
downloadfatcat-66fd8549b63e718b8cd2ed0252e96166905b999f.tar.gz
fatcat-66fd8549b63e718b8cd2ed0252e96166905b999f.zip
arxiv: handle multi-DOI
Diffstat (limited to 'python/fatcat_tools/importers/arxiv.py')
-rw-r--r--python/fatcat_tools/importers/arxiv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/arxiv.py b/python/fatcat_tools/importers/arxiv.py
index 31f3722d..befaea52 100644
--- a/python/fatcat_tools/importers/arxiv.py
+++ b/python/fatcat_tools/importers/arxiv.py
@@ -114,7 +114,7 @@ class ArxivRawImporter(EntityImporter):
base_id = metadata.id.string
doi = None
if metadata.doi and metadata.doi.string:
- doi = metadata.doi.string.lower().strip()
+ doi = metadata.doi.string.lower().split()[0].strip()
if not (doi.startswith('10.') and '/' in doi):
sys.stderr.write("BOGUS DOI: {}\n".format(doi))
doi = None