Markup, breadcrumbs, and language corrections.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / smart-rules.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo; Issuing Rules</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <script type="text/javascript">
6 //<![CDATA[
7 $(document).ready(function() {
8         $('#selectlibrary').find("input:submit").hide();
9         $('#branch').change(function() {
10                 $('#selectlibrary').submit();
11         });
12 });
13 //]]>
14 </script>
15
16 </head>
17 <body>
18 <!-- TMPL_INCLUDE NAME="header.inc" -->
19 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
20
21 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Issuing Rules</div>
22
23 <div id="doc3" class="yui-t1">
24
25 <div id="bd">
26     <div id="yui-main">
27     <div class="yui-b">
28     <h1 class="parameters">
29         <!-- TMPL_IF NAME="humanbranch" -->
30             Defining issuing rules for "<!-- TMPL_VAR NAME="humanbranch" -->"
31         <!-- TMPL_ELSE -->
32             Defining default issuing rules
33         <!-- /TMPL_IF -->
34     </h1>
35     <div class="help">
36         <p>The rules are applied from most specific to less specific, using the first found in this order:</p>
37         <ul>
38             <li>same library, same patron type, same item type</li>
39             <li>same library, same patron type, default item type</li>
40             <li>same library, default patron type, same item type</li>
41             <li>same library, default patron type, default item type</li>
42             <li>default library, same patron type, same item type</li>
43             <li>default library, same patron type, default item type</li>
44             <li>default library, default patron type, same item type</li>
45             <li>default library, default patron type, default item type</li>
46         </ul>
47         <p>To modify a rule, create a new one with the same patron type and item type.</p>
48     </div>
49     <div>
50         <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary">
51         Select a library :
52             <select name="branch" id="branch" style="width:20em;">
53                 <option value="*">Default</option>
54             <!-- TMPL_LOOP NAME="branchloop" -->
55                                 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option><!-- /TMPL_IF -->
56             <!-- /TMPL_LOOP -->
57             </select>
58         </form>
59         <!-- TMPL_IF Name="definedbranch" --><form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"><input type="hidden" name="frombranch" value="<!-- TMPL_VAR NAME="branch" -->" /><input type="submit" value="Clone these rules" /></form><!-- /TMPL_IF -->
60                 <br />
61                 <br />
62         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
63             <input type="hidden" name="op" value="add" />
64             <table>
65             <tr>
66                 <th>Patron Category</th>
67                 <th>Item Type</th>
68                 <th>Current Checkouts Allowed</th>
69                 <th>Loan Period (day)</th>
70                 <th>Fine Amount</th>
71                 <th>Fine Charging Interval</th>
72                 <th>Fine Grace period (day)</th>
73                 <th>Suspension in Days (day)</th>
74                 <th>Renewals Allowed (count)</th>
75                 <th>Holds Allowed (count)</th>
76                                 <th>&nbsp;</th>
77             </tr>
78                                 <!-- TMPL_LOOP NAME="rules" -->
79                                         <!-- TMPL_UNLESS NAME="__odd__" -->
80                                         <tr class="highlight">
81                                         <!-- TMPL_ELSE -->
82                                         <tr>
83                                         <!-- /TMPL_UNLESS -->
84                                                         <td><!-- TMPL_IF NAME="default_humancategorycode" -->
85                                                                         <em>Default</em>
86                                                                 <!-- TMPL_ELSE -->
87                                                                         <!-- TMPL_VAR NAME="humancategorycode" -->
88                                                                 <!-- /TMPL_IF -->
89                                                         </td>
90                                                         <td><!-- TMPL_IF NAME="default_humanitemtype" -->
91                                                                         <em>Default</em>
92                                                                 <!-- TMPL_ELSE -->
93                                                                         <!-- TMPL_VAR NAME="humanitemtype" -->
94                                                                 <!-- /TMPL_IF -->
95                                                         </td>
96                                                         <td><!-- TMPL_IF NAME="unlimited_maxissueqty" -->
97                                                                         Unlimited
98                                                                 <!-- TMPL_ELSE -->
99                                                                         <!-- TMPL_VAR NAME="maxissueqty" -->
100                                                                 <!-- /TMPL_IF -->
101                                                         </td>
102                                                         <td><!-- TMPL_IF NAME="issuelength" --><!-- TMPL_VAR NAME="issuelength" --> <!-- /TMPL_IF --></td>
103                                                         <td><!-- TMPL_VAR NAME="fine" --></td>
104                                                         <td><!-- TMPL_IF NAME="chargeperiod" --><!-- TMPL_VAR NAME="chargeperiod" --> <!-- /TMPL_IF --></td>
105                                                         <td><!-- TMPL_IF NAME="firstremind" --><!-- TMPL_VAR NAME="firstremind" --> <!-- /TMPL_IF --></td>
106                                                         <td><!-- TMPL_IF NAME="finedays" --> <!-- TMPL_VAR NAME="finedays" --> <!-- /TMPL_IF --></td>
107                                                         <td><!-- TMPL_IF NAME="renewalsallowed" --><!-- TMPL_VAR NAME="renewalsallowed" --> <!-- /TMPL_IF --></td>
108                                                         <td><!-- TMPL_IF NAME="reservesallowed" --><!-- TMPL_VAR NAME="reservesallowed" --> <!-- /TMPL_IF --></td>
109                                                         <td>
110                                                                 <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=<!-- TMPL_VAR NAME="itemtype" -->&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->&amp;branch=<!-- TMPL_VAR NAME="branch" -->">Delete</a>
111                                                         </td>
112                         </tr>
113                 <!-- /TMPL_LOOP -->
114                 <tr>
115                     <td>
116                         <select name="categorycode">
117                             <option value="*">Default</option>
118                         <!-- TMPL_LOOP NAME="categoryloop" -->
119                             <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option>
120                         <!-- /TMPL_LOOP -->
121                         </select>
122                     </td>
123                     <td>
124                         <select name="itemtype" style="width:13em;">
125                             <option value="*">Default</option>
126                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
127                             <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
128                         <!-- /TMPL_LOOP -->
129                         </select>
130                     </td>
131                     <td><input name="maxissueqty" size="3" /></td>
132                     <td><input name="issuelength" size="3" /> </td>
133                     <td><input name="fine" size="4" /></td>
134                     <td><input name="chargeperiod" size="2" /></td>
135                     <td><input name="firstremind" size="2" /> </td>
136                     <td><input name="finedays" size="3" /> </td>
137                     <td><input name="renewalsallowed" size="2" /></td>
138                     <td><input name="reservesallowed" size="2" /></td>
139                     <td><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/><input type="submit" value="Add" class="submit" /></td>
140                 </tr>
141             </table>
142         </form>
143     </div>
144     <div class="help">
145         <h4>Defaults for this library</h4>
146         <p>You can set a default maximum number of checkouts and hold policy that will be used if none is defined below for a particular item type or category.</p>
147     </div>
148     <div>
149         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
150             <input type="hidden" name="op" value="set-branch-defaults" />
151             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/>
152             <table>
153                 <tr>
154                     <th>&nbsp;</th>
155                     <th>Total Current Checkouts Allowed</th>
156                     <th>Hold Policy</th>
157                     <th>&nbsp;</th>
158                     <th>&nbsp;</th>
159                 </tr>
160                 <tr>
161                     <td><em>Defaults<!-- TMPL_UNLESS NAME="default_rules" --> (not set)<!-- /TMPL_IF --></em></td>
162                     <td><input name="maxissueqty" size="3" value="<!-- TMPL_VAR NAME="default_maxissueqty" -->"/></td>
163                     <td>
164                         <select name="holdallowed">
165                             <!-- TMPL_IF NAME="default_holdallowed_any" -->
166                             <option value="2" selected="selected">
167                             <!-- TMPL_ELSE -->
168                             <option value="2">
169                             <!-- /TMPL_IF -->
170                                 From Any Library
171                             </option>
172                             <!-- TMPL_IF NAME="default_holdallowed_same" -->
173                             <option value="1" selected="selected">
174                             <!-- TMPL_ELSE -->
175                             <option value="1">
176                             <!-- /TMPL_IF -->
177                                 From Home Library
178                             </option>
179                             <!-- TMPL_IF NAME="default_holdallowed_none" -->
180                             <option value="0" selected="selected">
181                             <!-- TMPL_ELSE -->
182                             <option value="0">
183                             <!-- /TMPL_IF -->
184                                 No Holds Allowed
185                             </option>
186                         </select>
187                     </td>
188                     <td><input type="submit" value="Save" class="submit" /></td>
189                     <td>
190                         <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&amp;categorycode=*&amp;branch=<!-- TMPL_VAR NAME="branch" -->">Unset</a>
191                     </td>
192                 </tr>
193             </table>
194         </form>
195     </div>
196     <!-- TMPL_IF NAME="show_branch_cat_rule_form" -->
197     <div class="help">
198         <p>For this library, you can specify the maximum number of loans that 
199             a patron of a given category can make, regardless of the item type.
200         </p>
201         <p>If the total amount loanable for a given patron category is left blank,
202            no limit applies, except possibly for a limit you define for a specific item type.
203         </p>
204     </div>
205     <div>
206         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
207             <input type="hidden" name="op" value="add-branch-cat" />
208             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/>
209             <table>
210                 <tr>
211                     <th>Patron Category</th>
212                     <th>Total Current Checkouts Allowed</th>
213                     <th>&nbsp;</th>
214                 </tr>
215                 <!-- TMPL_LOOP NAME="branch_cat_rule_loop" -->
216                     <!-- TMPL_UNLESS NAME="__odd__" -->
217                     <tr class="highlight">
218                     <!-- TMPL_ELSE -->
219                     <tr>
220                     <!-- /TMPL_UNLESS -->
221                         <td><!-- TMPL_IF NAME="default_humancategorycode" -->
222                                 <em>Default</em>
223                             <!-- TMPL_ELSE -->
224                                 <!-- TMPL_VAR NAME="humancategorycode" -->
225                             <!-- /TMPL_IF -->
226                         </td>
227                         <td><!-- TMPL_IF NAME="unlimited_maxissueqty" -->
228                                 Unlimited
229                             <!-- TMPL_ELSE -->
230                                 <!-- TMPL_VAR NAME="maxissueqty" -->
231                             <!-- /TMPL_IF -->
232                         </td>
233                         <td>
234                             <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&amp;categorycode=<!-- TMPL_VAR NAME="categorycode" -->&amp;branch=<!-- TMPL_VAR NAME="branch" -->">Delete</a>
235                         </td>
236                     </tr>
237                 <!-- /TMPL_LOOP -->
238                 <tr>
239                     <td>
240                         <select name="categorycode">
241                         <!-- TMPL_LOOP NAME="categoryloop" -->
242                             <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option>
243                         <!-- /TMPL_LOOP -->
244                         </select>
245                     </td>
246                     <td><input name="maxissueqty" size="3" /></td>
247                     <td><input type="submit" value="Add" class="submit" /></td>
248                 </tr>
249             </table>
250         </form>
251     </div>
252     <!-- /TMPL_IF -->
253     <div class="help">
254         <p>
255             For this library, you can edit rules for given itemtypes, regardless
256             of the patron's category.
257         </p>
258         <p>
259             Currently, this means hold policies.
260             The various policies have the following effects:
261         </p>
262         <ul>
263             <li><strong>From Any Library:</strong> Patrons from any library may put this item on hold. <cite>(default if none is defined)</cite></li>
264             <li><strong>From Home Library:</strong> Only patrons from the item's home library may put this book on hold.</li>
265             <li><strong>No Holds Allowed:</strong> No patron may put this book on hold.</li>
266         </ul>
267         <p>
268             Note that if the system preference
269             <code>AllowHoldPolicyOverride</code> is enabled, these policies can
270             be overridden by your circulation staff. Also, these policies are
271             based on the patron's home branch, <em>not</em> the branch that
272             the reserving staff member is from.
273         </p>
274     </div>
275     <div>
276         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
277             <input type="hidden" name="op" value="add-branch-item" />
278             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/>
279             <table>
280                 <tr>
281                     <th>Item Type</th>
282                     <th>Hold Policy</th>
283                     <th>&nbsp;</th>
284                 </tr>
285                 <!-- TMPL_LOOP NAME="branch_item_rule_loop" -->
286                     <!-- TMPL_UNLESS NAME="__odd__" -->
287                     <tr class="highlight">
288                     <!-- TMPL_ELSE -->
289                     <tr>
290                     <!-- /TMPL_UNLESS -->
291                         <td><!-- TMPL_IF NAME="default_humanitemtype" -->
292                                 <em>Default</em>
293                             <!-- TMPL_ELSE -->
294                                 <!-- TMPL_VAR NAME="humanitemtype" -->
295                             <!-- /TMPL_IF -->
296                         </td>
297                         <td><!-- TMPL_IF NAME="holdallowed_any" -->
298                                 From Any Library
299                             <!-- TMPL_ELSIF NAME="holdallowed_same" -->
300                                 From Home Library
301                             <!-- TMPL_ELSE -->
302                                 No Holds Allowed
303                             <!-- /TMPL_IF -->
304                         </td>
305                         <td>
306                             <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-item&amp;itemtype=<!-- TMPL_VAR NAME="itemtype" -->&amp;branch=<!-- TMPL_VAR NAME="branch" -->">Delete</a>
307                         </td>
308                     </tr>
309                 <!-- /TMPL_LOOP -->
310                 <tr>
311                     <td>
312                         <select name="itemtype">
313                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
314                             <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
315                         <!-- /TMPL_LOOP -->
316                         </select>
317                     </td>
318                     <td>
319                         <select name="holdallowed">
320                             <option value="2">From Any Library</option>
321                             <option value="1">From Home Library</option>
322                             <option value="0">No Holds Allowed</option>
323                         </select>
324                     </td>
325                     <td><input type="submit" value="Add" class="submit" /></td>
326                 </tr>
327             </table>
328         </form>
329     </div>
330 </div>
331
332 </div>
333 <div class="yui-b">
334 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
335 </div>
336 </div>
337 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->