1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Tools › Notice Triggers</title>
3 <!-- TMPL_INCLUDE NAME="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 <!-- TMPL_INCLUDE NAME="header.inc" -->
20 <!-- TMPL_INCLUDE NAME="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 <!-- TMPL_IF NAME="branch" -->overdue actions for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default overdue actions<!-- /TMPL_IF --></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 <!-- TMPL_LOOP NAME="branchloop" -->
41 <!-- TMPL_IF NAME="selected" -->
42 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
44 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
48 <input type="submit" value="Select" />
50 <!--TMPL_IF Name="ERROR"-->
51 <div class="dialog alert">
53 <p>The following errors were found. Please correct them and submit again:</p>
55 <!-- TMPL_IF NAME="ERRORDELAY" -->
56 <li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="BORERR"--> patron category has some unexpected characters. There should be only numerical characters. </li>
58 <!-- TMPL_IF NAME="ERRORUSELESSDELAY" -->
59 <li>No letter or debar action specified for delay <!--TMPL_VAR Name="ERRORUSELESSDELAY"--> for <!--TMPL_VAR Name="BORERR"--> patron category. If a delay is supplied, either a letter, debar action, or both should be specified.</li>
61 <!-- TMPL_IF NAME="ERRORORDER" -->
62 <li>The first notice's delay should be less than the second, which should be less than the third for the <strong><!--TMPL_VAR Name="BORERR"--></strong> patron category </li>
67 <!-- TMPL_IF name="table" -->
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="<!-- TMPL_VAR NAME="branch" -->" />
71 <h3>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default library <!--/TMPL_IF--></h3>
72 <!--TMPL_IF Name="datasaved"--><div class="dialog message">INPUT SAVED</div> <!--/TMPL_IF -->
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 <!-- TMPL_LOOP NAME="table" -->
84 <!-- TMPL_UNLESS NAME="__odd__" -->
85 <tr class="highlight">
89 <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
91 <input type="text" name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
94 <!--TMPL_IF Name="noletter" -->
95 <input type="text" name="letter1-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter1"-->" />
97 <select name="letter1-<!-- TMPL_VAR NAME="overduename" -->">
98 <option value="">No notice</option>
99 <!-- TMPL_LOOP name="letterloop1" -->
100 <!-- TMPL_IF NAME="selected" -->
101 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
103 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
110 <!-- TMPL_IF NAME="debarred1" -->
111 <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
113 <input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="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 <!-- TMPL_LOOP NAME="table" -->
124 <!-- TMPL_UNLESS NAME="__odd__" -->
125 <tr class="highlight">
128 <!-- /TMPL_UNLESS -->
129 <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
131 <input type="text" name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
134 <!--TMPL_IF Name="noletter" -->
135 <input type="text" name="letter2-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter2"-->" />
137 <select name="letter2-<!-- TMPL_VAR NAME="overduename" -->">
138 <option value="">No notice</option>
139 <!-- TMPL_LOOP name="letterloop2" -->
140 <!-- TMPL_IF NAME="selected" -->
141 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
143 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
150 <!-- TMPL_IF NAME="debarred2" -->
151 <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
153 <input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="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 <!-- TMPL_LOOP NAME="table" -->
164 <!-- TMPL_UNLESS NAME="__odd__" -->
165 <tr class="highlight">
168 <!-- /TMPL_UNLESS -->
169 <th scope="row"><!-- TMPL_VAR NAME="line" --></th>
171 <input type="text" name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
174 <!--TMPL_IF Name="noletter" -->
175 <input type="text" name="letter3-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter3"-->" />
177 <select name="letter3-<!-- TMPL_VAR NAME="overduename" -->">
178 <option value="">No notice</option>
179 <!-- TMPL_LOOP name="letterloop3" -->
180 <!-- TMPL_IF NAME="selected" -->
181 <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
183 <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
190 <!-- TMPL_IF NAME="debarred3" -->
191 <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
193 <input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="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 <!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
214 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->