From 613e8f6e58838ce7c81f6a1c05fe52bd9089f383 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 23 Jun 2020 18:39:24 -0700 Subject: fix langs inclusion in summarization; remove unused/duplicate fields --- chocula/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chocula/database.py b/chocula/database.py index 2fea774..54d3b60 100644 --- a/chocula/database.py +++ b/chocula/database.py @@ -139,7 +139,6 @@ class DirectoryInfo: for k in ( "issne", "issnp", - "name", "publisher", "abbrev", "platform", @@ -495,7 +494,6 @@ class ChoculaDatabase: extra = json.loads(irow["extra"]) for k in ( "country", - "lang", "issne", "issnp", "publisher", @@ -503,6 +501,8 @@ class ChoculaDatabase: ): if not out.get(k) and extra.get(k): out[k] = extra[k] + if not out.get("lang") and extra.get("langs") and extra["langs"][0]: + out["lang"] = extra["langs"][0] if irow["slug"] in ("doaj", "road", "szczepanski", "gold_oa"): out["is_oa"] = True if irow["slug"] == "ezb": -- cgit v1.2.3