|
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>Days mode</th> |
95 |
<th>Days mode</th> |
| 97 |
<th>Unit</th> |
96 |
<th>Unit</th> |
|
Lines 129-135
Link Here
|
| 129 |
[% SET i = '' UNLESS i.defined %] |
128 |
[% SET i = '' UNLESS i.defined %] |
| 130 |
[% SET note = all_rules.$c.$i.note %] |
129 |
[% SET note = all_rules.$c.$i.note %] |
| 131 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
130 |
[% SET maxissueqty = all_rules.$c.$i.maxissueqty %] |
| 132 |
[% SET maxonsiteissueqty = all_rules.$c.$i.maxonsiteissueqty %] |
|
|
| 133 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
131 |
[% SET issuelength = all_rules.$c.$i.issuelength %] |
| 134 |
[% SET daysmode = all_rules.$c.$i.daysmode %] |
132 |
[% SET daysmode = all_rules.$c.$i.daysmode %] |
| 135 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
133 |
[% SET lengthunit = all_rules.$c.$i.lengthunit %] |
|
Lines 158-164
Link Here
|
| 158 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
156 |
[% SET article_requests = all_rules.$c.$i.article_requests %] |
| 159 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
157 |
[% SET rentaldiscount = all_rules.$c.$i.rentaldiscount %] |
| 160 |
|
158 |
|
| 161 |
[% SET show_rule = note || maxissueqty || maxonsiteissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount %] |
159 |
[% SET show_rule = note || maxissueqty || issuelength || daysmode || lengthunit || hardduedate || hardduedatecompare || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalperiod || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || rentaldiscount %] |
| 162 |
[% IF show_rule %] |
160 |
[% IF show_rule %] |
| 163 |
[% SET row_count = row_count + 1 %] |
161 |
[% SET row_count = row_count + 1 %] |
| 164 |
<tr row_countd="row_[% row_count | html %]"> |
162 |
<tr row_countd="row_[% row_count | html %]"> |
|
Lines 192-204
Link Here
|
| 192 |
<span>Unlimited</span> |
190 |
<span>Unlimited</span> |
| 193 |
[% END %] |
191 |
[% END %] |
| 194 |
</td> |
192 |
</td> |
| 195 |
<td> |
|
|
| 196 |
[% IF maxonsiteissueqty.defined && maxonsiteissueqty != '' %] |
| 197 |
[% maxonsiteissueqty | html %] |
| 198 |
[% ELSE %] |
| 199 |
<span>Unlimited</span> |
| 200 |
[% END %] |
| 201 |
</td> |
| 202 |
<td>[% issuelength | html %]</td> |
193 |
<td>[% issuelength | html %]</td> |
| 203 |
<td> |
194 |
<td> |
| 204 |
[% SWITCH daysmode %] |
195 |
[% SWITCH daysmode %] |
|
Lines 344-350
Link Here
|
| 344 |
</td> |
335 |
</td> |
| 345 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
336 |
<td><input type="text" name="note" id="note" size="15" value="" maxlength="100"></td> |
| 346 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
337 |
<td><input type="text" name="maxissueqty" id="maxissueqty" size="3" /></td> |
| 347 |
<td><input type="text" name="maxonsiteissueqty" id="maxonsiteissueqty" size="3" /></td> |
|
|
| 348 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
338 |
<td><input type="text" name="issuelength" id="issuelength" size="3" /> </td> |
| 349 |
<td> |
339 |
<td> |
| 350 |
<select name="daysmode" id="daysmode"> |
340 |
<select name="daysmode" id="daysmode"> |
|
Lines 437-443
Link Here
|
| 437 |
<th> </th> |
427 |
<th> </th> |
| 438 |
<th>Note</th> |
428 |
<th>Note</th> |
| 439 |
<th>Current checkouts allowed</th> |
429 |
<th>Current checkouts allowed</th> |
| 440 |
<th>Current on-site checkouts allowed</th> |
|
|
| 441 |
<th>Loan period</th> |
430 |
<th>Loan period</th> |
| 442 |
<th>Days mode</th> |
431 |
<th>Days mode</th> |
| 443 |
<th>Unit</th> |
432 |
<th>Unit</th> |
|
Lines 481-487
Link Here
|
| 481 |
<tr> |
470 |
<tr> |
| 482 |
<th> </th> |
471 |
<th> </th> |
| 483 |
<th>Total current checkouts allowed</th> |
472 |
<th>Total current checkouts allowed</th> |
| 484 |
<th>Total current on-site checkouts allowed</th> |
|
|
| 485 |
<th>Maximum total holds allowed (count)</th> |
473 |
<th>Maximum total holds allowed (count)</th> |
| 486 |
<th>Hold policy</th> |
474 |
<th>Hold policy</th> |
| 487 |
<th>Hold pickup library match</th> |
475 |
<th>Hold pickup library match</th> |
|
Lines 494-503
Link Here
|
| 494 |
[% SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty' ) %] |
482 |
[% SET patron_maxissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxissueqty' ) %] |
| 495 |
<input type="text" name="patron_maxissueqty" size="3" value="[% patron_maxissueqty | html %]"/> |
483 |
<input type="text" name="patron_maxissueqty" size="3" value="[% patron_maxissueqty | html %]"/> |
| 496 |
</td> |
484 |
</td> |
| 497 |
<td> |
|
|
| 498 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( current_branch, undef, undef, 'patron_maxonsiteissueqty' ) %] |
| 499 |
<input type="text" name="patron_maxonsiteissueqty" size="3" value="[% patron_maxonsiteissueqty | html %]"/> |
| 500 |
</td> |
| 501 |
<td> |
485 |
<td> |
| 502 |
[% SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds' ) %] |
486 |
[% SET rule_value = CirculationRules.Search( current_branch, undef , undef, 'max_holds' ) %] |
| 503 |
<input name="max_holds" size="3" value="[% rule_value | html %]" /> |
487 |
<input name="max_holds" size="3" value="[% rule_value | html %]" /> |
|
Lines 656-672
Link Here
|
| 656 |
<tr> |
640 |
<tr> |
| 657 |
<th>Patron category</th> |
641 |
<th>Patron category</th> |
| 658 |
<th>Total current checkouts allowed</th> |
642 |
<th>Total current checkouts allowed</th> |
| 659 |
<th>Total current on-site checkouts allowed</th> |
|
|
| 660 |
<th>Total holds allowed</th> |
643 |
<th>Total holds allowed</th> |
| 661 |
<th> </th> |
644 |
<th> </th> |
| 662 |
</tr> |
645 |
</tr> |
| 663 |
[% FOREACH c IN categorycodes %] |
646 |
[% FOREACH c IN categorycodes %] |
| 664 |
[% NEXT UNLESS c %] |
647 |
[% NEXT UNLESS c %] |
| 665 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
648 |
[% SET patron_maxissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxissueqty' ) %] |
| 666 |
[% SET patron_maxonsiteissueqty = CirculationRules.Search( branchcode, c, undef, 'patron_maxonsiteissueqty' ) %] |
|
|
| 667 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
649 |
[% SET max_holds = CirculationRules.Search( branchcode, c, undef, 'max_holds' ) %] |
| 668 |
|
650 |
|
| 669 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
651 |
[% IF ( patron_maxissueqty.defined && patron_maxissueqty != '' ) || ( max_holds.defined && max_holds != '' ) %] |
| 670 |
<tr> |
652 |
<tr> |
| 671 |
<td> |
653 |
<td> |
| 672 |
[% IF c == undef %] |
654 |
[% IF c == undef %] |
|
Lines 682-694
Link Here
|
| 682 |
<span>Unlimited</span> |
664 |
<span>Unlimited</span> |
| 683 |
[% END %] |
665 |
[% END %] |
| 684 |
</td> |
666 |
</td> |
| 685 |
<td> |
|
|
| 686 |
[% IF patron_maxonsiteissueqty.defined && patron_maxonsiteissueqty != '' %] |
| 687 |
[% patron_maxonsiteissueqty | html %] |
| 688 |
[% ELSE %] |
| 689 |
<span>Unlimited</span> |
| 690 |
[% END %] |
| 691 |
</td> |
| 692 |
<td> |
667 |
<td> |
| 693 |
[% IF max_holds.defined && max_holds != '' %] |
668 |
[% IF max_holds.defined && max_holds != '' %] |
| 694 |
[% max_holds | html %] |
669 |
[% max_holds | html %] |
|
Lines 712-718
Link Here
|
| 712 |
</select> |
687 |
</select> |
| 713 |
</td> |
688 |
</td> |
| 714 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
689 |
<td><input name="patron_maxissueqty" size="3" type="text" /></td> |
| 715 |
<td><input name="patron_maxonsiteissueqty" size="3" type="text" /></td> |
|
|
| 716 |
<td><input name="max_holds" size="3" type="text" /></td> |
690 |
<td><input name="max_holds" size="3" type="text" /></td> |
| 717 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td> |
691 |
<td class="actions"><button type="submit" class="btn btn-default btn-xs"><i class="fa fa-plus"></i> Add</td> |
| 718 |
</tr> |
692 |
</tr> |
|
Lines 1009-1015
Link Here
|
| 1009 |
// specific processing for the Note column |
983 |
// specific processing for the Note column |
| 1010 |
var note = $(this).find("a[name='viewnote']").data("content"); |
984 |
var note = $(this).find("a[name='viewnote']").data("content"); |
| 1011 |
$(current_column).find("input[type='text']").val(note); |
985 |
$(current_column).find("input[type='text']").val(note); |
| 1012 |
} else if ( i == 9 ) { |
986 |
} else if ( i == 8 ) { |
| 1013 |
// specific processing for the Hard due date column |
987 |
// specific processing for the Hard due date column |
| 1014 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
988 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
| 1015 |
var input_value = ''; |
989 |
var input_value = ''; |
|
Lines 1020-1026
Link Here
|
| 1020 |
} |
994 |
} |
| 1021 |
$(current_column).find("input[type='text']").val(input_value); |
995 |
$(current_column).find("input[type='text']").val(input_value); |
| 1022 |
$(current_column).find("select").val(select_value); |
996 |
$(current_column).find("select").val(select_value); |
| 1023 |
} else if ( i == 15 ) { |
997 |
} else if ( i == 14 ) { |
| 1024 |
// specific processing for cap_fine_to_replacement_price |
998 |
// specific processing for cap_fine_to_replacement_price |
| 1025 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
999 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
| 1026 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1000 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
|
Lines 1045-1054
Link Here
|
| 1045 |
// Remove potential previous input added |
1019 |
// Remove potential previous input added |
| 1046 |
$(current_column).find("input").remove(); |
1020 |
$(current_column).find("input").remove(); |
| 1047 |
$(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); |
1021 |
$(current_column).append("<input type='hidden' name='"+name+"' value='"+val+"' />"); |
| 1048 |
} else if ( i == 5 || i == 6 || i == 25 || i == 26 || i == 27 ) { |
1022 |
} else if ( i == 5 || i == 25 || i == 26 || i == 27 ) { |
| 1049 |
// If the value is not an integer for |
1023 |
// If the value is not an integer for |
| 1050 |
// - "Current checkouts allowed" |
1024 |
// - "Current checkouts allowed" |
| 1051 |
// - "Current on-site checkouts allowed" |
|
|
| 1052 |
// - "Holds allowed (total)" |
1025 |
// - "Holds allowed (total)" |
| 1053 |
// - "Holds allowed (daily)" |
1026 |
// - "Holds allowed (daily)" |
| 1054 |
// - "Holds per record (count)" |
1027 |
// - "Holds per record (count)" |