summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2019-12-26 23:52:25 +0100
committerMartin Czygan <martin.czygan@gmail.com>2019-12-28 23:07:32 +0100
commitd0fea0bb56c80caa1bb32a725d1ed4424df5ac39 (patch)
tree5b43647e93e891d4c0a49df335366a4ebc4d8e64 /python/fatcat_tools/importers
parent133cc910c07187a349a336b1b7107d67dc3aed3e (diff)
downloadfatcat-d0fea0bb56c80caa1bb32a725d1ed4424df5ac39.tar.gz
fatcat-d0fea0bb56c80caa1bb32a725d1ed4424df5ac39.zip
datacite: treat untyped names as people
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/datacite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 322e3db9..0de15a18 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -274,7 +274,7 @@ class DataciteImporter(EntityImporter):
for i, c in enumerate(attributes['creators']):
nameType = c.get('nameType', '') or ''
- if nameType == 'Personal':
+ if nameType == 'Personal' or nameType == '':
creator_id = None
for nid in c.get('nameIdentifiers', []):
if not nid.get('nameIdentifierScheme').lower() == "orcid":