Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Unpaywall response when article has "avoidUnpaywallPublisherLinks" set to true and host_type is "publisher" - bz 8727 #138

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

karlbecker
Copy link
Member

@karlbecker karlbecker commented Nov 27, 2024

Summary - BZ-8727

Correct the behavior to match the original intent

Description

The epic talked about how when an article has avoidUnpaywallPublisherLinks set to true, we should ignore the Unpaywall API response when the host_type is publisher.

This PR changes it so that, unlike the change in #134 , we will still make the Unpaywall API call when the Third Iron API's avoidUnpaywallPublisherLinks element is set to true. We just won't enhance the page if Unpaywall's API indicates the best_oa_location is host_type of publisher.

Deploy Prerequisites

  • None

Deploy Precautions

  • None

Deploy Informational Notes

  • None

@karlbecker karlbecker self-assigned this Nov 27, 2024
@karlbecker karlbecker force-pushed the feature/BZ-8727-fix-unpaywall-host_type-logic branch from 7fd2989 to ace5cda Compare November 27, 2024 03:11
We'll only look at that after the Unpaywall call is made
… does not result in enhancing a search result for Primo or Summon
@karlbecker karlbecker force-pushed the feature/BZ-8727-fix-unpaywall-host_type-logic branch from c126002 to ece6ff1 Compare November 27, 2024 04:40
@karlbecker karlbecker marked this pull request as ready for review November 27, 2024 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant