aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat/crossref_importer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat/crossref_importer.py b/python/fatcat/crossref_importer.py
index bab3fe2f..37005965 100644
--- a/python/fatcat/crossref_importer.py
+++ b/python/fatcat/crossref_importer.py
@@ -46,8 +46,7 @@ class FatcatCrossrefImporter(FatcatImporter):
return None
# Other ways to be out of scope (provisionally)
- if ((not 'type' in obj) or (not 'container-title' in obj) or
- len(obj['container-title']) < 1):
+ if (not 'type' in obj):
return None
# contribs
@@ -97,7 +96,8 @@ class FatcatCrossrefImporter(FatcatImporter):
publisher = obj.get('publisher')
ce = None
- if container_id is None and self.create_containers and issnl != None:
+ if (container_id is None and self.create_containers and issnl != None
+ and obj.get('container-title') and len(obj['container-title']) > 0):
ce = fatcat_client.ContainerEntity(
issnl=issnl,
publisher=publisher,