[Koha-bugs] [Bug 28180] Use a lightbox gallery to display the images on the detail pages in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 11 15:41:04 CEST 2021


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |Signed Off

--- Comment #46 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
It's a problem in master as well (staff-side) and highlighted at the OPAC as we
have more images coming from external providers.

The code to hide the non-existent images does not work as we expect.
In my case, a new laptop (faster) make the problem more obvious, the JS code is
processed faster than before and we remove the div that contain images from
amazon, google, etc. because the images are not loaded yet.

I think we should fix that on a separate bug report to fix the staff side at
the same time. And obviously this new enhancement won't be pushed until it's
fixed.

You can continue testing with the following (non optimal) patch:

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
index 03f41fe8317..93b3c682f61 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
@@ -1620,7 +1620,7 @@
                             }
                         }
                     } else {
-                        div.remove();
+                        //div.remove();
                     }
                 });

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


More information about the Koha-bugs mailing list