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

Return to bug 29058