Bugzilla – Attachment 133355 Details for
Bug 30288
Provide links to OPACUserJS and OPACUserCSS from News/HTML customizations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30288: Provide links to OPACUserJS and OPACUserCSS in tools
Bug-30288-Provide-links-to-OPACUserJS-and-OPACUser.patch (text/plain), 2.21 KB, created by
Marcel de Rooy
on 2022-04-15 09:54:38 UTC
(
hide
)
Description:
Bug 30288: Provide links to OPACUserJS and OPACUserCSS in tools
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-04-15 09:54:38 UTC
Size:
2.21 KB
patch
obsolete
>From b8a3e33213d0963117d27819ba12b1132d442b12 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 15 Mar 2022 10:41:57 +0000 >Subject: [PATCH] Bug 30288: Provide links to OPACUserJS and OPACUserCSS in > tools >Content-Type: text/plain; charset=utf-8 > >This patch provides easy access to the OPACUserJS and OPACUserCSS >system preferences in the Additional Contents (News and HTML >customisations) sections. > >To test: > >1. In the staff client, go to Tools -> News. Notice there is a button to > add a New entry. Confirm this button is also there when you go to > Tools -> HTML customisations. >2. Apply the patch and refresh the page. >3. Confirm there are now two new buttons to take you to OPACUserJS and > OPACUserCSS. Confirm these buttons take you to the correct system > preference. > >Sponsored-by: Catalyst IT > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Bug 30288: (follow-up) Add permissions check > >This follow-up wraps the system preference links in a check for >"parameters_manage_sysprefs" permission so that the links don't display >to those without permission to access system preferences. > >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > .../prog/en/modules/tools/additional-contents.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >index b611e4df73..bc402d7e12 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt >@@ -300,6 +300,10 @@ > [% ELSE %] > See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a> > [% END %] >+ [% IF ( CAN_user_parameters_manage_sysprefs ) %] >+ | <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> >+ | <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a> >+ [% END %] > > [% IF additional_contents.count %] > <form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl"> >-- >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 30288
:
131648
|
131698
|
131704
|
131705
|
131765
| 133355 |
133510
|
133612
|
133613
|
133783