Bugzilla – Attachment 124791 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.30 KB, created by
Joonas Kylmälä
on 2021-09-11 10:43:23 UTC
(
hide
)
Description:
Bug 28845: Match against the full limit string, not just the group id
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2021-09-11 10:43:23 UTC
Size:
2.30 KB
patch
obsolete
>From 8f25afa966d59bc21f2755566b5f19bef20b5eed 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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! > >Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> >--- > 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 60cac99b20..14c9f9e558 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