@@ -, +, @@
in smart-rules.tt
---
.../prog/en/modules/admin/smart-rules.tt | 190 +++++++++++----------
1 file changed, 96 insertions(+), 94 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt
@@ -135,12 +135,12 @@ $(document).ready(function() {
Select a library :
All libraries
- [% FOREACH branchloo IN branchloop %]
- [% IF ( branchloo.selected ) %][% branchloo.branchname %] [% ELSE %][% branchloo.branchname %] [% END %]
- [% END %]
+ [% FOREACH branchloo IN branchloop %]
+ [% IF ( branchloo.selected ) %][% branchloo.branchname %] [% ELSE %][% branchloo.branchname %] [% END %]
+ [% END %]
-[% IF ( definedbranch ) %]
[% END %]
@@ -177,101 +177,97 @@ for="tobranch">Clone these rules to:
- [% IF ( rule.default_humancategorycode ) %]
- All
- [% ELSE %]
- [% rule.humancategorycode %]
- [% END %]
-
- [% IF rule.default_translated_description %]
- All
- [% ELSE %]
- [% rule.translated_description %]
- [% END %]
-
- [% IF ( rule.unlimited_maxissueqty ) %]
- Unlimited
- [% ELSE %]
- [% rule.maxissueqty %]
- [% END %]
-
- [% IF rule.unlimited_maxonsiteissueqty %]
- Unlimited
- [% ELSE %]
- [% rule.maxonsiteissueqty %]
- [% END %]
-
- [% rule.issuelength %]
-
- [% rule.lengthunit %]
-
-
- [% IF ( rule.hardduedate ) %]
+ [% FOREACH rule IN rules %]
+
+
+ [% IF ( rule.default_humancategorycode ) %]
+ All
+ [% ELSE %]
+ [% rule.humancategorycode %]
+ [% END %]
+
+
+ [% IF rule.default_translated_description %]
+ All
+ [% ELSE %]
+ [% rule.translated_description %]
+ [% END %]
+
+
+ [% IF ( rule.unlimited_maxissueqty ) %]
+ Unlimited
+ [% ELSE %]
+ [% rule.maxissueqty %]
+ [% END %]
+
+
+ [% IF rule.unlimited_maxonsiteissueqty %]
+ Unlimited
+ [% ELSE %]
+ [% rule.maxonsiteissueqty %]
+ [% END %]
+
+ [% rule.issuelength %]
+ [% rule.lengthunit %]
+
+ [% IF ( rule.hardduedate ) %]
[% IF ( rule.hardduedatebefore ) %]
- before [% rule.hardduedate %]
-
+ before [% rule.hardduedate %]
+
[% ELSIF ( rule.hardduedateexact ) %]
- on [% rule.hardduedate %]
-
+ on [% rule.hardduedate %]
+
[% ELSIF ( rule.hardduedateafter ) %]
- after [% rule.hardduedate %]
-
+ after [% rule.hardduedate %]
+
[% END %]
- [% ELSE %]
+ [% ELSE %]
None defined
- [% END %]
-
- [% rule.fine %]
- [% rule.chargeperiod %]
- [% IF rule.chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]
- [% rule.firstremind %]
- [% rule.overduefinescap FILTER format("%.2f") %]
-
- [% IF rule.cap_fine_to_replacement_price %]
-
- [% ELSE %]
-
- [% END %]
-
- [% rule.finedays %]
- [% rule.maxsuspensiondays %]
- [% rule.renewalsallowed %]
- [% rule.renewalperiod %]
- [% rule.norenewalbefore %]
-
- [% IF ( rule.auto_renew ) %]
- Yes
- [% ELSE %]
- No
- [% END %]
-
- [% rule.reservesallowed %]
- [% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]
- [% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]
- [% rule.rentaldiscount %]
- Edit
-
- Delete
-
-
- [% END %]
+ [% END %]
+
+ [% rule.fine %]
+ [% rule.chargeperiod %]
+ [% IF rule.chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]
+ [% rule.firstremind %]
+ [% rule.overduefinescap FILTER format("%.2f") %]
+
+ [% IF rule.cap_fine_to_replacement_price %]
+
+ [% ELSE %]
+
+ [% END %]
+
+ [% rule.finedays %]
+ [% rule.maxsuspensiondays %]
+ [% rule.renewalsallowed %]
+ [% rule.renewalperiod %]
+ [% rule.norenewalbefore %]
+ [% IF ( rule.auto_renew ) %]Yes[% ELSE %]No[% END %]
+ [% rule.reservesallowed %]
+ [% IF rule.onshelfholds %]Yes[% ELSE %]No[% END %]
+ [% IF rule.opacitemholds == 'F'%]Force[% ELSIF rule.opacitemholds == 'Y'%]Allow[% ELSE %]Don't allow[% END %]
+ [% rule.rentaldiscount %]
+ Edit
+
+ Delete
+
+
+ [% END %]
All
- [% FOREACH categoryloo IN categoryloop %]
- [% categoryloo.description %]
- [% END %]
+ [% FOREACH categoryloo IN categoryloop %]
+ [% categoryloo.description %]
+ [% END %]
All
- [% FOREACH itemtypeloo IN itemtypeloop %]
- [% itemtypeloo.translated_description %]
- [% END %]
+ [% FOREACH itemtypeloo IN itemtypeloop %]
+ [% itemtypeloo.translated_description %]
+ [% END %]
@@ -470,19 +466,22 @@ for="tobranch">Clone these rules to: Clone these rules to:
- [% FOREACH categoryloo IN categoryloop %]
- [% categoryloo.description %]
- [% END %]
+ [% FOREACH categoryloo IN categoryloop %]
+ [% categoryloo.description %]
+ [% END %]
@@ -545,13 +544,15 @@ for="tobranch">Clone these rules to: Clone these rules to: