Bugzilla – Attachment 193672 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.15 KB, created by
David Cook
on 2026-02-24 01:46:48 UTC
(
hide
)
Description:
Bug 39372: (follow-up) Fix toolbar and public/private selector
Filename:
MIME Type:
Creator:
David Cook
Created:
2026-02-24 01:46:48 UTC
Size:
2.15 KB
patch
obsolete
>From 82fbc0bf422d10356ac24f4263c8963d4352b606 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 d278a22e8cd..478ba87d913 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -598,7 +598,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 %] >@@ -695,7 +695,7 @@ > [% END %] > > [% SET show_new_list = 0 %] >- [% IF Koha.Preference('OpacAllowPrivateListCreation') || Koha.Preference('OpacAllowPublicListCreation') %] >+ [% IF (!public && Koha.Preference('OpacAllowPrivateListCreation')) || (public && Koha.Preference('OpacAllowPublicListCreation')) %] > [% IF loggedinusername %] > [% show_new_list = 1 %] > [% ELSE %] >-- >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
|
193670
|
193671
| 193672 |
193673