Lines 91-97
Link Here
|
91 |
<th>Actions</th> |
91 |
<th>Actions</th> |
92 |
<th>Note</th> |
92 |
<th>Note</th> |
93 |
<th>Current checkouts allowed</th> |
93 |
<th>Current checkouts allowed</th> |
94 |
<th>Current on-site checkouts allowed</th> |
|
|
95 |
<th>Loan period</th> |
94 |
<th>Loan period</th> |
96 |
<th>Unit</th> |
95 |
<th>Unit</th> |
97 |
<th>Hard due date</th> |
96 |
<th>Hard due date</th> |
Lines 128-134
Link Here
|
128 |
[% SET i = '' UNLESS i.defined %] |
127 |
[% SET i = '' UNLESS i.defined %] |
129 |
[% SET note = all_rules.$c.$i.note %] |
128 |
[% SET note = all_rules.$c.$i.note %] |
130 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
129 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
131 |
[% SET maxonsiteissueqty = all_rules.$c.$i.maxonsiteissueqty %] |
|
|
132 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
130 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
133 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
131 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
134 |
[% SET hardduedate = all_rules.$c.$i.hardduedate %] |
132 |
[% SET hardduedate = all_rules.$c.$i.hardduedate %] |
Lines 156-162
Link Here
|
156 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
154 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
157 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
155 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
158 |
|
156 |
|
159 |
[% SET show_rule = maxissueqty || maxonsiteissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %] |
157 |
[% SET show_rule = maxissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %] |
160 |
[% IF show_rule %] |
158 |
[% IF show_rule %] |
161 |
[% SET row_count = row_count + 1 %] |
159 |
[% SET row_count = row_count + 1 %] |
162 |
<tr row_countd="row_[% row_count | html %]"> |
160 |
<tr row_countd="row_[% row_count | html %]"> |
Lines 190-202
Link Here
|
190 |
<span>Unlimited</span> |
188 |
<span>Unlimited</span> |
191 |
[% END %] |
189 |
[% END %] |
192 |
</td> |
190 |
</td> |
193 |
<td> |
|
|
194 |
[% IF maxonsiteissueqty.defined && maxonsiteissueqty != '' %] |
195 |
[% maxonsiteissueqty | html %] |
196 |
[% ELSE %] |
197 |
<span>Unlimited</span> |
198 |
[% END %] |
199 |
</td> |
200 |
<td>[% issuelength | html %]</td> |
191 |
<td>[% issuelength | html %]</td> |
201 |
<td> |
192 |
<td> |
202 |
[% IF ( lengthunit == 'days' ) %] |
193 |
[% IF ( lengthunit == 'days' ) %] |
Lines 333-339
Link Here
|
333 |
</td> |
324 |
</td> |
334 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
325 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
335 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
326 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
336 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
|
|
337 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
327 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
338 |
<td> |
328 |
<td> |
339 |
<select name="lengthunit" id="lengthunit"> |
329 |
<select name="lengthunit" id="lengthunit"> |
Lines 417-423
Link Here
|
417 |
<th> </th> |
407 |
<th> </th> |
418 |
<th>Note</th> |
408 |
<th>Note</th> |
419 |
<th>Current checkouts allowed</th> |
409 |
<th>Current checkouts allowed</th> |
420 |
<th>Current on-site checkouts allowed</th> |
|
|
421 |
<th>Loan period</th> |
410 |
<th>Loan period</th> |
422 |
<th>Unit</th> |
411 |
<th>Unit</th> |
423 |
<th>Hard due date</th> |
412 |
<th>Hard due date</th> |
Lines 460-466
Link Here
|
460 |
<tr> |
449 |
<tr> |
461 |
<th> </th> |
450 |
<th> </th> |
462 |
<th>Total current checkouts allowed</th> |
451 |
<th>Total current checkouts allowed</th> |
463 |
<th>Total current on-site checkouts allowed</th> |
|
|
464 |
<th>Maximum total holds allowed (count)</th> |
452 |
<th>Maximum total holds allowed (count)</th> |
465 |
<th>Hold policy</th> |
453 |
<th>Hold policy</th> |
466 |
<th>Hold pickup library match</th> |
454 |
<th>Hold pickup library match</th> |
Lines 473-482
Link Here
|
473 |
[% SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty' ) %] |
461 |
[% SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty' ) %] |
474 |
<input type="text" name="patron_maxissueqty" size="3" value="[% patron_maxissueqty | html %]"/> |
462 |
<input type="text" name="patron_maxissueqty" size="3" value="[% patron_maxissueqty | html %]"/> |
475 |
</td> |
463 |
</td> |
476 |
<td> |
|
|
477 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxonsiteissueqty' ) %] |
478 |
<input type="text" name="patron_maxonsiteissueqty" size="3" value="[% patron_maxonsiteissueqty | html %]"/> |
479 |
</td> |
480 |
<td> |
464 |
<td> |
481 |
[% SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds' ) %] |
465 |
[% SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds' ) %] |
482 |
<input name="max_holds" size="3" value="[% rule_value | html %]" /> |
466 |
<input name="max_holds" size="3" value="[% rule_value | html %]" /> |
Lines 635-651
Link Here
|
635 |
<tr> |
619 |
<tr> |
636 |
<th>Patron category</th> |
620 |
<th>Patron category</th> |
637 |
<th>Total current checkouts allowed</th> |
621 |
<th>Total current checkouts allowed</th> |
638 |
<th>Total current on-site checkouts allowed</th> |
|
|
639 |
<th>Total holds allowed</th> |
622 |
<th>Total holds allowed</th> |
640 |
<th> </th> |
623 |
<th> </th> |
641 |
</tr> |
624 |
</tr> |
642 |
[% FOREACH c IN categorycodes %] |
625 |
[% FOREACH c IN categorycodes %] |
643 |
[% NEXT UNLESS c %] |
626 |
[% NEXT UNLESS c %] |
644 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
627 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
645 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] |
|
|
646 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
628 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
647 |
|
629 |
|
648 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
630 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
649 |
<tr> |
631 |
<tr> |
650 |
<td> |
632 |
<td> |
651 |
[% IF c == undef %] |
633 |
[% IF c == undef %] |
Lines 661-673
Link Here
|
661 |
<span>Unlimited</span> |
643 |
<span>Unlimited</span> |
662 |
[% END %] |
644 |
[% END %] |
663 |
</td> |
645 |
</td> |
664 |
<td> |
|
|
665 |
[% IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %] |
666 |
[% patron_maxonsiteissueqty | html %] |
667 |
[% ELSE %] |
668 |
<span>Unlimited</span> |
669 |
[% END %] |
670 |
</td> |
671 |
<td> |
646 |
<td> |
672 |
[% IF max_holds.defined && max_holds != '' %] |
647 |
[% IF max_holds.defined && max_holds != '' %] |
673 |
[% max_holds | html %] |
648 |
[% max_holds | html %] |
Lines 691-697
Link Here
|
691 |
</select> |
666 |
</select> |
692 |
</td> |
667 |
</td> |
693 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
668 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
694 |
<td><input name="patron_maxonsiteissueqty" size="3" type="text" /></td> |
|
|
695 |
<td><input name="max_holds" size="3" type="text" /></td> |
669 |
<td><input name="max_holds" size="3" type="text" /></td> |
696 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td> |
670 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td> |
697 |
</tr> |
671 |
</tr> |
Lines 988-994
Link Here
|
988 |
// specific processing for the Note column |
962 |
// specific processing for the Note column |
989 |
var note = $(this).find("a[name='viewnote']").data("content"); |
963 |
var note = $(this).find("a[name='viewnote']").data("content"); |
990 |
$(current_column).find("input[type='text']").val(note); |
964 |
$(current_column).find("input[type='text']").val(note); |
991 |
} else if ( i == 8 ) { |
965 |
} else if ( i == 7 ) { |
992 |
// specific processing for the Hard due date column |
966 |
// specific processing for the Hard due date column |
993 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
967 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
994 |
var input_value = ''; |
968 |
var input_value = ''; |
Lines 999-1005
Link Here
|
999 |
} |
973 |
} |
1000 |
$(current_column).find("input[type='text']").val(input_value); |
974 |
$(current_column).find("input[type='text']").val(input_value); |
1001 |
$(current_column).find("select").val(select_value); |
975 |
$(current_column).find("select").val(select_value); |
1002 |
} else if ( i == 14 ) { |
976 |
} else if ( i == 13 ) { |
1003 |
// specific processing for cap_fine_to_replacement_price |
977 |
// specific processing for cap_fine_to_replacement_price |
1004 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
978 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1005 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
979 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
Lines 1024-1033
Link Here
|
1024 |
// Remove potential previous input added |
998 |
// Remove potential previous input added |
1025 |
$(current_column).find("input").remove(); |
999 |
$(current_column).find("input").remove(); |
1026 |
$(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); |
1000 |
$(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); |
1027 |
} else if ( i == 4 || i == 5 || i == 24 || i == 25 || i == 26 ) { |
1001 |
} else if ( i == 4 || i == 23 || i == 24 || i == 25 ) { |
1028 |
// If the value is not an integer for |
1002 |
// If the value is not an integer for |
1029 |
// - "Current checkouts allowed" |
1003 |
// - "Current checkouts allowed" |
1030 |
// - "Current on-site checkouts allowed" |
|
|
1031 |
// - "Holds allowed (total)" |
1004 |
// - "Holds allowed (total)" |
1032 |
// - "Holds allowed (daily)" |
1005 |
// - "Holds allowed (daily)" |
1033 |
// - "Holds per record (count)" |
1006 |
// - "Holds per record (count)" |