From 66fd8549b63e718b8cd2ed0252e96166905b999f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 May 2019 14:20:31 -0700 Subject: arxiv: handle multi-DOI --- python/fatcat_tools/importers/arxiv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools') 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 -- cgit v1.2.3