Bug 32388

Summary: "Image from Amazon.com" displayed even if AmazonLocale is not set to american (OPAC)
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32387
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Sample records

Description Caroline Cyr La Rose 2022-12-01 16:17:28 UTC
This is the same as bug 32387 but for the OPAC.

In the records details in the OPAC, the message under the amazon cover image is "Image from Amazon.com" even when AmazonLocale is set to another site than american.

To test:

Note: I attached a file of sample records that I use for various image sources, you can import this file into Koha, if needed

      - Download the attached marc file (coverimages.mrc)
      - In the Koha staff interface, go to Cataloging > Stage records for import
      - Click the "Choose file" or "Browse" button and choose the downloaded file
      - Click "Upload file"
      - Click "Stage for import"
      - Click "View detail of the enqueued job"
      - Click "View batch"
      - Click "Import this batch into the catalog"

1. Enable AmazonCoverImages
   1.1. Go to Administration > Global system preferences
   1.2. Search for Amazon
   1.3. Select "Show" in AmazonCoverImages
   1.4. Click "Save all Enhanced content preferences"

2. Set AmazonLocale to canadian (or other locale than american)
   2.1. Select "Canadian" in AmazonLocale
   2.2. Click "Save all Enhanced content preferences"

3. If using the attached records, search the OPAC for "Two gentlemen of Verona";
   if not using the file, search for a record with an ISBN than has an image on Amazon.ca (or chosen locale)

4. Click on the title that has an image from Amazon to access the detailed record

   --> In the image box, notice that it says "Image from Amazon.com" even if AmazonLocale is set to Canadian

5. Click on the image

   --> Note that under the image, it says simply "Amazon cover image", this is ok
Comment 1 Caroline Cyr La Rose 2022-12-01 16:17:54 UTC
Created attachment 144382 [details]
Sample records

File with sample records