From 4b875fa936f1c971e734e71ec7727d780ba9a9af Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Wed, 3 Aug 2022 09:54:27 -0400 Subject: [PATCH] Bug 31289: Hide Article requests column in circulation rules when ArticleRequests syspref is disabled This patch hides the Article requests column in the large circulation rules table when the ArticleRequests system preference is disabled. To test: 0) Apply patch 1) With ArticleRequests disabled, go to Administration > Circulation and fines rules 2) Scroll right in the first table --> There isn't any mention of article requests in the table 3) Scroll down to see the other tables in the page --> There are no other article requests tables 4) Enable ArticleRequests in Administration > System preferences 5) Go back to the Circulation and fines rules and refresh the page 6) Scroll right in the first table --> There should be an article requests yes/no column 7) Scroll down to see the other tables in the page --> There are other article requests tables, Default open article requests limit and Default article request fees Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index 5df48a90d7..dc0936efe2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -141,7 +141,9 @@ Holds per record (count) On shelf holds allowed OPAC item level holds + [% IF Koha.Preference('ArticleRequests') %] Article requests + [% END %] Rental discount (%) [% IF Koha.Preference('UseRecalls') %] Recalls allowed (total) @@ -361,6 +363,7 @@ Don't allow [% END %] + [% IF Koha.Preference('ArticleRequests') %] [% IF article_requests == 'no' %] No @@ -372,6 +375,7 @@ Item only [% END %] + [% END %] [% rentaldiscount | html %] [% IF Koha.Preference('UseRecalls') %] [% recalls_allowed | html %] @@ -507,6 +511,7 @@ + [% IF Koha.Preference('ArticleRequests') %] + [% END %] [% IF Koha.Preference('UseRecalls') %] @@ -573,7 +579,9 @@ Holds per record (count) On shelf holds allowed OPAC item level holds + [% IF Koha.Preference('ArticleRequests') %] Article requests + [% END %] Rental discount (%) [% IF Koha.Preference('UseRecalls') %] Recalls allowed (total) -- 2.39.5