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