Bug 40814 - Wrong link to original image with OPACAmazonCoverImages
Summary: Wrong link to original image with OPACAmazonCoverImages
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on: 26933
Blocks:
  Show dependency treegraph
 
Reported: 2025-09-15 20:54 UTC by Caroline Cyr La Rose
Modified: 2025-11-21 02:22 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Screenshot of cover image viewer for Virgil (272.16 KB, image/png)
2025-11-21 02:22 UTC, Caroline Cyr La Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2025-09-15 20:54:28 UTC
When viewing a cover image in the OPAC, there is a link "See the original image". When the cover image is an Amazon cover image, the link is something like http://www.amazon/gp/reader... there is no country code (?) like .com or .ca.

I tried playing with AmazonLocale, but it doesn't change the link.

To recreate:
1. Enable OPACAmazonCoverImages
2. Make a search on the OPAC (e.g. poetry)
3. Click on the cover image
4. Hover the mouse cursor over the "see the original image" link
   --> links to www.amazon/gp/reader...

The link should have .com or a country code like .ca.

The goes back as far as 25.05.02 which is where I noticed it, but is also on main, and maybe further back to 24.11 but I'm not sure. I know it's not in 24.05 because back then clicking on the image from the results list went to the record's details page, not to the image viewing window.
Comment 1 Caroline Cyr La Rose 2025-09-15 21:04:25 UTC
Possibly caused by bug 26933
Comment 2 Owen Leonard 2025-10-28 16:35:18 UTC
I can't reproduce this problem. Do you have a value in your AmazonLocale system preference?
Comment 3 Caroline Cyr La Rose 2025-11-21 02:19:48 UTC
I can still recreate this in KTD on main (pulled this morning).

I did the exact test plan I wrote in the first comment. The first search result was Virgil / with an English translation by H. Rushton Fairclough ; revised by G.P. Goold. and the address is http://www.amazon/gp/reader/067499583X#reader-link

I will attach a screenshot.

I checked the AmazonLocale, I didn't change it so it's the one that comes automatically with KTD.

MariaDB [koha_kohadev]> select value from systempreferences where variable = 'AmazonLocale';
+-------+
| value |
+-------+
| US    |
+-------+
1 row in set (0.001 sec)
Comment 4 Caroline Cyr La Rose 2025-11-21 02:22:33 UTC
Created attachment 189823 [details]
Screenshot of cover image viewer for Virgil

This is the screenshot. I simply hover my mouse cursor over the "See the original image" link and there is no top-level domain (.com)