From b40be2a97854abb4249a03916a6f220a5a9c8220 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 21 Jan 2026 10:15:13 -0500 Subject: [PATCH] Bug 41674: (follow-up) Proof of concept: branches.pl This patch implements the new template plugin on Administration -> Libraries. - When viewed as a user with permission to manage system preferences, the system preference names under "Reply-To", "Return-Path", and "MARC organization code" should be linked to system preferences, and the link should take you to the correct preference search. - When viewed as a user without permission the system preference names should not be linked. Sponsored-by: Athens County Public Libraries --- .../prog/en/modules/admin/branches.tt | 36 +++---------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 37468a6b222..0de8d9349a9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -4,6 +4,7 @@ [% USE TablesSettings %] [%- USE KohaSpan -%] [% USE KohaTimes %] +[% USE LinkPref %] [% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -265,14 +266,7 @@
-
- [% IF ( CAN_user_parameters_manage_sysprefs ) %] - [% pref_ILLDefaultStaffEmail_link = BLOCK %]ILLDefaultStaffEmail[% END %] - Default: [% pref_ILLDefaultStaffEmail_link | $raw | $KohaSpan %] system preference - [% ELSE %] - Default: ILLDefaultStaffEmail system preference - [% END %] -
+
Default: [% "ILLDefaultStaffEmail" | html | $LinkPref %] system preference.
[% END %]
@@ -282,14 +276,7 @@
-
- [% IF ( CAN_user_parameters_manage_sysprefs ) %] - [% pref_ReplyToDefault_link = BLOCK %]ReplyToDefault[% END %] - Default: [% pref_ReplyToDefault_link | $raw | $KohaSpan %] system preference - [% ELSE %] - Default: ReplyToDefault system preference - [% END %] -
+
Default: [% "ReplyToDefault" | html | $LinkPref %] system preference.
@@ -298,14 +285,7 @@
-
- [% IF ( CAN_user_parameters_manage_sysprefs ) %] - [% pref_ReturnpathDefault_link = BLOCK %]ReturnpathDefault[% END %] - Default: [% pref_ReturnpathDefault_link | $raw | $KohaSpan %] system preference - [% ELSE %] - Default: ReturnpathDefault system preference - [% END %] -
+
Default: [% "ReturnpathDefault" | html | $LinkPref %] system preference.
@@ -377,13 +357,7 @@
- [% IF ( CAN_user_parameters_manage_sysprefs ) %] - [% pref_MARCOrgCode_link = BLOCK %]MARCOrgCode[% END %] - Default: [% pref_MARCOrgCode_link | $raw | $KohaSpan %] system preference. - [% ELSE %] - Default: MARCOrgCode system preference. - [% END %] - Obtain a library code from the Library of Congress. + Default: [% "MARCOrgCode" | html | $LinkPref %] system preference. Obtain a library code from the Library of Congress.
-- 2.39.5