From d00271db5a56d0b0bbcdfc8337e8a949972acb5f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 24 Jun 2019 18:40:01 -0700 Subject: crossref: allow 'name' fallback (for groups, etc) --- python/fatcat_tools/importers/crossref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools') 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 -- cgit v1.2.3