From 889af465634d0c7d9a6d144d3c05a1c3131f6718 Mon Sep 17 00:00:00 2001 From: Alexander Blanchard Date: Tue, 10 Jun 2025 08:27:40 +0000 Subject: [PATCH] Bug 39223: opac-browse.pl broken Test Plan: 1. Ensure your KTD is set up to use elastic search. 2. In the System Preferences, navigate to Administration Preferences and locate SearchEngine Set this to use Elastic Search and save. In the System Preferences, navigate to OPAC preferences and locate opacBrowseSearch and enable this setting and save. You may need to refresh the page in the opac - from the home page. Click 'Browse Search' Type in an Author to search for and click search Click on one of the names that displays and notice that nothing happens. Apply the patch Refresh the page in the opac and repeat steps 11 ans 12 and notice that the author section now drops down. Signed-off-by: =?UTF-8?q?Micha=C5=82=20Kula?= <148193449+miku-orb@users.noreply.github.com> --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/js/browse.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt index 95746f4353..6b33560da5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt @@ -103,7 +103,7 @@ -
+
diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/browse.js b/koha-tmpl/opac-tmpl/bootstrap/js/browse.js index b1ce79c4bf..3166108999 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/browse.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/browse.js @@ -68,7 +68,7 @@ $(document).ready(function () { card.find(".card-header") .attr("id", "heading" + index) .find("a") - .attr("data-target", "#collapse" + index) + .attr("data-bs-target", "#collapse" + index) .attr("aria-controls", "collapse" + index) .text(object.text); card.find(".collapse") -- 2.39.5