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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-1 / +5 lines)
Lines 61-67 Link Here
61
                    >
61
                    >
62
62
63
                    [% IF ( patronupdate ) %]<div class="alert alert-info"><h2>Thank you!</h2><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
63
                    [% IF ( patronupdate ) %]<div class="alert alert-info"><h2>Thank you!</h2><p>Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.</p></div>[% END %]
64
65
                    [% IF failed_holds %]
64
                    [% IF failed_holds %]
66
                        <div class="alert alert-info">
65
                        <div class="alert alert-info">
67
                            <h2>Notice:</h2>
66
                            <h2>Notice:</h2>
Lines 1077-1082 Link Here
1077
    [% INCLUDE 'calendar.inc' %]
1076
    [% INCLUDE 'calendar.inc' %]
1078
    [% INCLUDE 'datatables.inc' %]
1077
    [% INCLUDE 'datatables.inc' %]
1079
    <script>
1078
    <script>
1079
        [% IF successful_holds && Koha.Preference('AutoDeleteFromCartWhenHoldPlaced').grep('opac').size %]
1080
            [% FOREACH success IN successful_holds.split('\|') %]
1081
                delSingleRecord('[% success | html %]');
1082
            [% END %]
1083
        [% END %]
1080
        var AR_CAPTION_COUNT = _("(%s total)");
1084
        var AR_CAPTION_COUNT = _("(%s total)");
1081
1085
1082
1086
(-)a/opac/opac-reserve.pl (-1 / +4 lines)
Lines 216-221 if ( $op eq 'cud-place_reserve' ) { Link Here
216
    }
216
    }
217
217
218
    my @failed_holds;
218
    my @failed_holds;
219
    my @successful_holds;
219
    while (@selectedItems) {
220
    while (@selectedItems) {
220
        my $biblioNum = shift(@selectedItems);
221
        my $biblioNum = shift(@selectedItems);
221
        my $itemNum   = shift(@selectedItems);
222
        my $itemNum   = shift(@selectedItems);
Lines 330-335 if ( $op eq 'cud-place_reserve' ) { Link Here
330
            );
331
            );
331
            if ($reserve_id) {
332
            if ($reserve_id) {
332
                ++$reserve_cnt;
333
                ++$reserve_cnt;
334
                push @successful_holds, $biblioNum;
333
            } else {
335
            } else {
334
                push @failed_holds, 'not_placed';
336
                push @failed_holds, 'not_placed';
335
            }
337
            }
Lines 337-343 if ( $op eq 'cud-place_reserve' ) { Link Here
337
    }
339
    }
338
340
339
    print $query->redirect( "/cgi-bin/koha/opac-user.pl?"
341
    print $query->redirect( "/cgi-bin/koha/opac-user.pl?"
340
            . ( @failed_holds ? "failed_holds=" . join( '|', @failed_holds ) : q|| )
342
            . ( @failed_holds     ? "failed_holds=" . join( '|', @failed_holds )         : q|| )
343
            . ( @successful_holds ? "successful_holds=" . join( '|', @successful_holds ) : q|| )
341
            . "&opac-user-holds=1" );
344
            . "&opac-user-holds=1" );
342
    exit;
345
    exit;
343
}
346
}
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 429-434 $template->param( Link Here
429
    AutoResumeSuspendedHolds   => C4::Context->preference('AutoResumeSuspendedHolds'),
429
    AutoResumeSuspendedHolds   => C4::Context->preference('AutoResumeSuspendedHolds'),
430
    OpacHoldNotes              => C4::Context->preference('OpacHoldNotes'),
430
    OpacHoldNotes              => C4::Context->preference('OpacHoldNotes'),
431
    failed_holds               => scalar $query->param('failed_holds'),
431
    failed_holds               => scalar $query->param('failed_holds'),
432
    successful_holds           => scalar $query->param('successful_holds'),
432
    opac_user_holds            => scalar $query->param('opac-user-holds')            || 0,
433
    opac_user_holds            => scalar $query->param('opac-user-holds')            || 0,
433
    opac_user_article_requests => scalar $query->param('opac-user-article-requests') || 0,
434
    opac_user_article_requests => scalar $query->param('opac-user-article-requests') || 0,
434
);
435
);
435
- 

Return to bug 36868