[Koha-bugs] [Bug 31217] Fix Coce JavaScript to hide single-pixel cover images in the OPAC lightbox gallery

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 22 00:02:25 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31217

--- Comment #1 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 137995
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=137995&action=edit
Bug 31217: OPAC coce.js is not hiding the coce-coverimg div for single-pixel
images

This is because OPAC coce.js targets coce-coverimg as a class, when it is
actually an ID.

Test plan:
1. Set:
- CoceHost = https://coce.mykoha.co.nz
- CoceProviders = Select all
- OpacCoce = Enable

2. Add the ISBN of '9780262336499' to a biblio

3. View the biblio in the OPAC. Observe an empty 'Coce image from
Amazon.com' box loads

4. Apply patch and restart services

5. Reload the same biblio record in the OPAC. Observe the empty 'Coce
image from Amazon.com' is not displayed

Sponsored-by: Toi Ohomai Institute of Technology, New Zealand

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list