aboutsummaryrefslogtreecommitdiffstats
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:28:59 -0700
commit5e15ca96db59858231c83b0af210a6a04054612c (patch)
tree168e1bb20e8360aa72e4761f7346131e7c77122e
parent1975b3267aa20925bb28598a57517a530458b538 (diff)
downloadfatcat-5e15ca96db59858231c83b0af210a6a04054612c.tar.gz
fatcat-5e15ca96db59858231c83b0af210a6a04054612c.zip
doaj: require container linkage for release import
-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"))