From 703ce536e20c1c25f38cab575fe645b56fb692fa Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 16 Jan 2021 16:21:21 -0800 Subject: small corrections to schema/transform --- fatcat_scholar/transform.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar/transform.py') diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index b65197f..417fe38 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -277,7 +277,9 @@ def biblio_metadata_hacks(biblio: ScholarBiblio) -> ScholarBiblio: # noqa: C901 """ # valid year - if biblio.release_year and biblio.release_year > 2025: + if biblio.release_year and ( + biblio.release_year > 2025 or biblio.release_year < 1500 + ): biblio.release_year = None biblio.release_date = None @@ -386,7 +388,7 @@ def generate_tags( if container.extra.get("platform"): # scielo, ojs, wordpress, etc tags.append(container.extra["platform"].lower()) - if biblio.doi_prefix == "10.2307": + if biblio.doi_prefix == "10.2307" or biblio.jstor_id: tags.append("jstor") return list(set(tags)) -- cgit v1.2.3