summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers/datacite.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-09 16:16:20 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-09 16:16:20 +0100
commitda1daa8568be65c39265c1819d28e8796785e600 (patch)
tree15d223dd2d092498a5578a31991ef2332207f41c /python/fatcat_tools/importers/datacite.py
parent6a7591103c7b7d985ad22199138af9378de697f4 (diff)
downloadfatcat-da1daa8568be65c39265c1819d28e8796785e600.tar.gz
fatcat-da1daa8568be65c39265c1819d28e8796785e600.zip
datacite: ignore known unknown values in resourceType*
Diffstat (limited to 'python/fatcat_tools/importers/datacite.py')
-rw-r--r--python/fatcat_tools/importers/datacite.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py
index 4128b3ca..12e0beba 100644
--- a/python/fatcat_tools/importers/datacite.py
+++ b/python/fatcat_tools/importers/datacite.py
@@ -550,9 +550,9 @@ class DataciteImporter(EntityImporter):
resource_type = types.get('resourceType', '') or ''
resource_type_general = types.get('resourceTypeGeneral', '') or ''
- if resource_type:
+ if resource_type and resource_type.lower() not in UNKNOWN_MARKERS_LOWER:
extra_datacite['resourceType'] = resource_type
- if resource_type_general:
+ if resource_type_general and resource_type_general.lower() not in UNKNOWN_MARKERS_LOWER:
extra_datacite['resourceTypeGeneral'] = resource_type_general
# Include certain relations from relatedIdentifiers. Keeping the