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