Bugzilla – Attachment 125021 Details for
Bug 28847
Branch limits while searching should be expanded in query building and not in CGI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28847: (follow-up) Handle branch_group_limit
Bug-28847-follow-up-Handle-branchgrouplimit.patch (text/plain), 1.73 KB, created by
Joonas Kylmälä
on 2021-09-18 08:16:15 UTC
(
hide
)
Description:
Bug 28847: (follow-up) Handle branch_group_limit
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2021-09-18 08:16:15 UTC
Size:
1.73 KB
patch
obsolete
>From eb36bf2bc474c51f3702037bb5c49ff7f9a2f745 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Sat, 11 Sep 2021 15:12:31 +0000 >Subject: [PATCH] Bug 28847: (follow-up) Handle branch_group_limit >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1 - Create a library group as an OPAC search group >2 - Enable OpacAddMastheadLibraryPulldown >3 - Browse to: > http://localhost:8080/cgi-bin/koha/opac-search.pl?idx=&q=t&branch_group_limit=multibranchlimit-1&weight_search=1 >4 - Confirm search works and returns correct results >5 - Confirm dropdown is correctly populated > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> >--- > opac/opac-search.pl | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index f7254a1f20..0bd1026faf 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -79,12 +79,13 @@ my $cgi = CGI->new; > my $branch_group_limit = $cgi->param("branch_group_limit"); > if ( $branch_group_limit ) { > if ( $branch_group_limit =~ /^multibranchlimit-/ ) { >+ # branch_group_limit is deprecated, it should no longer be used > # For search groups we are going to convert this branch_group_limit CGI >- # parameter into a multibranchlimit CGI parameter for the purposes of >+ # parameter into a multibranchlimit limit CGI parameter for the purposes of > # actually performing the query > $cgi->param( >- -name => 'multibranchlimit', >- -values => substr($branch_group_limit, 17) >+ -name => 'limit', >+ -values => 'multibranchlimit:' . substr($branch_group_limit, 17) > ); > } else { > $cgi->append( >-- >2.20.1
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 28847
:
123807
|
123808
|
123809
|
123830
|
123832
|
123833
|
123835
|
123836
|
123837
|
123841
|
124574
|
124575
|
124576
|
124577
|
124797
|
124831
|
125017
|
125018
|
125019
|
125020
| 125021 |
125022
|
126827