From d5d3d17b681ce7ba91ae4aedad52cd306b254c91 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 1 Dec 2018 16:40:39 -0800 Subject: do actually require title for crossref import --- python/fatcat_tools/importers/crossref.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/fatcat_tools') diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index a75b1d5e..1ea47707 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -75,9 +75,9 @@ class CrossrefImporter(FatcatImporter): returns a ReleaseEntity """ - # Previously required the 'author' and 'title' keys to exsit, but now don't - #if (not 'author' in obj) or (not 'title' in obj): - # return None + # Do require the 'title' keys to exsit, as release entities do + if (not 'title' in obj) or (not obj['title']): + return None # Ways to be out of scope (provisionally) # journal-issue and journal-volume map to None, but allowed for now -- cgit v1.2.3