Bugzilla – Attachment 183122 Details for
Bug 39223
The OPAC browse search (opac-browse.pl) is broken since 24.11
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39223: opac-browse.pl broken
Bug-39223-opac-browsepl-broken.patch (text/plain), 2.84 KB, created by
Michał
on 2025-06-10 11:05:26 UTC
(
hide
)
Description:
Bug 39223: opac-browse.pl broken
Filename:
MIME Type:
Creator:
Michał
Created:
2025-06-10 11:05:26 UTC
Size:
2.84 KB
patch
obsolete
>From 889af465634d0c7d9a6d144d3c05a1c3131f6718 Mon Sep 17 00:00:00 2001 >From: Alexander Blanchard <alexander.blanchard@openfifth.co.uk> >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 @@ > <a class="expand-result" href="#" data-bs-toggle="collapse" aria-expanded="false" aria-controls="collapse"> </a> > </div> > <!-- /#heading.card-header --> >- <div id="collapse" class="collapse" aria-labelledby="heading" data-parent="#browse-searchresults"> >+ <div id="collapse" class="collapse" aria-labelledby="heading" data-bs-parent="#browse-searchresults"> > <div class="card-body"> </div> > </div> > <!-- /#collapse.collapse --> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39223
:
183112
|
183122
|
183123
|
183223
|
183461