Bug 31289: Hide Article requests column in circulation rules when ArticleRequests...
authorCaroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Wed, 3 Aug 2022 13:54:27 +0000 (09:54 -0400)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 12 Oct 2022 13:44:10 +0000 (15:44 +0200)
commitbaef1e0f3000111f076ae6d33b0edbc18c91f7ab
tree6828bc33851098947ffac0e388f822936275cd1b
parent06900135db789ed6a8150c9c207df41c08a6ef20
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 <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4b875fa936f1c971e734e71ec7727d780ba9a9af)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 7d571ca2c0224f4ff30b491f174b31e252fea0fb)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt