From 9bd19f7184b9fef63cf5133aa67c862b0f6fac2d 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 3. Set this to use Elastic Search and save. 4. 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. 5. Click 'Browse Search' 6. Type in an Author to search for and click search 7. Click on one of the names that displays and notice that nothing happens. 8. Apply the patch 9. Refresh the page in the opac and repeat steps 11 and 12 and notice that the author section now drops down and related titles are displayed. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-browse.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/js/browse.js | 4 ++-- 2 files changed, 3 insertions(+), 3 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..cc37b89245 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") @@ -96,7 +96,7 @@ $(document).ready(function () { } var link = $(this); - var target = link.data("target"); + var target = link.data("bs-target"); var term = link.text(); var field = $("#browse-searchresults").data("field"); -- 2.39.5