From 0b1fc8f30abc93b1ad6d93133ae23e6689dc7796 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 15 Mar 2022 10:41:57 +0000 Subject: [PATCH] Bug 30288: Provide links to OPACUserJS and OPACUserCSS in tools 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 --- .../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 92fcf23cc9..bad4e6b08d 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 News [% END %] + [% IF Koha.Preference("OPACEnhancementPreferencesLinks") %] + | See OPACUserJS + | See OPACUserCSS + [% END %] [% IF additional_contents.count %]
-- 2.20.1