diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-24 18:40:01 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-24 18:40:01 -0700 |
commit | d00271db5a56d0b0bbcdfc8337e8a949972acb5f (patch) | |
tree | 278718e68966607d788e6f54f3f9daa1f433e88a | |
parent | 11ead5cdc1df5f8e356f7c3b3ec274e3f382b5c6 (diff) | |
download | fatcat-d00271db5a56d0b0bbcdfc8337e8a949972acb5f.tar.gz fatcat-d00271db5a56d0b0bbcdfc8337e8a949972acb5f.zip |
crossref: allow 'name' fallback (for groups, etc)
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 2 |
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 |