Bugzilla – Attachment 181338 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.38 KB, created by
Marion Durand
on 2025-04-23 07:42:19 UTC
(
hide
)
Description:
Bug 39372: (follow-up) Fix toolbar and public/private selector
Filename:
MIME Type:
Creator:
Marion Durand
Created:
2025-04-23 07:42:19 UTC
Size:
2.38 KB
patch
obsolete
>From 4f83e9dae56da70e271aa38ea816123d2ef68dee 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. > >Signed-off-by: Marion Durand <marion.durand@biblibre.com> >--- > 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 cfb48b1445..e5601b7ea7 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