From 671c462f97b2433c9856a8b0433ad6fe595782bd Mon Sep 17 00:00:00 2001 From: Owen Leonard <oleonard@myacpl.org> Date: Thu, 18 Aug 2016 13:08:33 -0400 Subject: [PATCH] Bug 14612 - Overdue notice triggers should show branchname instead of branchcode Content-Type: text/plain; charset="utf-8" This patch adds the Branches template plugin to the overdue notice triggers template so that the library name can be shown instead of the branchcode. Also changed: Updated page title to match the name used in tools menus. To test, apply the patch and go to Tools -> Overdue notice/status triggers. - Select a library. - When the page reloads, the 'Defining overdue actions for...' and 'Rules for overdue actions: ' headings should show the library name instead of the branchcode. --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt index 4c06846..350b5bc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt @@ -1,6 +1,7 @@ [% USE Koha %] +[% USE Branches %] [% INCLUDE 'doc-head-open.inc' %] -<title>Koha › Tools › Notice triggers</title> +<title>Koha › Tools › Overdue notice/status triggers</title> [% INCLUDE 'doc-head-close.inc' %] <script type="text/javascript"> @@ -25,7 +26,7 @@ $(document).ready(function() { [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] -<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › Notice triggers</div> +<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> › Overdue notice/status triggers</div> <div id="doc3" class="yui-t2"> @@ -33,7 +34,7 @@ $(document).ready(function() { <div id="yui-main"> <div class="yui-b"> - <h1>Defining [% IF ( branch ) %]overdue actions for [% branch %][% ELSE %]default overdue actions[% END %]</h1> + <h1>Defining [% IF ( branch ) %]overdue actions for [% Branches.GetName( branch ) %][% ELSE %]default overdue actions[% END %]</h1> <div class="help"> <p>Delay is the number of days after a checkout is due before an action is triggered. </p> <p>If you want Koha to trigger an action (send a letter or restrict a member), a delay value is required.</p> @@ -74,7 +75,7 @@ $(document).ready(function() { <form method="post" action="/cgi-bin/koha/tools/overduerules.pl"> <input type="hidden" name="op" value="save" /> <input type="hidden" name="branch" value="[% branch %]" /> - <h3>Rules for overdue actions: [% IF ( branch ) %][% branch %][% ELSE %] default library [% END %]</h3> + <h3>Rules for overdue actions: [% IF ( branch ) %][% Branches.GetName( branch ) %][% ELSE %] default library [% END %]</h3> [% IF ( datasaved ) %]<div class="dialog message">Changes saved.</div> [% END %] <div id="rulestabs" class="toptabs"> -- 2.1.4