2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Tools › Notice triggers</title>
4 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript">
8 var tab_map = { "1" : _("First"), "2" : _("Second"), "3" : _("Third")};
9 $(document).ready(function() {
10 $('#selectlibrary').find("input:submit").hide();
11 $('#branch').change(function() {
12 $('#selectlibrary').submit();
14 $("li>a.tab").each( function(){
15 var id = $(this).attr("data-number");
16 $(this).html(tab_map[id]);
18 $('#rulestabs').tabs();
24 <body id="tools_overduerules" class="tools">
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'cat-search.inc' %]
28 <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>
30 <div id="doc3" class="yui-t2">
36 <h1>Defining [% IF ( branch ) %]overdue actions for [% branch %][% ELSE %]default overdue actions[% END %]</h1>
38 <p>Delay is the number of days after an checkout is due before an action is triggered. </p>
39 <p>If you want Koha to trigger an action (send a letter or restrict a member), a delay value is required.</p>
40 <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
42 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
43 <label for="branch">Select a library:</label>
44 <select id="branch" name="branch">
45 <option value="">Default</option>
46 [% FOREACH branchloo IN branchloop %]
47 [% IF ( branchloo.selected ) %]
48 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
50 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
54 <input type="submit" value="Select" />
57 <div class="dialog alert">
59 <p>The following errors were found. Please correct them and submit again:</p>
61 [% IF ( ERRORDELAY ) %]
62 <li>Delay [% ERRORDELAY %] for [% BORERR %] patron category has some unexpected characters. There should be only numerical characters. </li>
64 [% IF ( ERRORUSELESSDELAY ) %]
65 <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>
67 [% IF ( ERRORORDER ) %]
68 <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>
74 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
75 <input type="hidden" name="op" value="save" />
76 <input type="hidden" name="branch" value="[% branch %]" />
77 <h3>Rules for overdue actions: [% IF ( branch ) %][% branch %][% ELSE %] default library [% END %]</h3>
78 [% IF ( datasaved ) %]<div class="dialog message">INPUT SAVED</div> [% END %]
80 <div id="rulestabs" class="toptabs">
81 <ul class="ui-tabs-nav">
83 <li><a href="#[% tab.id %]" class="tab [% tab.id %]" data-number="[% tab.number %]"></a></li>
87 <div id="[% tab.id %]">
92 <th scope="col">Delay</th>
93 <th scope="col">Letter</th>
94 <th scope="col">Restrict</th>
95 [% FOREACH mtt IN message_transport_types %]
116 [% FOREACH value IN tab.values %]
118 <th scope="row">[% value.line %]</th>
120 <input type="text" name="delay[% tab.number %]-[% value.overduename %]" size="5" value="[% value.delay %]" />
123 [% IF ( value.noletter ) %]
124 <input type="text" name="letter[% tab.number %]-[% value.overduename %]" value="[% value.letter %]" />
126 <select name="letter[% tab.number %]-[% value.overduename %]">
127 <option value="">No notice</option>
128 [% FOREACH letterloop IN value.letterloop %]
129 [% IF ( letterloop.selected ) %]
130 <option value="[% letterloop.value %]" selected="selected">[% letterloop.lettername %]</option>
132 <option value="[% letterloop.value %]">[% letterloop.lettername %]</option>
139 [% IF ( value.debarred ) %]
140 <input type="checkbox" name="debarred[% tab.number %]-[% value.overduename %]" checked="checked" value="1" />
142 <input type="checkbox" name="debarred[% tab.number %]-[% value.overduename %]" value="1" />
145 [% FOREACH mtt IN value.message_transport_types %]
147 [% IF mtt.selected %]
148 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" checked="checked" />
150 [% IF mtt.value == "sms" and not Koha.Preference("SMSSendDriver") %]
151 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" />
152 [% ELSIF mtt.value == "phone" and not Koha.Preference("TalkingTechItivaPhoneNotification") %]
153 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" disabled="disabled" />
155 <input type="checkbox" name="mtt[% tab.number %]-[% value.overduename %]" value="[% mtt.value %]" />
170 <fieldset class="action"><input type="submit" value="Save changes" /></fieldset>
173 <div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
174 <div class="warning">If this is not what you were expecting, go to <a href="../admin/categorie.pl">patron categories</p></div>
178 <div class="yui-b noprint">
179 [% INCLUDE 'tools-menu.inc' %]
182 [% INCLUDE 'intranet-bottom.inc' %]