@@ -, +, @@
---
.../prog/en/modules/admin/smart-rules.tt | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 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
@@ -993,7 +993,8 @@
[% FOREACH c IN categorycodes %]
[% NEXT UNLESS c %]
- [% SET open_article_requests_limit = CirculationRules.Search( branchcode, c, undef, 'open_article_requests_limit' ) %]
+ [% SET i = undef %]
+ [% SET open_article_requests_limit = all_rules.$c.$i.open_article_requests_limit %]
[% IF ( open_article_requests_limit.defined && open_article_requests_limit != '' ) %]
@@ -1047,9 +1048,8 @@
|
[% FOREACH c IN categorycodes %]
- [% SET c = '*' UNLESS c.defined AND c != '' %]
-
- [% SET article_request_fee = CirculationRules.Search( current_branch, c, undef, 'article_request_fee' ) %]
+ [% SET i = undef %]
+ [% SET article_request_fee = all_rules.$c.$i.article_request_fee %]
[% IF ( article_request_fee.defined && article_request_fee != '' ) %]
@@ -1313,9 +1313,11 @@
|
[% FOREACH i IN itemtypeloop %]
- [% SET holdallowed = CirculationRules.Search( branchcode, undef, i.itemtype, 'holdallowed' ) %]
- [% SET hold_fulfillment_policy = CirculationRules.Search( branchcode, undef, i.itemtype, 'hold_fulfillment_policy' ) %]
- [% SET returnbranch = CirculationRules.Search( branchcode, undef, i.itemtype, 'returnbranch' ) %]
+ [% SET it = i.itemtype %]
+ [% SET c = undef %]
+ [% SET holdallowed = all_rules.$c.$it.holdallowed %]
+ [% SET hold_fulfillment_policy = all_rules.$c.$it.hold_fulfillment_policy %]
+ [% SET returnbranch = all_rules.$c.$it.returnbranch %]
[% IF holdallowed || hold_fulfillment_policy || returnbranch %]
--