1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Tools › Notice Triggers</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
7 $(document).ready(function() {
8 $('#selectlibrary').find("input:submit").hide();
9 $('#branch').change(function() {
10 $('#selectlibrary').submit();
12 $('#rulestabs > ul').tabs();
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'cat-search.inc' %]
22 <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>
24 <div id="doc3" class="yui-t2">
30 <h1>Defining [% IF ( branch ) %]overdue actions for [% branch %][% ELSE %]default overdue actions[% END %]</h1>
32 <p>Delay is the number of days after an checkout is due before an action is triggered. </p>
33 <p>If you want Koha to trigger an action (send a letter or debar member), a delay value is required.</p>
34 <p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
36 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
37 <label for="branch">Select a library:</label>
38 <select id="branch" name="branch">
39 <option value="">Default</option>
40 [% FOREACH branchloo IN branchloop %]
41 [% IF ( branchloo.selected ) %]
42 <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>
44 <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>
48 <input type="submit" value="Select" />
51 <div class="dialog alert">
53 <p>The following errors were found. Please correct them and submit again:</p>
55 [% IF ( ERRORDELAY ) %]
56 <li>Delay [% ERRORDELAY %] for [% BORERR %] patron category has some unexpected characters. There should be only numerical characters. </li>
58 [% IF ( ERRORUSELESSDELAY ) %]
59 <li>No letter or debar action specified for delay [% ERRORUSELESSDELAY %] for [% BORERR %] patron category. If a delay is supplied, either a letter, debar action, or both should be specified.</li>
61 [% IF ( ERRORORDER ) %]
62 <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>
68 <form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
69 <input type="hidden" name="op" value="save" />
70 <input type="hidden" name="branch" value="[% branch %]" />
71 <h3>Rules for overdue actions: [% IF ( branch ) %][% branch %][% ELSE %] default library [% END %]</h3>
72 [% IF ( datasaved ) %]<div class="dialog message">INPUT SAVED</div> [% END %]
74 <div id="rulestabs" class="toptabs">
75 <ul class="ui-tabs-nav">
76 <li><a href="#first">First</a></li>
77 <li><a href="#second">Second</a></li>
78 <li><a href="#third">Third</a></li>
81 <div id="first"><table>
82 <tr><th> </th><th scope="col">Delay</th><th scope="col">First Letter</th><th scope="col">Debar</th></tr>
83 [% FOREACH tabl IN table %]
84 [% UNLESS ( loop.odd ) %]
85 <tr class="highlight">
89 <th scope="row">[% tabl.line %]</th>
91 <input type="text" name="delay1-[% tabl.overduename %]" size="5" value="[% tabl.delay1 %]" />
94 [% IF ( tabl.noletter ) %]
95 <input type="text" name="letter1-[% tabl.overduename %]" value="[% tabl.letter1 %]" />
97 <select name="letter1-[% tabl.overduename %]">
98 <option value="">No notice</option>
99 [% FOREACH letterloop IN tabl.letterloop1 %]
100 [% IF ( letterloop.selected ) %]
101 <option value="[% letterloop.value %]" selected="selected">[% letterloop.lettername %]</option>
103 <option value="[% letterloop.value %]">[% letterloop.lettername %]</option>
110 [% IF ( tabl.debarred1 ) %]
111 <input type="checkbox" name="debarred1-[% tabl.overduename %]" checked="checked" value="1" />
113 <input type="checkbox" name="debarred1-[% tabl.overduename %]" value="1" />
121 <div id="second"><table>
122 <tr><th> </th><th scope="col">Delay</th><th scope="col">Second Letter</th><th scope="col">Debar</th></tr>
123 [% FOREACH tabl IN table %]
124 [% UNLESS ( loop.odd ) %]
125 <tr class="highlight">
129 <th scope="row">[% tabl.line %]</th>
131 <input type="text" name="delay2-[% tabl.overduename %]" size="5" value="[% tabl.delay2 %]" />
134 [% IF ( tabl.noletter ) %]
135 <input type="text" name="letter2-[% tabl.overduename %]" value="[% tabl.letter2 %]" />
137 <select name="letter2-[% tabl.overduename %]">
138 <option value="">No notice</option>
139 [% FOREACH letterloop IN tabl.letterloop2 %]
140 [% IF ( letterloop.selected ) %]
141 <option value="[% letterloop.value %]" selected="selected">[% letterloop.lettername %]</option>
143 <option value="[% letterloop.value %]">[% letterloop.lettername %]</option>
150 [% IF ( tabl.debarred2 ) %]
151 <input type="checkbox" name="debarred2-[% tabl.overduename %]" checked="checked" value="1" />
153 <input type="checkbox" name="debarred2-[% tabl.overduename %]" value="1" />
161 <div id="third"><table>
162 <tr><th> </th><th scope="col">Delay</th><th scope="col">Third Letter</th><th scope="col">Debar</th></tr>
163 [% FOREACH tabl IN table %]
164 [% UNLESS ( loop.odd ) %]
165 <tr class="highlight">
169 <th scope="row">[% tabl.line %]</th>
171 <input type="text" name="delay3-[% tabl.overduename %]" size="5" value="[% tabl.delay3 %]" />
174 [% IF ( tabl.noletter ) %]
175 <input type="text" name="letter3-[% tabl.overduename %]" value="[% tabl.letter3 %]" />
177 <select name="letter3-[% tabl.overduename %]">
178 <option value="">No notice</option>
179 [% FOREACH letterloop IN tabl.letterloop3 %]
180 [% IF ( letterloop.selected ) %]
181 <option value="[% letterloop.value %]" selected="selected">[% letterloop.lettername %]</option>
183 <option value="[% letterloop.value %]">[% letterloop.lettername %]</option>
190 [% IF ( tabl.debarred3 ) %]
191 <input type="checkbox" name="debarred3-[% tabl.overduename %]" checked="checked" value="1" />
193 <input type="checkbox" name="debarred3-[% tabl.overduename %]" value="1" />
202 <fieldset class="action"><input type="submit" value="Save Changes" /></fieldset>
205 <div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
206 <div class="warning">If this is not what you were expecting, go to <a href="../admin/categorie.pl">patron categories</p></div>
210 <div class="yui-b noprint">
211 [% INCLUDE 'tools-menu.inc' %]
214 [% INCLUDE 'intranet-bottom.inc' %]