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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc (-3 lines)
Lines 2-10 Link Here
2
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
2
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
3
[% USE AuthorisedValues %]
3
[% USE AuthorisedValues %]
4
4
5
[%#This include depends on the asset js/form-submit.js. Any template making use of this include must import form-submit.js as well. %]
6
[%#FIXME can form-submit.js be imported into this file directly? %]
7
8
<table id="patron_holds_table_[% biblio_id | html %]_[% split_data | html %]" class="holds_table" data-total-holds="[% total_holds | html %]">
5
<table id="patron_holds_table_[% biblio_id | html %]_[% split_data | html %]" class="holds_table" data-total-holds="[% total_holds | html %]">
9
    <thead>
6
    <thead>
10
        <tr>
7
        <tr>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-2 / +2 lines)
Lines 1303-1309 Link Here
1303
                <label for="always_show_holds">Always show holds</label>
1303
                <label for="always_show_holds">Always show holds</label>
1304
                [% IF always_show_holds == 'DONT' %]
1304
                [% IF always_show_holds == 'DONT' %]
1305
                    <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO" />
1305
                    <input type="checkbox" name="always_show_holds" id="always_show_holds" value="DO" />
1306
                    [% UNLESS reserveloop %]
1306
                    [% UNLESS total_holds %]
1307
                        <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>
1307
                        <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>
1308
                    [% END %]
1308
                    [% END %]
1309
                [% ELSE %]
1309
                [% ELSE %]
Lines 1429-1435 Link Here
1429
                </div>
1429
                </div>
1430
            </form>
1430
            </form>
1431
            <!-- /#existing_holds -->
1431
            <!-- /#existing_holds -->
1432
        [% END # IF reserveloop %]
1432
        [% END # IF total_holds %]
1433
    [% END # UNLESS patron %]
1433
    [% END # UNLESS patron %]
1434
[% END %]
1434
[% END %]
1435
1435
(-)a/reserve/request.pl (-7 lines)
Lines 668-674 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
668
        }
668
        }
669
669
670
        # existingreserves building
670
        # existingreserves building
671
        my @reserveloop;
672
        my $total_holds       = 0;
671
        my $total_holds       = 0;
673
        my $hold_branches     = [];
672
        my $hold_branches     = [];
674
        my $hold_itemtypes    = [];
673
        my $hold_itemtypes    = [];
Lines 735-741 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
735
        $biblioloopiter{title}          = $biblio->title;
734
        $biblioloopiter{title}          = $biblio->title;
736
        $biblioloopiter{author}         = $biblio->author;
735
        $biblioloopiter{author}         = $biblio->author;
737
        $biblioloopiter{rank}           = $fixedRank;
736
        $biblioloopiter{rank}           = $fixedRank;
738
        $biblioloopiter{reserveloop}    = \@reserveloop;
739
        $biblioloopiter{total_holds}    = $total_holds;
737
        $biblioloopiter{total_holds}    = $total_holds;
740
        $biblioloopiter{hold_branches}  = $hold_branches;
738
        $biblioloopiter{hold_branches}  = $hold_branches;
741
        $biblioloopiter{hold_itemtypes} = $hold_itemtypes;
739
        $biblioloopiter{hold_itemtypes} = $hold_itemtypes;
Lines 757-766 if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold ) Link Here
757
            $biblioloopiter{reserve_charge} = $reserve_charge;
755
            $biblioloopiter{reserve_charge} = $reserve_charge;
758
        }
756
        }
759
757
760
        if (@reserveloop) {
761
            $template->param( reserveloop => \@reserveloop );
762
        }
763
764
        $template->param( total_holds => $total_holds );
758
        $template->param( total_holds => $total_holds );
765
759
766
        if ( $patron && $multi_hold ) {
760
        if ( $patron && $multi_hold ) {
767
- 

Return to bug 23269