Bug 20799: (follow-up) Add ILLModule system preference check and fix display for...
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 29 Jun 2020 15:56:31 +0000 (17:56 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 24 Jul 2020 12:11:53 +0000 (14:11 +0200)
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 <katrin.fischer@bsz-bw.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 799edb7..96a8ebc 100644 (file)
             </span>
         [% END %]
 
-        [% IF ( illrequests ) %]
+        [% IF ( Koha.Preference( 'ILLModule' ) && illrequests.count ) %]
             <span class="results_summary">
                 <span class="label">ILL requests:</span>
                 [% IF CAN_user_ill %]