|
|
@ -124,40 +124,37 @@ |
|
|
|
[% SET row_count = 0 %] |
|
|
|
[% FOREACH c IN categorycodes %] |
|
|
|
[% FOREACH i IN itemtypes %] |
|
|
|
[% SET note = CirculationRules.Get( branchcode, c, i, 'note' ) %] |
|
|
|
[% SET maxissueqty = CirculationRules.Get( branchcode, c, i, 'maxissueqty' ) %] |
|
|
|
[% SET maxonsiteissueqty = CirculationRules.Get( branchcode, c, i, 'maxonsiteissueqty' ) %] |
|
|
|
[% SET issuelength = CirculationRules.Get( branchcode, c, i, 'issuelength' ) %] |
|
|
|
[% SET lengthunit = CirculationRules.Get( branchcode, c, i, 'lengthunit' ) %] |
|
|
|
[% SET hardduedate = CirculationRules.Get( branchcode, c, i, 'hardduedate' ) %] |
|
|
|
[% SET hardduedatecompare = CirculationRules.Get( branchcode, c, i, 'hardduedatecompare' ) %] |
|
|
|
[% SET fine = CirculationRules.Get( branchcode, c, i, 'fine' ) %] |
|
|
|
[% SET chargeperiod = CirculationRules.Get( branchcode, c, i, 'chargeperiod' ) %] |
|
|
|
[% SET chargeperiod_charge_at = CirculationRules.Get( branchcode, c, i, 'chargeperiod_charge_at' ) %] |
|
|
|
[% SET firstremind = CirculationRules.Get( branchcode, c, i, 'firstremind' ) %] |
|
|
|
[% SET overduefinescap = CirculationRules.Get( branchcode, c, i, 'overduefinescap' ) %] |
|
|
|
[% SET cap_fine_to_replacement_price = CirculationRules.Get( branchcode, c, i, 'cap_fine_to_replacement_price' ) %] |
|
|
|
[% SET finedays = CirculationRules.Get( branchcode, c, i, 'finedays' ) %] |
|
|
|
[% SET maxsuspensiondays = CirculationRules.Get( branchcode, c, i, 'maxsuspensiondays' ) %] |
|
|
|
[% SET suspension_chargeperiod = CirculationRules.Get( branchcode, c, i, 'suspension_chargeperiod' ) %] |
|
|
|
[% SET renewalsallowed = CirculationRules.Get( branchcode, c, i, 'renewalsallowed' ) %] |
|
|
|
[% SET renewalperiod = CirculationRules.Get( branchcode, c, i, 'renewalperiod' ) %] |
|
|
|
[% SET norenewalbefore = CirculationRules.Get( branchcode, c, i, 'norenewalbefore' ) %] |
|
|
|
[% SET auto_renew = CirculationRules.Get( branchcode, c, i, 'auto_renew' ) %] |
|
|
|
[% SET no_auto_renewal_after = CirculationRules.Get( branchcode, c, i, 'no_auto_renewal_after' ) %] |
|
|
|
[% SET no_auto_renewal_after_hard_limit = CirculationRules.Get( branchcode, c, i, 'no_auto_renewal_after_hard_limit' ) %] |
|
|
|
[% SET reservesallowed = CirculationRules.Get( branchcode, c, i, 'reservesallowed' ) %] |
|
|
|
[% SET holds_per_day = CirculationRules.Get( branchcode, c, i, 'holds_per_day' ) %] |
|
|
|
[% SET holds_per_record = CirculationRules.Get( branchcode, c, i, 'holds_per_record' ) %] |
|
|
|
[% SET onshelfholds = CirculationRules.Get( branchcode, c, i, 'onshelfholds' ) %] |
|
|
|
[% SET opacitemholds = CirculationRules.Get( branchcode, c, i, 'opacitemholds' ) %] |
|
|
|
[% SET article_requests = CirculationRules.Get( branchcode, c, i, 'article_requests' ) %] |
|
|
|
[% SET rentaldiscount = CirculationRules.Get( branchcode, c, i, 'rentaldiscount' ) %] |
|
|
|
[% SET note = CirculationRules.Search( branchcode, c, i, 'note' ) %] |
|
|
|
[% SET maxissueqty = CirculationRules.Search( branchcode, c, i, 'maxissueqty' ) %] |
|
|
|
[% SET maxonsiteissueqty = CirculationRules.Search( branchcode, c, i, 'maxonsiteissueqty' ) %] |
|
|
|
[% SET issuelength = CirculationRules.Search( branchcode, c, i, 'issuelength' ) %] |
|
|
|
[% SET lengthunit = CirculationRules.Search( branchcode, c, i, 'lengthunit' ) %] |
|
|
|
[% SET hardduedate = CirculationRules.Search( branchcode, c, i, 'hardduedate' ) %] |
|
|
|
[% SET hardduedatecompare = CirculationRules.Search( branchcode, c, i, 'hardduedatecompare' ) %] |
|
|
|
[% SET fine = CirculationRules.Search( branchcode, c, i, 'fine' ) %] |
|
|
|
[% SET chargeperiod = CirculationRules.Search( branchcode, c, i, 'chargeperiod' ) %] |
|
|
|
[% SET chargeperiod_charge_at = CirculationRules.Search( branchcode, c, i, 'chargeperiod_charge_at' ) %] |
|
|
|
[% SET firstremind = CirculationRules.Search( branchcode, c, i, 'firstremind' ) %] |
|
|
|
[% SET overduefinescap = CirculationRules.Search( branchcode, c, i, 'overduefinescap' ) %] |
|
|
|
[% SET cap_fine_to_replacement_price = CirculationRules.Search( branchcode, c, i, 'cap_fine_to_replacement_price' ) %] |
|
|
|
[% SET finedays = CirculationRules.Search( branchcode, c, i, 'finedays' ) %] |
|
|
|
[% SET maxsuspensiondays = CirculationRules.Search( branchcode, c, i, 'maxsuspensiondays' ) %] |
|
|
|
[% SET suspension_chargeperiod = CirculationRules.Search( branchcode, c, i, 'suspension_chargeperiod' ) %] |
|
|
|
[% SET renewalsallowed = CirculationRules.Search( branchcode, c, i, 'renewalsallowed' ) %] |
|
|
|
[% SET renewalperiod = CirculationRules.Search( branchcode, c, i, 'renewalperiod' ) %] |
|
|
|
[% SET norenewalbefore = CirculationRules.Search( branchcode, c, i, 'norenewalbefore' ) %] |
|
|
|
[% SET auto_renew = CirculationRules.Search( branchcode, c, i, 'auto_renew' ) %] |
|
|
|
[% SET no_auto_renewal_after = CirculationRules.Search( branchcode, c, i, 'no_auto_renewal_after' ) %] |
|
|
|
[% SET no_auto_renewal_after_hard_limit = CirculationRules.Search( branchcode, c, i, 'no_auto_renewal_after_hard_limit' ) %] |
|
|
|
[% SET reservesallowed = CirculationRules.Search( branchcode, c, i, 'reservesallowed' ) %] |
|
|
|
[% SET holds_per_day = CirculationRules.Search( branchcode, c, i, 'holds_per_day' ) %] |
|
|
|
[% SET holds_per_record = CirculationRules.Search( branchcode, c, i, 'holds_per_record' ) %] |
|
|
|
[% SET onshelfholds = CirculationRules.Search( branchcode, c, i, 'onshelfholds' ) %] |
|
|
|
[% SET opacitemholds = CirculationRules.Search( branchcode, c, i, 'opacitemholds' ) %] |
|
|
|
[% SET article_requests = CirculationRules.Search( branchcode, c, i, 'article_requests' ) %] |
|
|
|
[% SET rentaldiscount = CirculationRules.Search( branchcode, c, i, 'rentaldiscount' ) %] |
|
|
|
|
|
|
|
[% 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 %] |
|
|
|
[% 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 %] |
|
|
|
[% IF show_rule %] |
|
|
|
[% SET row_count = row_count + 1 %] |
|
|
|
<tr row_countd="row_[% row_count %]"> |
|
|
@ -180,8 +177,8 @@ |
|
|
|
<a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype || '*' %]&categorycode=[% rule.categorycode || '*' %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
[% IF rule.note %] |
|
|
|
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% rule.note | html %]" data-placement="top" data-trigger="hover">View note</a> |
|
|
|
[% IF note.defined %] |
|
|
|
<a name="viewnote" data-toggle="popover" title="Note" data-content="[% note | html %]" data-placement="top" data-trigger="hover">View note</a> |
|
|
|
[% ELSE %]<span> </span>[% END %] |
|
|
|
</td> |
|
|
|
<td> |
|
|
|