diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-04 11:41:56 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-04 11:41:58 -0800 |
commit | df72d9f98aef03846e97d3097f655560f4bd4e12 (patch) | |
tree | de37c382e83ac2926b0f4485ecfbe10435b545fa /python/fatcat_tools/importers | |
parent | 5748f3241117b52f5295dc589374ec0c219534e4 (diff) | |
download | fatcat-df72d9f98aef03846e97d3097f655560f4bd4e12.tar.gz fatcat-df72d9f98aef03846e97d3097f655560f4bd4e12.zip |
crossref: don't skip on short/null subtitle
This was a bug. Should only set subtitle black, not skip the import.
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r-- | python/fatcat_tools/importers/crossref.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |