3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Tools › Overdue notice/status triggers</title>
5 [% INCLUDE 'doc-head-close.inc' %]
7 <script type="text/javascript">
9 var tab_map = { "1" : _("First"), "2" : _("Second"), "3" : _("Third")};
10 $(document).ready(function() {
11 $('#selectlibrary').find("input:submit").hide();
12 $('#branch').change(function() {
13 $('#selectlibrary').submit();
15 $("li>a.tab").each( function(){
16 var id = $(this).attr("data-number");
17 $(this).html(tab_map[id]);
19 $('#rulestabs').tabs();
25 <body id="tools_overduerules" class="tools">
26 [% INCLUDE 'header.inc' %]
27 [% INCLUDE 'cat-search.inc' %]
29 <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>
31 <div id="doc3" class="yui-t2">
37 <h1>Defining [% IF ( branch ) %]overdue actions for [% Branches.GetName( branch ) %][% ELSE %]default overdue actions[% END %]</h1>
39 <p>Delay is the number of days after a checkout is due before an action is triggered. </p>
40 <p>If you want Koha to trigger an action (send a letter or restrict a member), a delay value is required.</p>
41 <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
43 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
44 <label for="branch">Select a library:</label>
45 <select id="branch" name="branch">
46 <option value="">Default</option>
47 [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
49 <input type="submit" value="Select" />
52 <div class="dialog alert">
54 <p>The following errors were found. Please correct them and submit again:</p>
56 [% IF ( ERRORDELAY ) %]
57 <li>Delay [% ERRORDELAY %] for [% BORERR %] patron category has some unexpected characters. There should be only numerical characters. </li>
59 [% IF ( ERRORUSELESSDELAY ) %]
60 <li>No letter or restriction action specified for delay [% ERRORUSELESSDELAY %] for [% BORERR %] patron category. If a delay is supplied, either a letter, restrict action, or both should be specified.</li>
62 [% IF ( ERRORORDER ) %]
63 <li>The first notice's delay should be less than the second, which should be less than the third for the <strong>[% BORERR %]</strong> patron category </li>
69 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
70 <input type="hidden" name="op" value="save" />
71 <input type="hidden" name="branch" value="[% branch %]" />
72 <h3>Rules for overdue actions: [% IF ( branch ) %][% Branches.GetName( branch ) %][% ELSE %] default library [% END %]</h3>
73 [% IF ( datasaved ) %]<div class="dialog message">Changes saved.</div> [% END %]
75 <div id="rulestabs" class="toptabs">
76 <ul class="ui-tabs-nav">
78 <li><a href="#[% tab.id %]" class="tab [% tab.id %]" data-number="[% tab.number %]"></a></li>
82 <div id="[% tab.id %]">
87 <th scope="col">Delay</th>
88 <th scope="col">Letter</th>
89 <th scope="col">Restrict</th>
90 [% FOREACH mtt IN message_transport_types %]
111 [% FOREACH value IN tab.values %]
113 <th scope="row">[% value.line %]</th>
115 <input type="number" min="1" name="delay[% tab.number %]-[% value.overduename %]" value="[% value.delay %]" />
118 <select name="letter[% tab.number %]-[% value.overduename %]">
119 <option value="">No notice</option>
120 [% FOREACH letter IN letters %]
121 [% IF letter.code == value.selected_lettercode %]
122 <option value="[% letter.code %]" selected="selected">[% letter.name %]</option>
124 <option value="[% letter.code %]">[% letter.name %]</option>
130 [% IF ( value.debarred ) %]
131 <input type="checkbox" name="debarred[% tab.number %]-[% value.overduename %]" checked="checked" value="1" />
133 <input type="checkbox" name="debarred[% tab.number %]-[% value.overduename %]" value="1" />
136 [% FOREACH mtt IN value.message_transport_types %]
138 [% IF mtt.selected %]
139 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" checked="checked" />
141 [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %]
142 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" />
143 [% ELSIF mtt.value == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %]
144 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" />
146 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" />
161 <fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
164 <div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
165 <div class="warning">If this is not what you were expecting, go to <a href="../admin/categories.pl">patron categories</p></div>
169 <div class="yui-b noprint">
170 [% INCLUDE 'tools-menu.inc' %]
173 [% INCLUDE 'intranet-bottom.inc' %]