Lines 96-101
Link Here
|
96 |
<th>Item type</th> |
96 |
<th>Item type</th> |
97 |
<th>Actions</th> |
97 |
<th>Actions</th> |
98 |
<th>Note</th> |
98 |
<th>Note</th> |
|
|
99 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
99 |
<th>Current checkouts allowed</th> |
100 |
<th>Current checkouts allowed</th> |
100 |
<th>Current on-site checkouts allowed</th> |
101 |
<th>Current on-site checkouts allowed</th> |
101 |
<th>Loan period</th> |
102 |
<th>Loan period</th> |
Lines 193-198
Link Here
|
193 |
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
194 |
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
194 |
[% ELSE %]<span> </span>[% END %] |
195 |
[% ELSE %]<span> </span>[% END %] |
195 |
</td> |
196 |
</td> |
|
|
197 |
[% UNLESS humanbranch %] |
198 |
<td> |
199 |
[% IF rule.has_priority %] |
200 |
<input type="checkbox" checked="checked" disabled="disabled"/> |
201 |
[% ELSE %] |
202 |
<input type="checkbox" disabled="disabled"/> |
203 |
[% END %] |
204 |
</td> |
205 |
[% END %] |
196 |
<td> |
206 |
<td> |
197 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
207 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
198 |
[% maxissueqty | html %] |
208 |
[% maxissueqty | html %] |
Lines 364-369
Link Here
|
364 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
374 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
365 |
</td> |
375 |
</td> |
366 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
376 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
|
|
377 |
[% UNLESS humanbranch %] |
378 |
<td> |
379 |
<input type="checkbox" name="has_priority" id="has_priority"/> |
380 |
</td> |
381 |
[% END %] |
367 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
382 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
368 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
383 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
369 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
384 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
Lines 459-464
Link Here
|
459 |
<th>Item type</th> |
474 |
<th>Item type</th> |
460 |
<th> </th> |
475 |
<th> </th> |
461 |
<th>Note</th> |
476 |
<th>Note</th> |
|
|
477 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
462 |
<th>Current checkouts allowed</th> |
478 |
<th>Current checkouts allowed</th> |
463 |
<th>Current on-site checkouts allowed</th> |
479 |
<th>Current on-site checkouts allowed</th> |
464 |
<th>Loan period</th> |
480 |
<th>Loan period</th> |
Lines 726-732
Link Here
|
726 |
</td> |
742 |
</td> |
727 |
[% UNLESS humanbranch %] |
743 |
[% UNLESS humanbranch %] |
728 |
<td> |
744 |
<td> |
729 |
<input type="checkbox" [% IF branch_cat_rule_loo.has_priority %]checked[% END %] disabled/> |
745 |
[% IF branch_cat_rule_loo.has_priority %] |
|
|
746 |
<input type="checkbox" checked="checked" disabled/> |
747 |
[% ELSE %] |
748 |
<input type="checkbox" disabled/> |
749 |
[% END %] |
730 |
</td> |
750 |
</td> |
731 |
[% END %] |
751 |
[% END %] |
732 |
|
752 |
|
Lines 1075-1080
Link Here
|
1075 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1095 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1076 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1096 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1077 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1097 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
|
|
1098 |
} else if ( i == 3 ) { |
1099 |
var has_priority = $(this).find("input[type='checkbox']"); |
1100 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1101 |
//$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1078 |
} else { |
1102 |
} else { |
1079 |
$(current_column).find("input[type='text']").val(itm); |
1103 |
$(current_column).find("input[type='text']").val(itm); |
1080 |
// select the corresponding option |
1104 |
// select the corresponding option |
Lines 1103-1108
Link Here
|
1103 |
// - "Holds allowed (total)" |
1127 |
// - "Holds allowed (total)" |
1104 |
// - "Holds allowed (daily)" |
1128 |
// - "Holds allowed (daily)" |
1105 |
// - "Holds per record (count)" |
1129 |
// - "Holds per record (count)" |
|
|
1130 |
// If the value is not an integer for "Current checkouts allowed" or "Current on-site checkouts allowed" |
1106 |
// The value is "Unlimited" (or an equivalent translated string) |
1131 |
// The value is "Unlimited" (or an equivalent translated string) |
1107 |
// an it should be set to an empty string |
1132 |
// an it should be set to an empty string |
1108 |
if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { |
1133 |
if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { |