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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-10 / +11 lines)
Lines 905-920 Link Here
905
            [% END %]
905
            [% END %]
906
906
907
            [% UNLESS ( patron ) %]
907
            [% UNLESS ( patron ) %]
908
                [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %]
908
                [% UNLESS borrowers %]
909
                [% IF hold_count %]
909
                    [% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %]
910
                    <label for ="always_show_holds">Always show holds</label>
910
                    [% IF hold_count %]
911
                    [% IF always_show_holds == 'DONT' %]
911
                        <label for ="always_show_holds">Always show holds</label>
912
                        <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
912
                        [% IF always_show_holds == 'DONT' %]
913
                        [% UNLESS reserveloop %]
913
                            <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO">
914
                            <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>
914
                            [% UNLESS reserveloop %]
915
                                <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>
916
                            [% END %]
917
                        [% ELSE %]
918
                            <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
915
                        [% END %]
919
                        [% END %]
916
                    [% ELSE %]
917
                        <input type="checkbox" name="always_show_holds" value="DO" id="always_show_holds" checked="checked">
918
                    [% END %]
920
                    [% END %]
919
                [% END %]
921
                [% END %]
920
                [% IF ( reserveloop ) %]
922
                [% IF ( reserveloop ) %]
921
- 

Return to bug 29058