166746e846da0f9d154a1c509423d2b750b10b1b
[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 id="bloc100">
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                 <br />
60                 <br />
61         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
62             <input type="hidden" name="op" value="add" />
63             <table>
64             <tr>
65                 <th>Patron Category</th>
66                 <th>Item Type</th>
67                 <th>Fine Amount</th>
68                 <th>Fine Grace Period</th>
69                 <th>Fine Charging Interval</th>
70                 <th>Current Checkouts Allowed</th>
71                 <th>Loan Period</th><th>&nbsp;</th>
72             </tr>
73             <!-- TMPL_LOOP NAME="rules" -->
74                 <!-- TMPL_UNLESS NAME="__odd__" -->
75                 <tr class="highlight">
76                 <!-- TMPL_ELSE -->
77                 <tr>
78                 <!-- /TMPL_UNLESS -->
79                     <td><!-- TMPL_IF NAME="default_humancategorycode" -->
80                             <em>Default</em>
81                         <!-- TMPL_ELSE -->
82                             <!-- TMPL_VAR NAME="humancategorycode" -->
83                         <!-- /TMPL_IF -->
84                     </td>
85                     <td><!-- TMPL_IF NAME="default_humanitemtype" -->
86                             <em>Default</em>
87                         <!-- TMPL_ELSE -->
88                             <!-- TMPL_VAR NAME="humanitemtype" -->
89                         <!-- /TMPL_IF -->
90                     </td>
91                     <td>$<!-- TMPL_VAR NAME="fine" --></td>
92                     <td><!-- TMPL_IF NAME="firstremind" --><!-- TMPL_VAR NAME="firstremind" --> day(s)<!-- /TMPL_IF --></td>
93                     <td><!-- TMPL_IF NAME="chargeperiod" --><!-- TMPL_VAR NAME="chargeperiod" --> day(s)<!-- /TMPL_IF --></td>
94                     <td><!-- TMPL_IF NAME="unlimited_maxissueqty" -->
95                             Unlimited
96                         <!-- TMPL_ELSE -->
97                             <!-- TMPL_VAR NAME="maxissueqty" -->
98                         <!-- /TMPL_IF -->
99                     </td>
100                     <td><!-- TMPL_IF NAME="issuelength" --><!-- TMPL_VAR NAME="issuelength" --> day(s)<!-- /TMPL_IF --></td>
101                     <td>
102                         <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>
103                     </td>
104                 </tr>
105             <!-- /TMPL_LOOP -->
106                 <tr>
107                     <td>
108                         <select name="categorycode">
109                             <option value="*">Default</option>
110                         <!-- TMPL_LOOP NAME="categoryloop" -->
111                             <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option>
112                         <!-- /TMPL_LOOP -->
113                         </select>
114                     </td>
115                     <td>
116                         <select name="itemtype" style="width:13em;">
117                             <option value="*">Default</option>
118                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
119                             <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
120                         <!-- /TMPL_LOOP -->
121                         </select>
122                     </td>
123                     <td>$<input name="fine" size="4" /></td>
124                     <td><input name="firstremind" size="2" /> day(s)</td>
125                     <td><input name="chargeperiod" size="2" /> day(s)</td>
126                     <td><input name="maxissueqty" size="3" /></td>
127                     <td><input name="issuelength" size="3" /> day(s)</td>
128                     <td><input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/><input type="submit" value="Add" class="submit" /></td>
129                 </tr>
130             </table>
131         </form>
132     </div>
133     <div class="help">
134         <h4>Defaults for this library</h4>
135         <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>
136     </div>
137     <div>
138         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
139             <input type="hidden" name="op" value="set-branch-defaults" />
140             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/>
141             <table>
142                 <tr>
143                     <th>&nbsp;</th>
144                     <th>Total Current Checkouts Allowed</th>
145                     <th>Hold Policy</th>
146                     <th>&nbsp;</th>
147                 </tr>
148                 <tr>
149                     <td><em>Defaults<!-- TMPL_UNLESS NAME="default_rules" --> (not set)<!-- /TMPL_IF --></em></td>
150                     <td><input name="maxissueqty" size="3" value="<!-- TMPL_VAR NAME="default_maxissueqty" -->"/></td>
151                     <td>
152                         <select name="holdallowed">
153                             <!-- TMPL_IF NAME="default_holdallowed_any" -->
154                             <option value="2" selected="selected">
155                             <!-- TMPL_ELSE -->
156                             <option value="2">
157                             <!-- /TMPL_IF -->
158                                 From Any Library
159                             </option>
160                             <!-- TMPL_IF NAME="default_holdallowed_same" -->
161                             <option value="1" selected="selected">
162                             <!-- TMPL_ELSE -->
163                             <option value="1">
164                             <!-- /TMPL_IF -->
165                                 From Home Library
166                             </option>
167                             <!-- TMPL_IF NAME="default_holdallowed_none" -->
168                             <option value="0" selected="selected">
169                             <!-- TMPL_ELSE -->
170                             <option value="0">
171                             <!-- /TMPL_IF -->
172                                 No Holds Allowed
173                             </option>
174                         </select>
175                     </td>
176                     <td><input type="submit" value="Save" class="submit" /></td>
177                     <td>
178                         <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>
179                     </td>
180                 </tr>
181             </table>
182         </form>
183     </div>
184     <!-- TMPL_IF NAME="show_branch_cat_rule_form" -->
185     <div class="help">
186         <p>For this library, you can specify the maximum number of loans that 
187             a patron of a given category can make, regardless of the item type.
188         </p>
189         <p>If the total amount loanable for a given patron category is left blank,
190            no limit applies, except possibly for a limit you define for a specific item type.
191         </p>
192     </div>
193     <div>
194         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
195             <input type="hidden" name="op" value="add-branch-cat" />
196             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/>
197             <table>
198                 <tr>
199                     <th>Patron Category</th>
200                     <th>Total Current Checkouts Allowed</th>
201                     <th>&nbsp;</th>
202                 </tr>
203                 <!-- TMPL_LOOP NAME="branch_cat_rule_loop" -->
204                     <!-- TMPL_UNLESS NAME="__odd__" -->
205                     <tr class="highlight">
206                     <!-- TMPL_ELSE -->
207                     <tr>
208                     <!-- /TMPL_UNLESS -->
209                         <td><!-- TMPL_IF NAME="default_humancategorycode" -->
210                                 <em>Default</em>
211                             <!-- TMPL_ELSE -->
212                                 <!-- TMPL_VAR NAME="humancategorycode" -->
213                             <!-- /TMPL_IF -->
214                         </td>
215                         <td><!-- TMPL_IF NAME="unlimited_maxissueqty" -->
216                                 Unlimited
217                             <!-- TMPL_ELSE -->
218                                 <!-- TMPL_VAR NAME="maxissueqty" -->
219                             <!-- /TMPL_IF -->
220                         </td>
221                         <td>
222                             <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>
223                         </td>
224                     </tr>
225                 <!-- /TMPL_LOOP -->
226                 <tr>
227                     <td>
228                         <select name="categorycode">
229                         <!-- TMPL_LOOP NAME="categoryloop" -->
230                             <option value="<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></option>
231                         <!-- /TMPL_LOOP -->
232                         </select>
233                     </td>
234                     <td><input name="maxissueqty" size="3" /></td>
235                     <td><input type="submit" value="Add" class="submit" /></td>
236                 </tr>
237             </table>
238         </form>
239     </div>
240     <!-- /TMPL_IF -->
241     <div class="help">
242         <p>
243             For this library, you can edit rules for given itemtypes, regardless
244             of the patron's category.
245         </p>
246         <p>
247             Currently, this means hold policies.
248             The various policies have the following effects:
249         </p>
250         <ul>
251             <li><strong>From Any Library:</strong> Patrons from any library may put this item on hold. <cite>(default if none is defined)</cite></li>
252             <li><strong>From Home Library:</strong> Only patrons from the item's home library may put this book on hold.</li>
253             <li><strong>No Holds Allowed:</strong> No patron may put this book on hold.</li>
254         </ul>
255         <p>
256             Note that if the system preference
257             <code>AllowHoldPolicyOverride</code> is enabled, these policies can
258             be overridden by your circulation staff. Also, these policies are
259             based on the patron's home branch, <em>not</em> the branch that
260             the reserving staff member is from.
261         </p>
262     </div>
263     <div>
264         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
265             <input type="hidden" name="op" value="add-branch-item" />
266             <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->"/>
267             <table>
268                 <tr>
269                     <th>Item Type</th>
270                     <th>Hold Policy</th>
271                     <th>&nbsp;</th>
272                 </tr>
273                 <!-- TMPL_LOOP NAME="branch_item_rule_loop" -->
274                     <!-- TMPL_UNLESS NAME="__odd__" -->
275                     <tr class="highlight">
276                     <!-- TMPL_ELSE -->
277                     <tr>
278                     <!-- /TMPL_UNLESS -->
279                         <td><!-- TMPL_IF NAME="default_humanitemtype" -->
280                                 <em>Default</em>
281                             <!-- TMPL_ELSE -->
282                                 <!-- TMPL_VAR NAME="humanitemtype" -->
283                             <!-- /TMPL_IF -->
284                         </td>
285                         <td><!-- TMPL_IF NAME="holdallowed_any" -->
286                                 From Any Library
287                             <!-- TMPL_ELSIF NAME="holdallowed_same" -->
288                                 From Home Library
289                             <!-- TMPL_ELSE -->
290                                 No Holds Allowed
291                             <!-- /TMPL_IF -->
292                         </td>
293                         <td>
294                             <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>
295                         </td>
296                     </tr>
297                 <!-- /TMPL_LOOP -->
298                 <tr>
299                     <td>
300                         <select name="itemtype">
301                         <!-- TMPL_LOOP NAME="itemtypeloop" -->
302                             <option value="<!-- TMPL_VAR NAME="itemtype" -->"><!-- TMPL_VAR NAME="description" --></option>
303                         <!-- /TMPL_LOOP -->
304                         </select>
305                     </td>
306                     <td>
307                         <select name="holdallowed">
308                             <option value="2">From Any Library</option>
309                             <option value="1">From Home Library</option>
310                             <option value="0">No Holds Allowed</option>
311                         </select>
312                     </td>
313                     <td><input type="submit" value="Add" class="submit" /></td>
314                 </tr>
315             </table>
316         </form>
317     </div>
318 </div>
319
320 </div>
321 <div class="yui-b">
322 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
323 </div>
324 </div>
325 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->