Lines 96-101
Link Here
|
96 |
<th class="fixed_sort">Item type</th> |
96 |
<th class="fixed_sort">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 199-204
Link Here
|
199 |
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
200 |
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
200 |
[% ELSE %]<span> </span>[% END %] |
201 |
[% ELSE %]<span> </span>[% END %] |
201 |
</td> |
202 |
</td> |
|
|
203 |
[% UNLESS humanbranch %] |
204 |
<td> |
205 |
[% IF rule.has_priority %] |
206 |
<input type="checkbox" checked="checked" disabled="disabled"/> |
207 |
[% ELSE %] |
208 |
<input type="checkbox" disabled="disabled"/> |
209 |
[% END %] |
210 |
</td> |
211 |
[% END %] |
202 |
<td> |
212 |
<td> |
203 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
213 |
[% IF maxissueqty.defined && maxissueqty != '' %] |
204 |
[% maxissueqty | html %] |
214 |
[% maxissueqty | html %] |
Lines 374-379
Link Here
|
374 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
384 |
<button name="cancel" class="clear_edit btn btn-default btn-xs"><i class="fa fa-undo"></i> Clear</button> |
375 |
</td> |
385 |
</td> |
376 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
386 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
|
|
387 |
[% UNLESS humanbranch %] |
388 |
<td> |
389 |
<input type="checkbox" name="has_priority" id="has_priority"/> |
390 |
</td> |
391 |
[% END %] |
377 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
392 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
378 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
393 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
379 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
394 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
Lines 473-478
Link Here
|
473 |
<th>Item type</th> |
488 |
<th>Item type</th> |
474 |
<th> </th> |
489 |
<th> </th> |
475 |
<th>Note</th> |
490 |
<th>Note</th> |
|
|
491 |
[% UNLESS humanbranch %]<th>Has priority</th>[% END %] |
476 |
<th>Current checkouts allowed</th> |
492 |
<th>Current checkouts allowed</th> |
477 |
<th>Current on-site checkouts allowed</th> |
493 |
<th>Current on-site checkouts allowed</th> |
478 |
<th>Loan period</th> |
494 |
<th>Loan period</th> |
Lines 744-750
Link Here
|
744 |
</td> |
760 |
</td> |
745 |
[% UNLESS humanbranch %] |
761 |
[% UNLESS humanbranch %] |
746 |
<td> |
762 |
<td> |
747 |
<input type="checkbox" [% IF branch_cat_rule_loo.has_priority %]checked[% END %] disabled/> |
763 |
[% IF branch_cat_rule_loo.has_priority %] |
|
|
764 |
<input type="checkbox" checked="checked" disabled/> |
765 |
[% ELSE %] |
766 |
<input type="checkbox" disabled/> |
767 |
[% END %] |
748 |
</td> |
768 |
</td> |
749 |
[% END %] |
769 |
[% END %] |
750 |
|
770 |
|
Lines 1118-1123
Link Here
|
1118 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1138 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1119 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1139 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1120 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1140 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
|
|
1141 |
} else if ( i == 3 ) { |
1142 |
var has_priority = $(this).find("input[type='checkbox']"); |
1143 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1144 |
//$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1121 |
} else { |
1145 |
} else { |
1122 |
$(current_column).find("input[type='text']").val(itm); |
1146 |
$(current_column).find("input[type='text']").val(itm); |
1123 |
// select the corresponding option |
1147 |
// select the corresponding option |
Lines 1146-1151
Link Here
|
1146 |
// - "Holds allowed (total)" |
1170 |
// - "Holds allowed (total)" |
1147 |
// - "Holds allowed (daily)" |
1171 |
// - "Holds allowed (daily)" |
1148 |
// - "Holds per record (count)" |
1172 |
// - "Holds per record (count)" |
|
|
1173 |
// If the value is not an integer for "Current checkouts allowed" or "Current on-site checkouts allowed" |
1149 |
// The value is "Unlimited" (or an equivalent translated string) |
1174 |
// The value is "Unlimited" (or an equivalent translated string) |
1150 |
// an it should be set to an empty string |
1175 |
// an it should be set to an empty string |
1151 |
if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { |
1176 |
if( !((parseFloat(itm) == parseInt(itm)) && !isNaN(itm)) ) { |