Data integrity: Internet Archive ID is 't' generating bad thumbnails in carousels #3393
Labels
Affects: UI
Issues with the web site's user interface. [managed]
Lead: @mekarpeles
Issues overseen by Mek (Staff: Program Lead) [managed]
Priority: 3
Issues that we can consider at our leisure. [managed]
Type: Bug
Something isn't working. [managed]
This relates to the slack conversation between @mekarpeles and Brittany. For those who missed it, apparently this fix is not applying to:
https://openlibrary.org/subjects/in_library#ebooks=true&sort=edition_count
when you click right arrow.
The carousel item is rendered on the server side so this is likely an issue in the template.
The template uses the following code
If an Internet Archive ID is available that's used here.
For some reason some books have an inaccurate
ia
field. When that happens a bad URI is created like //covers.openlibrary.org/b/ia/t-M.jpg?default=https://openlibrary.org/images/icons/avatar_book.pngThe template is dumb and will assume if it finds an image a cover exists. ie. It;s the default parameter in the covers api that is causing an issue.
The covers api takes a default parameter.
Two solutions to this
Evidence / Screenshot (if possible)
Related
Very similar to #2836 possibly can be fixed at the same time.
Stakeholders
The text was updated successfully, but these errors were encountered: