aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/grobid_metadata.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-29 17:03:55 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-29 17:03:55 -0800
commite813056fd25f5d5130c8bbfee4582932fc3842b8 (patch)
tree92717695848adb64548fa6dcc735826914494437 /python/fatcat_tools/importers/grobid_metadata.py
parent1305a503b116e8f8081cbc48dc14c92b4b64b17d (diff)
downloadfatcat-e813056fd25f5d5130c8bbfee4582932fc3842b8.tar.gz
fatcat-e813056fd25f5d5130c8bbfee4582932fc3842b8.zip
tweaks to GROBID metadata import
Diffstat (limited to 'python/fatcat_tools/importers/grobid_metadata.py')
-rw-r--r--python/fatcat_tools/importers/grobid_metadata.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py
index bd22a6e0..d693bc0a 100644
--- a/python/fatcat_tools/importers/grobid_metadata.py
+++ b/python/fatcat_tools/importers/grobid_metadata.py
@@ -110,7 +110,7 @@ class GrobidMetadataImporter(EntityImporter):
if raw.get(key):
cite_extra[key] = clean(raw[key])
if raw.get('authors'):
- cite_extra['author'] = [clean(a['name']) for a in raw['authors']]
+ cite_extra['authors'] = [clean(a['name']) for a in raw['authors']]
if not cite_extra:
cite_extra = None
@@ -127,9 +127,8 @@ class GrobidMetadataImporter(EntityImporter):
release_year = int(obj['date'][:4])
extra = dict()
-
if obj.get('doi'):
- extra_grobid['doi'] = obj['doi']
+ extra['doi'] = obj['doi']
if obj['journal'] and obj['journal'].get('name'):
extra['container_name'] = clean(obj['journal']['name'])