Bugzilla – Attachment 183123 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), 3.08 KB, created by
Alexander Blanchard
on 2025-06-10 12:15:06 UTC
(
hide
)
Description:
Bug 39223: opac-browse.pl broken
Filename:
MIME Type:
Creator:
Alexander Blanchard
Created:
2025-06-10 12:15:06 UTC
Size:
3.08 KB
patch
obsolete
>From 9bd19f7184b9fef63cf5133aa67c862b0f6fac2d 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 >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 @@ > <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..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
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