Bugzilla – Attachment 141123 Details for
Bug 31654
Hide non-public libraries from MastheadLibraryPulldown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
do not list library in masthead and advanced search if branches.public is false (bug_31654_hide_nonpublic_libs)
do-not-list-library-in-masthead-and-advanced-searc.patch (text/plain), 2.28 KB, created by
Thomas Klausner
on 2022-09-30 11:34:11 UTC
(
hide
)
Description:
do not list library in masthead and advanced search if branches.public is false (bug_31654_hide_nonpublic_libs)
Filename:
MIME Type:
Creator:
Thomas Klausner
Created:
2022-09-30 11:34:11 UTC
Size:
2.28 KB
patch
obsolete
>From f4eea1982df41969f44fbbdf950d5d45d655e37d Mon Sep 17 00:00:00 2001 >From: Thomas Klausner <domm@plix.at> >Date: Fri, 30 Sep 2022 13:27:02 +0200 >Subject: [PATCH] do not list library in masthead and advanced search if > branches.public is false (bug_31654_hide_nonpublic_libs) > >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 1 + > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 1 + > 2 files changed, 2 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >index fbab4ec2c9..5fee2e96e8 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc >@@ -232,6 +232,7 @@ > [% IF LibrarySearchGroups %]<optgroup label="Libraries">[% END %] > > [% FOREACH library IN Branches.all( selected => opac_name ) %] >+ [% NEXT UNLESS library.public %] > [% IF library.selected %] > <option selected="selected" value="branch:[% library.branchcode | html %]">[% library.branchname | html %]</option> > [% ELSE %] >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 a7cadb91e1..5538e177f0 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -232,6 +232,7 @@ > <select name="limit" id="branchloop"> > <option value="">All libraries</option> > [% FOREACH BranchesLoo IN Branches.all( selected => opac_name ) %] >+ [% NEXT UNLESS BranchesLoo.public %] > [% IF BranchesLoo.selected %] > <option value="branch:[% BranchesLoo.branchcode | html %]" selected="selected">[% BranchesLoo.branchname | html %]</option> > [% ELSE %] >-- >2.25.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 31654
:
141123
|
141335
|
142514
|
143117
|
143118