From 2aa8659f6173beb41a67c10c23df2b6ab87e7f38 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 29 Jun 2020 17:56:31 +0200 Subject: [PATCH] Bug 20799: (follow-up) Add ILLModule system preference check and fix display for no requests When there were no requests the label would still display, using .count fixes this. Also adds a check on the ILLModule system preference to prevent the information from showing when the ILL module is deactivated. Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 88737e1df9..f0f41dc128 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -128,7 +128,7 @@ [% END %] - [% IF ( illrequests ) %] + [% IF ( Koha.Preference( 'ILLModule' ) && illrequests.count ) %] ILL requests: [% IF CAN_user_ill %] -- 2.11.0