summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/transform.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/transform.py')
-rw-r--r--fatcat_scholar/transform.py6
1 files changed, 4 insertions, 2 deletions
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))