summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/crossref.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-24 18:40:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-24 18:40:01 -0700
commitd00271db5a56d0b0bbcdfc8337e8a949972acb5f (patch)
tree278718e68966607d788e6f54f3f9daa1f433e88a /python/fatcat_tools/importers/crossref.py
parent11ead5cdc1df5f8e356f7c3b3ec274e3f382b5c6 (diff)
downloadfatcat-d00271db5a56d0b0bbcdfc8337e8a949972acb5f.tar.gz
fatcat-d00271db5a56d0b0bbcdfc8337e8a949972acb5f.zip
crossref: allow 'name' fallback (for groups, etc)
Diffstat (limited to 'python/fatcat_tools/importers/crossref.py')
-rw-r--r--python/fatcat_tools/importers/crossref.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index eb4aacdd..4074dfb8 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -196,7 +196,7 @@ class CrossrefImporter(EntityImporter):
raw_name = am['family']
else:
# TODO: can end up empty
- raw_name = am.get('given')
+ raw_name = am.get('name') or am.get('given')
extra = dict()
if ctype == "author":
index = i