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

(-)a/circ/circulation.pl (-9 / +2 lines)
Lines 611-625 if ( $patron ) { Link Here
611
    $template->param( patron_messages => $patron_messages );
611
    $template->param( patron_messages => $patron_messages );
612
612
613
    if ( C4::Context->preference("WaitingNotifyAtCheckout") ) {
613
    if ( C4::Context->preference("WaitingNotifyAtCheckout") ) {
614
614
        my $waiting_holds = $patron->holds->search( { found => 'W', branchcode => $branch } );
615
        #Check for waiting holds
615
        $template->param( waiting_holds => $waiting_holds );
616
        my $waiting_holds          = $patron->holds->search( { found => 'W', branchcode => $branch } );
617
        my @waiting_holds_barcodes = ();
618
        while ( my $hold = $waiting_holds->next ) {
619
            push( @waiting_holds_barcodes, $hold->item->barcode );
620
        }
621
622
        $template->param( waiting_holds_barcodes => \@waiting_holds_barcodes );
623
    }
616
    }
624
}
617
}
625
618
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-5 / +4 lines)
Lines 950-956 Link Here
950
    </div> <!-- /.modal-dialog -->
950
    </div> <!-- /.modal-dialog -->
951
</div> <!-- /#barcodeSubmittedModal -->
951
</div> <!-- /#barcodeSubmittedModal -->
952
952
953
[% IF waiting_holds_barcodes %]
953
[% IF waiting_holds %]
954
    <div id="circ-warnwaitingholds-modal" class="modal fade audio-alert-action block">
954
    <div id="circ-warnwaitingholds-modal" class="modal fade audio-alert-action block">
955
        <div class="modal-dialog">
955
        <div class="modal-dialog">
956
            <div class="modal-content">
956
            <div class="modal-content">
Lines 1039-1052 Link Here
1039
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1039
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
1040
        }
1040
        }
1041
        $(document).ready(function() {
1041
        $(document).ready(function() {
1042
            [% IF waiting_holds_barcodes %]
1042
            [% IF waiting_holds %]
1043
                $('#circ-warnwaitingholds-modal .btn-primary').on('click',function() {
1043
                $('#circ-warnwaitingholds-modal .btn-primary').on('click',function() {
1044
                    $('#mainform').submit();
1044
                    $('#mainform').submit();
1045
                });
1045
                });
1046
1046
1047
                var waiting_holds_barcodes = new Array();
1047
                var waiting_holds_barcodes = new Array();
1048
                [% FOREACH b IN waiting_holds_barcodes %]
1048
                [% FOREACH wh IN waiting_holds %]
1049
                    waiting_holds_barcodes.push("[% b | html %]");
1049
                    waiting_holds_barcodes.push("[% wh.item.barcode | html %]");
1050
                [% END %]
1050
                [% END %]
1051
                $("#mainform").on('submit', function(){
1051
                $("#mainform").on('submit', function(){
1052
                    if( $("#checkout_confirmed").length > 0 ){
1052
                    if( $("#checkout_confirmed").length > 0 ){
1053
- 

Return to bug 34668