aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/importers
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-07-19 14:28:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-07-19 14:29:56 -0700
commit89bf5c123e598252c4c8fe517bf46a6ac08c82ae (patch)
tree6d2d2082ea5097a3da93f6450d1ce5ab982e3838 /python/fatcat_tools/importers
parent502f3d43184a5bfb47418e3d2d4fa3bfcb022258 (diff)
downloadfatcat-89bf5c123e598252c4c8fe517bf46a6ac08c82ae.tar.gz
fatcat-89bf5c123e598252c4c8fe517bf46a6ac08c82ae.zip
doaj: require container linkage for release import
Diffstat (limited to 'python/fatcat_tools/importers')
-rw-r--r--python/fatcat_tools/importers/doaj_article.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/doaj_article.py b/python/fatcat_tools/importers/doaj_article.py
index 8f5e7acf..2459e8f3 100644
--- a/python/fatcat_tools/importers/doaj_article.py
+++ b/python/fatcat_tools/importers/doaj_article.py
@@ -100,6 +100,10 @@ class DoajArticleImporter(EntityImporter):
container_name = None
break
+ if not container_id:
+ self.counts['skip-no-container'] += 1
+ return None
+
volume = clean_str(bibjson["journal"].get("volume"))
# NOTE: this schema seems to use "number" as "issue number"
issue = clean_str(bibjson["journal"].get("number"))