summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/crossref.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools/importers/crossref.py')
-rw-r--r--python/fatcat_tools/importers/crossref.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py
index 52bd7465..9150322b 100644
--- a/python/fatcat_tools/importers/crossref.py
+++ b/python/fatcat_tools/importers/crossref.py
@@ -137,6 +137,9 @@ class CrossrefImporter(EntityImporter):
index = None
raw_affiliation = None
affiliation_list = am.get("affiliation") or []
+ # TODO: currently requiring a "name" in all affiliations. Could
+ # add ROR support (via identifier) in the near future
+ affiliation_list = [a for a in affiliation_list if "name" in a]
if affiliation_list and len(affiliation_list) > 0:
raw_affiliation = affiliation_list[0]["name"]
if len(affiliation_list) > 1: