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 881-894 Link Here
881
            [% END %]
882
            [% END %]
882
883
883
            [% UNLESS ( patron ) %]
884
            [% UNLESS ( patron ) %]
884
885
                [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %]
885
                        <label for ="always_show_holds">Always show holds</label>
886
                [% IF hold_count %]
886
                        [% IF always_show_holds == 'DONT' %]
887
                    <label for ="always_show_holds">Always show holds</label>
887
                            <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
888
                    [% IF always_show_holds == 'DONT' %]
888
                            <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>
889
                        <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
889
                        [% ELSE %]
890
                        <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>
890
                            <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
891
                    [% ELSE %]
891
                        [% END %]
892
                        <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
893
                    [% END %]
894
                [% END %]
892
                [% IF ( reserveloop ) %]
895
                [% IF ( reserveloop ) %]
893
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
896
                    <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
894
                        [% IF ( multi_hold ) %]
897
                        [% IF ( multi_hold ) %]
895
- 

Return to bug 29058