diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-01-16 16:27:28 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-01-16 16:27:28 -0800 |
commit | 44789527744ab54b4ed5cf52c88a464a9d34ef2a (patch) | |
tree | d79d67aa2da766330889df861cbc0281d57718d0 /fatcat_scholar | |
parent | 703ce536e20c1c25f38cab575fe645b56fb692fa (diff) | |
download | fatcat-scholar-44789527744ab54b4ed5cf52c88a464a9d34ef2a.tar.gz fatcat-scholar-44789527744ab54b4ed5cf52c88a464a9d34ef2a.zip |
improve 'oa' tag calculation
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/transform.py | 8 |
1 files changed, 4 insertions, 4 deletions
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"): |