From df72d9f98aef03846e97d3097f655560f4bd4e12 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 4 Nov 2019 11:41:56 -0800 Subject: crossref: don't skip on short/null subtitle This was a bug. Should only set subtitle black, not skip the import. --- python/fatcat_tools/importers/crossref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/fatcat_tools/importers') diff --git a/python/fatcat_tools/importers/crossref.py b/python/fatcat_tools/importers/crossref.py index faee6aac..3705eb81 100644 --- a/python/fatcat_tools/importers/crossref.py +++ b/python/fatcat_tools/importers/crossref.py @@ -413,7 +413,7 @@ class CrossrefImporter(EntityImporter): subtitle = clean(obj.get('subtitle')[0], force_xml=True) if not subtitle or len(subtitle) <= 1: # subtitle can't be just a single character - return None + subtitle = None if extra_crossref: extra['crossref'] = extra_crossref -- cgit v1.2.3