View | Details | Raw Unified | Return to bug 29058
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-9 / +11 lines)
Lines 3-8 Link Here
3
[% USE Asset %]
3
[% USE Asset %]
4
[% USE JSON.Escape %]
4
[% USE JSON.Escape %]
5
[% USE Koha %]
5
[% USE Koha %]
6
[% USE Biblio %]
6
[% USE KohaDates %]
7
[% USE KohaDates %]
7
[% USE Branches %]
8
[% USE Branches %]
8
[% USE Categories %]
9
[% USE Categories %]
Lines 877-890 Link Here
877
            [% END %]
878
            [% END %]
878
879
879
            [% UNLESS ( patron ) %]
880
            [% UNLESS ( patron ) %]
880
881
                [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %]
881
                        <label for ="always_show_holds">Always show holds</label>
882
                [% IF hold_count %]
882
                        [% IF always_show_holds == 'DONT' %]
883
                    <label for ="always_show_holds">Always show holds</label>
883
                            <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
884
                    [% IF always_show_holds == 'DONT' %]
884
                            <a class="btn btn-default" value="Show holds" id="show_holds_now" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]&show_holds_now=1">Show holds</a>
885
                        <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
885
                        [% ELSE %]
886
                        <a class="btn btn-default" value="Show holds" id="show_holds_now" href="/cgi-bin/koha/reserve/request.pl?biblionumber=[% biblio.biblionumber %]&show_holds_now=1">Show holds ([% hold_count %])</a>
886
                            <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
887
                    [% ELSE %]
887
                        [% END %]
888
                        <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
889
                    [% END %]
890
                [% END %]
888
                [% IF ( reserveloop ) %]
891
                [% IF ( reserveloop ) %]
889
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
892
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
890
                        [% IF ( multi_hold ) %]
893
                        [% IF ( multi_hold ) %]
891
- 

Return to bug 29058