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 <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>
This commit is contained in:
Katrin Fischer 2020-06-29 17:56:31 +02:00 committed by Jonathan Druart
parent 9a6b28a914
commit 4cf04214d3
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@
</span>
[% END %]
[% IF ( illrequests ) %]
[% IF ( Koha.Preference( 'ILLModule' ) && illrequests.count ) %]
<span class="results_summary">
<span class="label">ILL requests:</span>
[% IF CAN_user_ill %]