Web books incorrectly select provider + display incorrect toast #9639
Labels
Lead: @cdrini
Issues overseen by Drini (Staff: Team Lead & Solr, Library Explorer, i18n) [managed]
Priority: 1
Do this week, receiving emails, time sensitive, . [managed]
Type: Bug
Something isn't working. [managed]
Milestone
Problem
Problem 1
When a patron clicks the Read button on a web book, a toast message is displayed about visiting an external site, etc.
When there are multiple results on a search, e.g., https://testing.openlibrary.org/search?q=format%3A%22Web+book%22&mode=everything&page=2, clicking to read a web book always renders the
direct_read_button.html
template, regardless of what template should be rendered (e.g.openstax_read_button.html
.Problem 2
Closely related, but, at least for
DirectProvider
s, the toast message for a subsequentDirectProvider
result will display the toast message for the first one.Relevant URL(s)
Reproducing the bug
direct_read_button.html
, such as OpenStax or Standard Ebooks.DirectProvider
, other than the first result to useDirectProvider
.DirectProvider
/direct_read_button.html
, and (2) always displays the toast assocaited with the first rendering of thedirect_read_button.html
template.Edited 2024-07-30 to
Context
Notes from this Issue's Lead
Proposal & constraints
Related files
Stakeholders
@cdrini
Instructions for Contributors
The text was updated successfully, but these errors were encountered: