From 626d85a693bef8dd8af85906f089d300e45d9f09 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 7 Jul 2019 19:40:59 -0700 Subject: ia_pdf_match.py bugfix --- python/ia_pdf_match.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/ia_pdf_match.py b/python/ia_pdf_match.py index 60b7843..bc814de 100755 --- a/python/ia_pdf_match.py +++ b/python/ia_pdf_match.py @@ -13,8 +13,8 @@ Ouput is insertable fatcat "match" JSON - dois (list) - pmcid -- jstor_id -- arxiv_id +- jstor +- arxiv When invoking import matched, be sure to: @@ -33,7 +33,7 @@ def parse(obj): extid_type = None extid = None if obj['metadata']['identifier'].startswith('arxiv-'): - extid_type = 'arxiv_id' + extid_type = 'arxiv' extid = obj['metadata'].get('source') if not extid: sys.stderr.write('skip: no source\n') @@ -55,7 +55,7 @@ def parse(obj): assert extid.startswith("PMC") int(extid[3:]) elif obj['metadata']['identifier'].startswith('jstor-'): - extid_type = 'jstor_id' + extid_type = 'jstor' extid = obj['metadata']['identifier'].replace('jstor-', '') int(extid) else: -- cgit v1.2.3