From 44789527744ab54b4ed5cf52c88a464a9d34ef2a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 16 Jan 2021 16:27:28 -0800 Subject: improve 'oa' tag calculation --- fatcat_scholar/transform.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fatcat_scholar/transform.py') diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py index 417fe38..6c2df90 100644 --- a/fatcat_scholar/transform.py +++ b/fatcat_scholar/transform.py @@ -369,7 +369,7 @@ def generate_tags( if primary_release and primary_release.container: container = primary_release.container if container.extra: - if container.extra.get("doaj"): + if container.extra.get("doaj") or biblio.doaj_id: tags.append("doaj") tags.append("oa") if container.extra.get("road"): @@ -377,12 +377,12 @@ def generate_tags( tags.append("oa") if container.extra.get("szczepanski"): tags.append("szczepanski") - tags.append("oa") + if biblio.publisher_type not in ["big5"]: + # szczepanski not accurate OA flag for some large publishers (eg, Springer) + tags.append("oa") if container.extra.get("ia", {}).get("longtail_oa"): tags.append("longtail") tags.append("oa") - if container.extra.get("sherpa_romeo", {}).get("color") == "white": - tags.append("oa") if container.extra.get("default_license", "").lower().startswith("cc-"): tags.append("oa") if container.extra.get("platform"): -- cgit v1.2.3