Summary: | Improve the use of ASIN for retrieving cover images from Amazon | ||
---|---|---|---|
Product: | Koha | Reporter: | Julie Emond-Collecto <julie.emond> |
Component: | Cataloging | Assignee: | 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
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) 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... |