Bug 29058: Don't display 'Show holds' button if holds are displayed

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-01-28 13:05:55 +01:00 committed by Fridolin Somers
parent 1036c66b80
commit 70f0e67d01

View file

@ -910,7 +910,9 @@
<label for ="always_show_holds">Always show holds</label>
[% IF always_show_holds == 'DONT' %]
<input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
<a class="btn btn-default" value="Show holds" id="show_holds_now" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | uri %]&show_holds_now=1">Show holds ([% hold_count | html %])</a>
[% UNLESS reserveloop %]
<a class="btn btn-default" value="Show holds" id="show_holds_now" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber | uri %]&show_holds_now=1">Show holds ([% hold_count | html %])</a>
[% END %]
[% ELSE %]
<input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
[% END %]