Bug 32387

Summary: "Image from Amazon.com" displayed even if AmazonLocale is not set to american
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32388
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 15:48:03 UTC
I noticed that, in the record details in the staff interface, the message under the amazon cover image is "Image from Amazon.com" even when AmazonLocale is set to another site than american. The message should either be "Image from Amazon" for all locales, or the message should change depending on the locale.

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 catalog 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)

   --> Note that under the image, it says simply "Amazon cover image", this is ok

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

Maybe we could use the same message ("Amazon cover image") everywhere?
Comment 1 Caroline Cyr La Rose 2022-12-01 16:13:30 UTC
Created attachment 144381 [details]
Sample records

Oops, I had forgotten the sample records file!