Lines 90-95
Link Here
|
90 |
<th>Item type</th> |
90 |
<th>Item type</th> |
91 |
<th>Actions</th> |
91 |
<th>Actions</th> |
92 |
<th>Note</th> |
92 |
<th>Note</th> |
|
|
93 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
93 |
<th>Current checkouts allowed</th> |
94 |
<th>Current checkouts allowed</th> |
94 |
<th>Current on-site checkouts allowed</th> |
95 |
<th>Current on-site checkouts allowed</th> |
95 |
<th>Loan period</th> |
96 |
<th>Loan period</th> |
Lines 185-190
Link Here
|
185 |
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
186 |
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
186 |
[% ELSE %]<span> </span>[% END %] |
187 |
[% ELSE %]<span> </span>[% END %] |
187 |
</td> |
188 |
</td> |
|
|
189 |
[% UNLESS humanbranch %] |
190 |
<td> |
191 |
[% IF rule.has_priority %] |
192 |
<input type="checkbox" checked="checked" disabled="disabled"/> |
193 |
[% ELSE %] |
194 |
<input type="checkbox" disabled="disabled"/> |
195 |
[% END %] |
196 |
</td> |
197 |
[% END %] |
188 |
<td> |
198 |
<td> |
189 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
199 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
190 |
[% maxissueqty | html %] |
200 |
[% maxissueqty | html %] |
Lines 342-347
Link Here
|
342 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
352 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
343 |
</td> |
353 |
</td> |
344 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
354 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
|
|
355 |
[% UNLESS humanbranch %] |
356 |
<td> |
357 |
<input type="checkbox" name="has_priority" id="has_priority"/> |
358 |
</td> |
359 |
[% END %] |
345 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
360 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
346 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
361 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
347 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
362 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
Lines 435-440
Link Here
|
435 |
<th>Item type</th> |
450 |
<th>Item type</th> |
436 |
<th> </th> |
451 |
<th> </th> |
437 |
<th>Note</th> |
452 |
<th>Note</th> |
|
|
453 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
438 |
<th>Current checkouts allowed</th> |
454 |
<th>Current checkouts allowed</th> |
439 |
<th>Current on-site checkouts allowed</th> |
455 |
<th>Current on-site checkouts allowed</th> |
440 |
<th>Loan period</th> |
456 |
<th>Loan period</th> |
Lines 702-708
Link Here
|
702 |
</td> |
718 |
</td> |
703 |
[% UNLESS humanbranch %] |
719 |
[% UNLESS humanbranch %] |
704 |
<td> |
720 |
<td> |
705 |
<input type="checkbox" [% IF branch_cat_rule_loo.has_priority %]checked[% END %] disabled/> |
721 |
[% IF branch_cat_rule_loo.has_priority %] |
|
|
722 |
<input type="checkbox" checked="checked" disabled/> |
723 |
[% ELSE %] |
724 |
<input type="checkbox" disabled/> |
725 |
[% END %] |
706 |
</td> |
726 |
</td> |
707 |
[% END %] |
727 |
[% END %] |
708 |
|
728 |
|
Lines 1039-1044
Link Here
|
1039 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1059 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1040 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1060 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1041 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1061 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
|
|
1062 |
} else if ( i == 3 ) { |
1063 |
var has_priority = $(this).find("input[type='checkbox']"); |
1064 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1065 |
//$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1042 |
} else { |
1066 |
} else { |
1043 |
$(current_column).find("input[type='text']").val(itm); |
1067 |
$(current_column).find("input[type='text']").val(itm); |
1044 |
// select the corresponding option |
1068 |
// select the corresponding option |
Lines 1066-1071
Link Here
|
1066 |
// - "Holds allowed (total)" |
1090 |
// - "Holds allowed (total)" |
1067 |
// - "Holds allowed (daily)" |
1091 |
// - "Holds allowed (daily)" |
1068 |
// - "Holds per record (count)" |
1092 |
// - "Holds per record (count)" |
|
|
1093 |
// If the value is not an integer for "Current checkouts allowed" or "Current on-site checkouts allowed" |
1069 |
// The value is "Unlimited" (or an equivalent translated string) |
1094 |
// The value is "Unlimited" (or an equivalent translated string) |
1070 |
// an it should be set to an empty string |
1095 |
// an it should be set to an empty string |
1071 |
if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { |
1096 |
if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { |