Bug 14045: Fix typo in template
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / smart-rules.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Administration &rsaquo; Circulation and fine rules</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript">
6 //<![CDATA[
7
8 function clear_edit(){
9     var cancel = confirm(_("Are you sure you want to cancel your changes?"));
10     if ( !cancel ) return;
11     $('#default-circulation-rules td').removeClass('highlighted-row');
12     var edit_row = $("#edit_row");
13     $(edit_row).find("input").each(function(){
14         var type = $(this).attr("type");
15         if (type != "button" && type != "submit" ) {
16             $(this).val("");
17             $(this).removeAttr("disabled");
18         }
19     });
20     $(edit_row).find("select").removeAttr("disabled");
21     $(edit_row).find("select option:first").attr("selected", "selected");
22     $(edit_row).find("td:last input[name='clear']").remove();
23 }
24
25 $(document).ready(function() {
26         $('#selectlibrary').find("input:submit").hide();
27         $('#branch').change(function() {
28                 $('#selectlibrary').submit();
29         });
30         $(".editrule").click(function(){
31             if ( $(edit_row).find("input[type='text'][value!='']").length > 0 ) {
32                 var edit = confirm(_("Are you sure you want to edit another rule?"));
33                 if (!edit) return false;
34             }
35             $('#default-circulation-rules td').removeClass('highlighted-row');
36             $(this).parent().parent().find("td").each(function (i) {
37                 $(this).addClass('highlighted-row');
38                 itm = $(this).text();
39                 itm = itm.replace(/^\s*|\s*$/g,'');
40                 var current_column = $("#edit_row td:eq("+i+")");
41                 if ( i != 6 ) {
42                     $(current_column).find("input[type='text']").val(itm);
43                     // select the corresponding option
44                     $(current_column).find("select option").each(function(){
45                         opt = $(this).text().toLowerCase();
46                         opt = opt.replace(/^\s*|\s*$/g,'');
47                         if ( opt == itm.toLowerCase() ) {
48                             $(this).attr('selected', 'selected');
49                         }
50                     });
51                     if ( i == 0 || i == 1 ) {
52                         // Disable the 2 first columns, we cannot update them.
53                         var val = $(current_column).find("select option:selected").val();
54                         var name = "categorycode";
55                         if ( i == 1 ) {
56                             name="itemtype";
57                         }
58                         // Remove potential previous input added
59                         $(current_column).find("input").remove();
60                         $(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />");
61                     } else if ( i == 2 || i == 3 ) {
62                         // If the value is not an integer for "Current checkouts allowed" or "Current on-site checkouts allowed"
63                         // The value is "Unlimited" (or an equivalent translated string)
64                         // an it should be set to an empty string
65                         if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) {
66                             $(current_column).find("input[type='text']").val("");
67                         }
68                     }
69                 } else {
70                     // specific processing for the Hard due date column
71                     var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val();
72                     var input_value = '';
73                     if (typeof select_value === 'undefined'){
74                         select_value = '-1';
75                     }else {
76                         input_value = itm.split(' ')[1];
77                     }
78                     $(current_column).find("input[type='text']").val(input_value);
79                     $(current_column).find("select").val(select_value);
80                 }
81             });
82             $("#default-circulation-rules tr:last td:eq(0) select").attr('disabled', 'disabled');
83             $("#default-circulation-rules tr:last td:eq(1) select").attr('disabled', 'disabled');
84             return false;
85         });
86 });
87 //]]>
88 </script>
89 </head>
90 <body id="admin_smart-rules" class="admin">
91 [% INCLUDE 'header.inc' %]
92 [% INCLUDE 'cat-search.inc' %]
93
94 <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; Circulation and fine rules</div>
95
96 <div id="doc3" class="yui-t1">
97
98 <div id="bd">
99     <div id="yui-main">
100     <div class="yui-b">
101     <h1 class="parameters">
102         [% IF ( humanbranch ) %]
103             Defining circulation and fine rules for "[% humanbranch %]"
104         [% ELSE %]
105             Defining circulation and fine rules for all libraries
106         [% END %]
107     </h1>
108     <div class="help">
109         <p>The rules are applied from most specific to less specific, using the first found in this order:</p>
110         <ul>
111             <li>same library, same patron type, same item type</li>
112             <li>same library, same patron type, all item types</li>
113             <li>same library, all patron types, same item type</li>
114             <li>same library, all patron types, all item types</li>
115             <li>default (all libraries), same patron type, same item type</li>
116             <li>default (all libraries), same patron type, all item types</li>
117             <li>default (all libraries), all patron types, same item type</li>
118             <li>default (all libraries), all patron types, all item types</li>
119         </ul>
120         <p>To modify a rule, create a new one with the same patron type and item type.</p>
121     </div>
122     <div>
123         <form method="get" action="/cgi-bin/koha/admin/smart-rules.pl" id="selectlibrary">
124         Select a library :
125             <select name="branch" id="branch" style="width:20em;">
126                 <option value="*">All libraries</option>
127             [% FOREACH branchloo IN branchloop %]
128                                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
129             [% END %]
130             </select>
131         </form>
132 [% IF ( definedbranch ) %]<form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"><label 
133 for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidden" name="frombranch" value="[% current_branch %]" />
134             <select name="tobranch" id="tobranch">[% FOREACH branchloo IN branchloop %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]</select> <input type="submit" value="Clone" /></form>[% END %]
135
136         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
137             <input type="hidden" name="op" value="add" />
138             <input type="hidden" name="branch" value="[% current_branch %]"/>
139             <table id="default-circulation-rules">
140             <thead>
141             <tr>
142                 <th>Patron category</th>
143                 <th>Item type</th>
144                 <th>Current checkouts allowed</th>
145                 <th>Current on-site checkouts allowed</th>
146                 <th>Loan period</th>
147                 <th>Unit</th>
148                 <th>Hard due date</th>
149                 <th>Fine amount</th>
150                 <th>Fine charging interval</th>
151                 <th>Fine grace period (day)</th>
152                 <th>Overdue fines cap (amount)</th>
153                 <th>Suspension in days (day)</th>
154                 <th>Max. suspension duration (day)</th>
155                 <th>Renewals allowed (count)</th>
156                 <th>Renewal period</th>
157                 <th>No renewal before</th>
158                 <th>Automatic renewal</th>
159                 <th>Holds allowed (count)</th>
160                 <th>On shelf holds allowed</th>
161                 <th>Item level holds</th>
162                 <th>Rental discount (%)</th>
163                 <th colspan="2">&nbsp;</th>
164             </tr>
165             </thead>
166             <tbody>
167                                 [% FOREACH rule IN rules %]
168                                         <tr id="row_[% loop.count %]">
169                                                         <td>[% IF ( rule.default_humancategorycode ) %]
170                                                                         <em>All</em>
171                                                                 [% ELSE %]
172                                                                         [% rule.humancategorycode %]
173                                                                 [% END %]
174                                                         </td>
175                                                         <td>[% IF ( rule.default_humanitemtype ) %]
176                                                                         <em>All</em>
177                                                                 [% ELSE %]
178                                                                         [% rule.humanitemtype %]
179                                                                 [% END %]
180                                                         </td>
181                                                         <td>[% IF ( rule.unlimited_maxissueqty ) %]
182                                                                         Unlimited
183                                                                 [% ELSE %]
184                                                                         [% rule.maxissueqty %]
185                                                                 [% END %]
186                                                         </td>
187                             <td>[% IF rule.unlimited_maxonsiteissueqty %]
188                                     Unlimited
189                                 [% ELSE %]
190                                     [% rule.maxonsiteissueqty %]
191                                 [% END %]
192                             </td>
193                                                         <td>[% rule.issuelength %]</td>
194                                                         <td>
195                                                             [% rule.lengthunit %]
196                                                         </td>
197                             <td>
198                               [% IF ( rule.hardduedate ) %]
199                                 [% IF ( rule.hardduedatebefore ) %]
200                                   before [% rule.hardduedate %]
201                                   <input type="hidden" name="hardduedatecomparebackup" value="-1" />
202                                 [% ELSIF ( rule.hardduedateexact ) %]
203                                   on [% rule.hardduedate %]
204                                   <input type="hidden" name="hardduedatecomparebackup" value="0" />
205                                 [% ELSIF ( rule.hardduedateafter ) %]
206                                   after [% rule.hardduedate %]
207                                   <input type="hidden" name="hardduedatecomparebackup" value="1" />
208                                 [% END %]
209                               [% ELSE %]
210                                 None defined
211                               [% END %]
212                             </td>
213                                                         <td>[% rule.fine %]</td>
214                                                         <td>[% rule.chargeperiod %]</td>
215                                                         <td>[% rule.firstremind %]</td>
216                             <td>[% rule.overduefinescap FILTER format("%.2f") %]</td>
217                                                         <td>[% rule.finedays %]</td>
218                             <td>[% rule.maxsuspensiondays %]</td>
219                                                         <td>[% rule.renewalsallowed %]</td>
220                             <td>[% rule.renewalperiod %]</td>
221                             <td>[% rule.norenewalbefore %]</td>
222                             <td>
223                                 [% IF ( rule.auto_renew ) %]
224                                 Yes
225                                 [% ELSE %]
226                                 No
227                                 [% END %]
228                             </td>
229                                                         <td>[% rule.reservesallowed %]</td>
230                                                         <td>[% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]</td>
231                                                         <td>[% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]</td>
232                                                         <td>[% rule.rentaldiscount %]</td>
233                             <td><a href="#" class="editrule">Edit</a></td>
234                                                         <td>
235                                                                 <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype %]&amp;categorycode=[% rule.categorycode %]&amp;branch=[% rule.current_branch %]">Delete</a>
236                                                         </td>
237                         </tr>
238                 [% END %]
239                 <tr id="edit_row">
240                     <td>
241                         <select name="categorycode" id="categorycode">
242                             <option value="*">All</option>
243                         [% FOREACH categoryloo IN categoryloop %]
244                             <option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>
245                         [% END %]
246                         </select>
247                     </td>
248                     <td>
249                         <select name="itemtype" id="matrixitemtype" style="width:13em;">
250                             <option value="*">All</option>
251                         [% FOREACH itemtypeloo IN itemtypeloop %]
252                             <option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.description %]</option>
253                         [% END %]
254                         </select>
255                     </td>
256                     <td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td>
257                     <td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td>
258                     <td><input type="text" name="issuelength" id="issuelength" size="3" /> </td>
259                     <td>
260                       <select name="lengthunit" id="lengthunit">
261                         <option value="days" selected="selected">Days</option>
262                         <option value="hours">Hours</option>
263                       </select>
264                     </td>
265                     <td>
266                         <select name="hardduedatecompare" id="hardduedatecompare">
267                            <option value="-1">Before</option>
268                            <option value="0">Exactly on</option>
269                            <option value="1">After</option>
270                         </select>
271                         <input type="text" size="10" id="hardduedate" name="hardduedate" value="[% hardduedate %]" class="datepicker" />
272                         <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
273                     </td>
274                     <td><input type="text" name="fine" id="fine" size="4" /></td>
275                     <td><input type="text" name="chargeperiod" id="chargeperiod" size="2" /></td>
276                     <td><input type="text" name="firstremind" id="firstremind" size="2" /> </td>
277                     <td><input type="text" name="overduefinescap" id="overduefinescap" size="6" /> </td>
278                     <td><input type="text" name="finedays" id="fined" size="3" /> </td>
279                     <td><input type="text" name="maxsuspensiondays" id="maxsuspensiondays" size="3" /> </td>
280                     <td><input type="text" name="renewalsallowed" id="renewalsallowed" size="2" /></td>
281                     <td><input type="text" name="renewalperiod" id="renewalperiod" size="3" /></td>
282                     <td><input type="text" name="norenewalbefore" id="norenewalbefore" size="3" /></td>
283                     <td>
284                         <select name="auto_renew" id="auto_renew">
285                             <option value="no" selected>No</option>
286                             <option value="yes">Yes</option>
287                         </select>
288                     </td>
289                     <td><input type="text" name="reservesallowed" id="reservesallowed" size="2" /></td>
290                     <td>
291                         <select name="onshelfholds" id="onshelfholds">
292                             <option value="0" selected>No</option>
293                             <option value="1">Yes</option>
294                         </select>
295                     </td>
296                     <td>
297                         <select id="opacitemholds" name="opacitemholds">
298                             <option value="N">Don't allow</option>
299                             <option value="Y">Allow</option>
300                             <option value="F">Force</option>
301                         </select>
302                     </td>
303                     <td><input type="text" name="rentaldiscount" id="rentaldiscount" size="2" /></td>
304                     <td colspan="2">
305                         <input type="hidden" name="branch" value="[% current_branch %]"/>
306                         <input type="submit" value="Save" class="submit" />
307                         <input type="button" name="cancel" value="Clear" onclick="clear_edit();return false;" />
308                     </td>
309                 </tr>
310                 <tfoot>
311                     <tr>
312                       <th>Patron category</th>
313                       <th>Item type</th>
314                       <th>Current checkouts allowed</th>
315                       <th>Loan period</th>
316                       <th>Unit</th>
317                       <th>Hard due date</th>
318                       <th>Fine amount</th>
319                       <th>Fine charging interval</th>
320                       <th>Fine grace period (day)</th>
321                       <th>Overdue fines cap (amount)</th>
322                       <th>Suspension in days (day)</th>
323                       <th>Max. suspension duration (day)</th>
324                       <th>Renewals allowed (count)</th>
325                       <th>Renewal period</th>
326                       <th>No renewal before</th>
327                       <th>Automatic renewal</th>
328                       <th>Holds allowed (count)</th>
329                       <th>On shelf holds allowed</th>
330                       <th>Item level holds</th>
331                       <th>Rental discount (%)</th>
332                       <th colspan="2">&nbsp;</th>
333                     </tr>
334                   </tfoot>
335                 </tbody>
336             </table>
337         </form>
338     </div>
339     <div id="defaults-for-this-library" class="container">
340     <h3>Default checkout, hold and return policy[% IF ( humanbranch ) %] for [% humanbranch %][% END %]</h3>
341         <p>You can set a default maximum number of checkouts, hold policy and return policy that will be used if none is defined below for a particular item type or category.</p>
342         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
343             <input type="hidden" name="op" value="set-branch-defaults" />
344             <input type="hidden" name="branch" value="[% current_branch %]"/>
345             <table>
346                 <tr>
347                     <th>&nbsp;</th>
348                     <th>Total current checkouts allowed</th>
349                     <th>Total current on-site checkouts allowed</th>
350                     <th>Hold policy</th>
351                     <th>Return policy</th>
352                     <th>&nbsp;</th>
353                     <th>&nbsp;</th>
354                 </tr>
355                 <tr>
356                     <td><em>Defaults[% UNLESS ( default_rules ) %] (not set)[% END %]</em></td>
357                     <td><input type="text" name="maxissueqty" size="3" value="[% default_maxissueqty %]"/></td>
358                     <td><input type="text" name="maxonsiteissueqty" size="3" value="[% default_maxonsiteissueqty %]"/></td>
359                     <td>
360                         <select name="holdallowed">
361                             [% IF ( default_holdallowed_any ) %]
362                             <option value="2" selected="selected">
363                             [% ELSE %]
364                             <option value="2">
365                             [% END %]
366                                 From any library
367                             </option>
368                             [% IF ( default_holdallowed_same ) %]
369                             <option value="1" selected="selected">
370                             [% ELSE %]
371                             <option value="1">
372                             [% END %]
373                                 From home library
374                             </option>
375                             [% IF ( default_holdallowed_none ) %]
376                             <option value="0" selected="selected">
377                             [% ELSE %]
378                             <option value="0">
379                             [% END %]
380                                 No holds allowed
381                             </option>
382                         </select>
383                     </td>
384                     <td>
385                         <select name="returnbranch">
386                             [% IF ( default_returnbranch == 'homebranch' ) %]
387                             <option value="homebranch" selected="selected">
388                             [% ELSE %]
389                             <option value="homebranch">
390                             [% END %]
391                                 Item returns home
392                             </option>
393                             [% IF ( default_returnbranch == 'holdingbranch' ) %]
394                             <option value="holdingbranch" selected="selected">
395                             [% ELSE %]
396                             <option value="holdingbranch">
397                             [% END %]
398                                 Item returns to issuing library
399                             </option>
400                             [% IF ( default_returnbranch == 'noreturn' ) %]
401                             <option value="noreturn" selected="selected">
402                             [% ELSE %]
403                             <option value="noreturn">
404                             [% END %]
405                                 Item floats
406                             </option>
407                         </select>
408                     </td>
409                     <td><input type="submit" value="Save" class="submit" /></td>
410                     <td>
411                         <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&amp;categorycode=*&amp;branch=[% current_branch %]">Unset</a>
412                     </td>
413                 </tr>
414             </table>
415         </form>
416     </div>
417     [% IF ( show_branch_cat_rule_form ) %]
418     <div id="holds-policy-by-patron-category" class="container">
419     <h3>[% IF humanbranch %]Checkout limit by patron category for [% humanbranch %][% ELSE %]Default checkout limit by patron category[% END %]</h3>
420         <p>For this library, you can specify the maximum number of loans that
421             a patron of a given category can make, regardless of the item type.
422         </p>
423         <p>If the total amount loanable for a given patron category is left blank,
424            no limit applies, except possibly for a limit you define for a specific item type.
425         </p>
426         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
427             <input type="hidden" name="op" value="add-branch-cat" />
428             <input type="hidden" name="branch" value="[% current_branch %]"/>
429             <table>
430                 <tr>
431                     <th>Patron category</th>
432                     <th>Total current checkouts allowed</th>
433                     <th>Total current on-site checkouts allowed</th>
434                     <th>&nbsp;</th>
435                 </tr>
436                 [% FOREACH branch_cat_rule_loo IN branch_cat_rule_loop %]
437                     [% UNLESS ( loop.odd ) %]
438                     <tr class="highlight">
439                     [% ELSE %]
440                     <tr>
441                     [% END %]
442                         <td>[% IF ( branch_cat_rule_loo.default_humancategorycode ) %]
443                                 <em>Default</em>
444                             [% ELSE %]
445                                 [% branch_cat_rule_loo.humancategorycode %]
446                             [% END %]
447                         </td>
448                         <td>[% IF ( branch_cat_rule_loo.unlimited_maxissueqty ) %]
449                                 Unlimited
450                             [% ELSE %]
451                                 [% branch_cat_rule_loo.maxissueqty %]
452                             [% END %]
453                         </td>
454                         <td>[% IF ( branch_cat_rule_loo.unlimited_maxonsiteissueqty ) %]
455                                 Unlimited
456                             [% ELSE %]
457                                 [% branch_cat_rule_loo.maxonsiteissueqty %]
458                             [% END %]
459                         </td>
460
461                         <td>
462                             <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&amp;categorycode=[% branch_cat_rule_loo.categorycode %]&amp;branch=[% current_branch %]">Delete</a>
463                         </td>
464                     </tr>
465                 [% END %]
466                 <tr>
467                     <td>
468                         <select name="categorycode">
469                         [% FOREACH categoryloo IN categoryloop %]
470                             <option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>
471                         [% END %]
472                         </select>
473                     </td>
474                     <td><input name="maxissueqty" size="3" /></td>
475                     <td><input name="maxonsiteissueqty" size="3" /></td>
476                     <td><input type="submit" value="Add" class="submit" /></td>
477                 </tr>
478             </table>
479         </form>
480     </div>
481     [% END %]
482     <div id="holds-policy-by-item-type" class="container">
483     <h3>[% IF humanbranch %]Holds policy by item type for [% humanbranch %][% ELSE %]Default holds policy by item type[% END %]</h3>
484         <p>
485             For this library, you can edit rules for given itemtypes, regardless
486             of the patron's category.
487         </p>
488         <p>
489             Currently, this means hold policies.
490             The various policies have the following effects:
491         </p>
492         <ul>
493             <li><strong>From any library:</strong> Patrons from any library may put this item on hold. <cite>(default if none is defined)</cite></li>
494             <li><strong>From home library:</strong> Only patrons from the item's home library may put this book on hold.</li>
495             <li><strong>No holds allowed:</strong> No patron may put this book on hold.</li>
496         </ul>
497         <p>
498             Note that if the system preference
499             <code>AllowHoldPolicyOverride</code> is enabled, these policies can
500             be overridden by your circulation staff. Also, these policies are
501             based on the patron's home library, <em>not</em> the library where the hold is being placed..
502         </p>
503
504         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
505             <input type="hidden" name="op" value="add-branch-item" />
506             <input type="hidden" name="branch" value="[% current_branch %]"/>
507             <table>
508                 <tr>
509                     <th>Item type</th>
510                     <th>Hold policy</th>
511                     <th>Return policy</th>
512                     <th>&nbsp;</th>
513                 </tr>
514                 [% FOREACH branch_item_rule_loo IN branch_item_rule_loop %]
515                     [% UNLESS ( loop.odd ) %]
516                     <tr class="highlight">
517                     [% ELSE %]
518                     <tr>
519                     [% END %]
520                         <td>[% IF ( branch_item_rule_loo.default_humanitemtype ) %]
521                                 <em>Default</em>
522                             [% ELSE %]
523                                 [% branch_item_rule_loo.humanitemtype %]
524                             [% END %]
525                         </td>
526                         <td>[% IF ( branch_item_rule_loo.holdallowed_any ) %]
527                                 From any library
528                             [% ELSIF ( branch_item_rule_loo.holdallowed_same ) %]
529                                 From home library
530                             [% ELSE %]
531                                 No holds allowed
532                             [% END %]
533                         </td>
534                         <td>[% IF ( branch_item_rule_loo.returnbranch == 'homebranch' ) %]
535                                 Item returns home
536                             [% ELSIF ( branch_item_rule_loo.returnbranch == 'holdingbranch' ) %]
537                                 Item returns to issuing branch
538                             [% ELSIF ( branch_item_rule_loo.returnbranch == 'noreturn' ) %]
539                                 Item floats
540                             [% ELSE %]
541                                 Error - unknown option
542                             [% END %]
543                         </td>
544                         <td>
545                             <a class="button" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-item&amp;itemtype=[% branch_item_rule_loo.itemtype %]&amp;branch=[% current_branch %]">Delete</a>
546                         </td>
547                     </tr>
548                 [% END %]
549                 <tr>
550                     <td>
551                         <select name="itemtype">
552                         [% FOREACH itemtypeloo IN itemtypeloop %]
553                             <option value="[% itemtypeloo.itemtype %]">[% itemtypeloo.description %]</option>
554                         [% END %]
555                         </select>
556                     </td>
557                     <td>
558                         <select name="holdallowed">
559                             <option value="2">From any library</option>
560                             <option value="1">From home library</option>
561                             <option value="0">No holds allowed</option>
562                         </select>
563                     </td>
564                     <td>
565                         <select name="returnbranch">
566                             <option value="homebranch">Item returns home</option>
567                             <option value="holdingbranch">Item returns to issuing library</option>
568                             <option value="noreturn">Item floats</option>
569                         </select>
570                     </td>
571                     <td><input type="submit" value="Add" class="submit" /></td>
572                 </tr>
573             </table>
574         </form>
575     </div>
576 </div>
577
578 </div>
579 <div class="yui-b">
580 [% INCLUDE 'admin-menu.inc' %]
581 </div>
582 </div>
583 [% INCLUDE 'intranet-bottom.inc' %]