diff options
Diffstat (limited to 'python/fatcat_tools/importers/grobid_metadata.py')
-rw-r--r-- | python/fatcat_tools/importers/grobid_metadata.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py index bc09ec8f..84771083 100644 --- a/python/fatcat_tools/importers/grobid_metadata.py +++ b/python/fatcat_tools/importers/grobid_metadata.py @@ -144,8 +144,12 @@ class GrobidMetadataImporter(EntityImporter): if not extra: extra = None + title = clean(obj['title'], force_xml=True) + if not title or len(title) < 2: + return None + re = fatcat_client.ReleaseEntity( - title=clean(obj['title'], force_xml=True), + title=title, release_type="article-journal", release_date=release_date, release_year=release_year, |