diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-10-12 15:32:20 -0400 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-10-12 15:32:20 -0400 |
commit | eec30791e06e5e9ee9437bdc46d42bec690d604e (patch) | |
tree | 52b78db7afd3ec192ab465b58055a1fc3cc83326 | |
parent | b16965cbbe7221b97d2a226de8f954f6f8e48d1d (diff) | |
download | fatcat-eec30791e06e5e9ee9437bdc46d42bec690d604e.tar.gz fatcat-eec30791e06e5e9ee9437bdc46d42bec690d604e.zip |
don't filter out crossref works based on container-title
-rw-r--r-- | python/fatcat/crossref_importer.py | 6 |
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, |