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

(-)a/circ/circulation.pl (-9 / +2 lines)
Lines 597-611 if ( $patron ) { Link Here
597
    $template->param( patron_messages => $patron_messages );
597
    $template->param( patron_messages => $patron_messages );
598
598
599
    if ( C4::Context->preference("WaitingNotifyAtCheckout") ) {
599
    if ( C4::Context->preference("WaitingNotifyAtCheckout") ) {
600
600
        my $waiting_holds = $patron->holds->search( { found => 'W', branchcode => $branch } );
601
        #Check for waiting holds
601
        $template->param( waiting_holds => $waiting_holds );
602
        my $waiting_holds          = $patron->holds->search( { found => 'W', branchcode => $branch } );
603
        my @waiting_holds_barcodes = ();
604
        while ( my $hold = $waiting_holds->next ) {
605
            push( @waiting_holds_barcodes, $hold->item->barcode );
606
        }
607
608
        $template->param( waiting_holds_barcodes => \@waiting_holds_barcodes );
609
    }
602
    }
610
}
603
}
611
604
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-5 / +4 lines)
Lines 905-911 Link Here
905
    </div> <!-- /.modal-dialog -->
905
    </div> <!-- /.modal-dialog -->
906
</div> <!-- /#barcodeSubmittedModal -->
906
</div> <!-- /#barcodeSubmittedModal -->
907
907
908
[% IF waiting_holds_barcodes %]
908
[% IF waiting_holds %]
909
    <div id="circ-warnwaitingholds-modal" class="modal fade audio-alert-action block">
909
    <div id="circ-warnwaitingholds-modal" class="modal fade audio-alert-action block">
910
        <div class="modal-dialog">
910
        <div class="modal-dialog">
911
            <div class="modal-content">
911
            <div class="modal-content">
Lines 994-1007 Link Here
994
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
994
            var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
995
        }
995
        }
996
        $(document).ready(function() {
996
        $(document).ready(function() {
997
            [% IF waiting_holds_barcodes %]
997
            [% IF waiting_holds %]
998
                $('#circ-warnwaitingholds-modal .btn-primary').on('click',function() {
998
                $('#circ-warnwaitingholds-modal .btn-primary').on('click',function() {
999
                    $('#mainform').submit();
999
                    $('#mainform').submit();
1000
                });
1000
                });
1001
1001
1002
                var waiting_holds_barcodes = new Array();
1002
                var waiting_holds_barcodes = new Array();
1003
                [% FOREACH b IN waiting_holds_barcodes %]
1003
                [% FOREACH wh IN waiting_holds %]
1004
                    waiting_holds_barcodes.push("[% b | html %]");
1004
                    waiting_holds_barcodes.push("[% wh.item.barcode | html %]");
1005
                [% END %]
1005
                [% END %]
1006
                $("#mainform").on('submit', function(){
1006
                $("#mainform").on('submit', function(){
1007
                    if( $("#checkout_confirmed").length > 0 ){
1007
                    if( $("#checkout_confirmed").length > 0 ){
1008
- 

Return to bug 34668