Bugzilla – Attachment 181333 Details for
Bug 39372
No way to restrict OPAC users from creating private lists specifically
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39372: (follow-up) Fix toolbar and public/private selector
Bug-39372-follow-up-Fix-toolbar-and-publicprivate-.patch (text/plain), 2.33 KB, created by
David Cook
on 2025-04-23 04:45:36 UTC
(
hide
)
Description:
Bug 39372: (follow-up) Fix toolbar and public/private selector
Filename:
MIME Type:
Creator:
David Cook
Created:
2025-04-23 04:45:36 UTC
Size:
2.33 KB
patch
obsolete
>From 27012e601c710250b2bc72e4ae4a2973b776c614 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Wed, 23 Apr 2025 03:48:36 +0000 >Subject: [PATCH] Bug 39372: (follow-up) Fix toolbar and public/private > selector > >On the lists page, it makes the "New list" link appear on the correct >tab as per the sysprefs regarding Private/Public list creation. > >It also fixes the Public/Private "Category" dropdown menu when >creating a new list, so that the options match the sysprefs. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index 998e4ed052..f5daf4378d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -661,7 +661,7 @@ > <select name="public" id="public"> > [% IF shelf.is_private %] > <option value="0" selected="selected">Private</option> >- [% ELSE %] >+ [% ELSIF Koha.Preference('OpacAllowPrivateListCreation') %] > <option value="0">Private</option> > [% END %] > [% IF shelf.is_public %] >@@ -751,7 +751,7 @@ > <div id="publicshelves" class="tab-pane active"> </div> > [% END %] > >- [% IF Koha.Preference('OpacAllowPrivateListCreation') || Koha.Preference('OpacAllowPublicListCreation') %] >+ [% IF (!public && Koha.Preference('OpacAllowPrivateListCreation')) || (public && Koha.Preference('OpacAllowPublicListCreation')) %] > [% IF loggedinusername %] > <div id="toolbar" class="toolbar" > ><a class="btn btn-link newshelf" href="/cgi-bin/koha/opac-shelves.pl?op=add_form"><i class="fa fa-plus" aria-hidden="true"></i> New list</a></div >-- >2.39.5
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 39372
:
179497
|
179498
|
179566
|
181333
|
181334
|
181336
|
181337
|
181338
|
181339