Bug 31188

Summary: Improve the use of ASIN for retrieving cover images from Amazon
Product: Koha Reporter: Julie Emond-Collecto <julie.emond>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, koha, m.de.rooy
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23965
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Julie Emond-Collecto 2022-07-19 14:43:09 UTC
Hi, 

We would like, in the same way as the isbn for books, that the UPC code or the ASIN for amazon enter automatically for the display of images for dvds and music cds. 

In short for other documents that do not have an isbn. 

On other request we see that some have briefly talked about it but no solution except to enter the images by hand has been submitted. A gateway between amazon and koha for the UPC code in the same way as we have a gateway for the simagette with an ISBN.


Thank you for your help
Comment 1 David Cook 2022-07-20 00:40:09 UTC
The cover images code could really use some improvements more generally I think but I think it would take a sponsored effort to do it.

With the UPC, you could use "024$a1234$2upc" from a data point of view, and then update the code to handle that case. 

Using the ASIN would be harder... since asin/Amazon isn't a standard code for the 024 $2 subfield (which is interesting since "spotify" is so clearly there are some fairly recent codes in there)
Comment 2 Koha collecto 2025-05-07 14:20:41 UTC
I think this BZ is obsolete because using the ASIN in 020$a works now (at least in 23.05)+ but ASIN using letters don't work. 

For exemple, this record don't have any cover image : https://sthyacinthe.koha.collecto.ca/cgi-bin/koha/opac-detail.pl?biblionumber=14427

The link for the image should be https://images-na.ssl-images-amazon.com/images/P/B0002DG59K.MZZZZZZZ.jpg

but if I check in my browser's console, the link that Koha tries to retrieve is 
https://images-na.ssl-images-amazon.com/images/P/000259.01.MZZZZZZZ.jpg

Koha "forgets" the letters in the link...