Bugzilla – Attachment 188467 Details for
Bug 40903
OPAC advanced search applies a location limit of the logged-in library by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40903: OPAC advanced search should not apply a limit of the logged-in library by default
Bug-40903-OPAC-advanced-search-should-not-apply-a-.patch (text/plain), 1.66 KB, created by
Fridolin Somers
on 2025-10-27 11:00:34 UTC
(
hide
)
Description:
Bug 40903: OPAC advanced search should not apply a limit of the logged-in library by default
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2025-10-27 11:00:34 UTC
Size:
1.66 KB
patch
obsolete
>From 0d935c468a2f8d878178d30dda0e66c1dde059b9 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 27 Oct 2025 11:56:58 +0100 >Subject: [PATCH] Bug 40903: OPAC advanced search should not apply a limit of > the logged-in library by default > >This is caused by Bug 36742. It exists in main but starts in 24.11. > >The OPAC advanced search now automatically applies a limit to the 'Location and availability' section using the patron's logged in library, even if there are multiple libraries in the system. > >1) Go to OPAC >2) Authenticate with a user >3) Go to advanced search >4) Check there is no library selected in 'Location and availability' >5) Select a library and submit >6) Clik on 'Return to the last advanced search' >7) Check the library is selected in 'Location and availability' >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index a4651d0a4e..4f74a1250a 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -32,7 +32,7 @@ > </head> > [% INCLUDE 'bodytag.inc' bodyid='advsearch' bodyclass='scrollto' %] > [% INCLUDE 'masthead.inc' %] >-[% SET AllPublicBranches = Branches.all( search_params => { public => 1 } ) %] >+[% SET AllPublicBranches = Branches.all( search_params => { public => 1 }, do_not_select_my_library => 1) %] > > <form id="advsearch_form" action="/cgi-bin/koha/opac-search.pl" method="get"> > <input type="hidden" name="advsearch" value="1" /> >-- >2.43.0
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 40903
:
188467
|
188501
|
188527
|
188536