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 58-64 Link Here
58
                    <a href="/cgi-bin/koha/opac-main.pl?logout.x=1" class="d-print-none">Click here if you're not [% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a></p>
58
                    <a href="/cgi-bin/koha/opac-main.pl?logout.x=1" class="d-print-none">Click here if you're not [% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a></p>
59
59
60
                    [% 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 %]
60
                    [% 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 %]
61
62
                    [% IF failed_holds %]
61
                    [% IF failed_holds %]
63
                        <div class="alert alert-info">
62
                        <div class="alert alert-info">
64
                            <h2>Notice:</h2>
63
                            <h2>Notice:</h2>
Lines 1088-1093 Link Here
1088
    [% INCLUDE 'calendar.inc' %]
1087
    [% INCLUDE 'calendar.inc' %]
1089
    [% INCLUDE 'datatables.inc' %]
1088
    [% INCLUDE 'datatables.inc' %]
1090
    <script>
1089
    <script>
1090
        [% IF successful_holds && Koha.Preference('AutoDeleteFromCartWhenHoldPlaced').grep('opac').size %]
1091
            [% FOREACH success IN successful_holds.split('\|') %]
1092
                delSingleRecord('[% success | html %]');
1093
            [% END %]
1094
        [% END %]
1091
        var AR_CAPTION_COUNT = _("(%s total)");
1095
        var AR_CAPTION_COUNT = _("(%s total)");
1092
1096
1093
1097
(-)a/opac/opac-reserve.pl (-1 / +3 lines)
Lines 215-220 if ( $op eq 'cud-place_reserve' ) { Link Here
215
    }
215
    }
216
216
217
    my @failed_holds;
217
    my @failed_holds;
218
    my @successful_holds;
218
    while (@selectedItems) {
219
    while (@selectedItems) {
219
        my $biblioNum = shift(@selectedItems);
220
        my $biblioNum = shift(@selectedItems);
220
        my $itemNum   = shift(@selectedItems);
221
        my $itemNum   = shift(@selectedItems);
Lines 326-338 if ( $op eq 'cud-place_reserve' ) { Link Here
326
            );
327
            );
327
            if( $reserve_id ){
328
            if( $reserve_id ){
328
                ++$reserve_cnt;
329
                ++$reserve_cnt;
330
                push @successful_holds, $biblioNum;
329
            } else {
331
            } else {
330
                push @failed_holds, 'not_placed';
332
                push @failed_holds, 'not_placed';
331
            }
333
            }
332
        }
334
        }
333
    }
335
    }
334
336
335
    print $query->redirect("/cgi-bin/koha/opac-user.pl?" . ( @failed_holds ? "failed_holds=" . join('|',@failed_holds) : q|| ) . "&opac-user-holds=1");
337
    print $query->redirect("/cgi-bin/koha/opac-user.pl?" . ( @failed_holds ? "failed_holds=" . join('|',@failed_holds) : q|| ) . ( @successful_holds ? "successful_holds=" . join('|',@successful_holds) : q|| )  . "&opac-user-holds=1");
336
    exit;
338
    exit;
337
}
339
}
338
340
(-)a/opac/opac-user.pl (-1 / +1 lines)
Lines 410-415 $template->param( Link Here
410
    AutoResumeSuspendedHolds   => C4::Context->preference('AutoResumeSuspendedHolds'),
410
    AutoResumeSuspendedHolds   => C4::Context->preference('AutoResumeSuspendedHolds'),
411
    OpacHoldNotes              => C4::Context->preference('OpacHoldNotes'),
411
    OpacHoldNotes              => C4::Context->preference('OpacHoldNotes'),
412
    failed_holds               => scalar $query->param('failed_holds'),
412
    failed_holds               => scalar $query->param('failed_holds'),
413
    successful_holds           => scalar $query->param('successful_holds'),
413
    opac_user_holds            => scalar $query->param('opac-user-holds')            || 0,
414
    opac_user_holds            => scalar $query->param('opac-user-holds')            || 0,
414
    opac_user_article_requests => scalar $query->param('opac-user-article-requests') || 0,
415
    opac_user_article_requests => scalar $query->param('opac-user-article-requests') || 0,
415
);
416
);
416
- 

Return to bug 36868