summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/arxiv.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-16 13:53:15 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 11:41:29 -0700
commit6ff79f47c7c7ae27b28685674672e58b7dd4d271 (patch)
tree2470f89de864207da8ccc92151cb35d5e20ba21b /python/fatcat_tools/importers/arxiv.py
parent300665927f578151321b0d91b28f8aadffcf227d (diff)
downloadfatcat-6ff79f47c7c7ae27b28685674672e58b7dd4d271.tar.gz
fatcat-6ff79f47c7c7ae27b28685674672e58b7dd4d271.zip
tweaks to new imports/tests
Diffstat (limited to 'python/fatcat_tools/importers/arxiv.py')
-rw-r--r--python/fatcat_tools/importers/arxiv.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/fatcat_tools/importers/arxiv.py b/python/fatcat_tools/importers/arxiv.py
index c53e47f1..0d0179cd 100644
--- a/python/fatcat_tools/importers/arxiv.py
+++ b/python/fatcat_tools/importers/arxiv.py
@@ -103,7 +103,8 @@ class ArxivRawImporter(EntityImporter):
lang = 'ru'
# more languages?
- release_type = "article-journal"
+ # don't know!
+ release_type = "article"
if metadata.find('journal-ref') and metadata.find('journal-ref').string:
journal_ref = metadata.find('journal-ref').string.strip()
@@ -166,7 +167,7 @@ class ArxivRawImporter(EntityImporter):
title=title,
#original_title
version=version['version'],
- release_type="article-journal",
+ release_type="article",
release_stage='submitted',
release_date=release_date.isoformat(),
release_year=release_date.year,
@@ -294,5 +295,5 @@ class ArxivRawImporter(EntityImporter):
#sys.exit(-1)
if __name__=='__main__':
- parser = ArxivRawImporter()
+ parser = ArxivRawImporter(None)
parser.parse_file(open(sys.argv[1]))