Bugzilla – Attachment 123799 Details for
Bug 28845
OpacAddMastheadLibraryPulldown does not respect multibranchlimit in OPAC_SEARCH_LIMIT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28845: Match against the full limit string, not just the group id
Bug-28845-Match-against-the-full-limit-string-not-.patch (text/plain), 2.09 KB, created by
Nick Clemens (kidclamp)
on 2021-08-11 15:31:53 UTC
(
hide
)
Description:
Bug 28845: Match against the full limit string, not just the group id
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-08-11 15:31:53 UTC
Size:
2.09 KB
patch
obsolete
>From 8752e003ce01cef3fae3e57aaf75be76082c8235 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 11 Aug 2021 15:30:36 +0000 >Subject: [PATCH] Bug 28845: Match against the full limit string, not just the > group id > >To test: >1 - Add to OPAC virtual host in apache conf: > SetEnv OPAC_SEARCH_LIMIT branch:multibranch-1 > SetEnv OPAC_LIMIT_OVERRIDE 1 > RequestHeader add X-Koha-SetEnv "OPAC_SEARCH_LIMIT branch:multibranchlimit-1" > RequestHeader add X-Koha-SetEnv "OPAC_LIMIT_OVERRIDE 1" >2 - Enable system preference OpacAddMastheadLibraryPulldown >3 - Create a library group enabled as OPAC search group (or make sure existing group 1 is an OPAC search group) >4 - Load the opac - dropdown does not pree-select the search group >5 - Apply patch >6 - Relaod opac - group is pre-selected! >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index 8626695290..e959075339 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -251,7 +251,7 @@ > </optgroup> > <optgroup label="Groups"> > [% FOREACH lsg IN LibrarySearchGroups %] >- [% IF lsg.id == opac_name %] >+ [% IF 'multibranchlimit-' _ lsg.id == opac_name %] > <option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option> > [% ELSE %] > <option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option> >-- >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 28845
:
123799
|
123828
|
124573
|
124791
|
124792