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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt (-1 / +9 lines)
Lines 203-210 Link Here
203
                                    [% ELSIF ( bibitemloo.recall ) %]
203
                                    [% ELSIF ( bibitemloo.recall ) %]
204
                                        <div class="alert alert-warning">You have already placed a recall on this title.</div>
204
                                        <div class="alert alert-warning">You have already placed a recall on this title.</div>
205
                                    [% ELSE %]
205
                                    [% ELSE %]
206
                                        [% IF ( bibitemloo.already_patron_possession ) %]
206
                                        [% IF bibitemloo.alreadypossession %]
207
                                            <div class="alert alert-warning">This title cannot be requested because it's already in your possession.</div>
207
                                            <div class="alert alert-warning">This title cannot be requested because it's already in your possession.</div>
208
                                        [% ELSIF bibitemloo.tooManyReserves %]
209
                                            <div class="alert alert-warning">This title cannot be requested because you reached the maximum number of holds.</div>
210
                                        [% ELSIF bibitemloo.tooManyHoldsForThisRecord %]
211
                                            <div class="alert alert-warning">This title cannot be requested because you exceeded max holds per record.</div>
212
                                        [% ELSIF bibitemloo.tooManyReservesToday %]
213
                                            <div class="alert alert-warning">This title cannot be requested because you reached the daily hold limit.</div>
214
                                        [% ELSIF bibitemloo.itemAlreadyOnHold %]
215
                                            <div class="alert alert-warning">This title cannot be requested because you already have hold for this item.</div>
208
                                        [% ELSE %]
216
                                        [% ELSE %]
209
                                            [% UNLESS ( bibitemloo.bib_available ) %]
217
                                            [% UNLESS ( bibitemloo.bib_available ) %]
210
                                                <div class="alert">There are no items that can be placed on hold.</div>
218
                                                <div class="alert">There are no items that can be placed on hold.</div>
(-)a/opac/opac-reserve.pl (-2 / +1 lines)
Lines 565-571 foreach my $biblioNum (@biblionumbers) { Link Here
565
565
566
    my $status = CanBookBeReserved( $borrowernumber, $biblioNum )->{status};
566
    my $status = CanBookBeReserved( $borrowernumber, $biblioNum )->{status};
567
    $biblioLoopIter{holdable} &&= $status eq 'OK';
567
    $biblioLoopIter{holdable} &&= $status eq 'OK';
568
    $biblioLoopIter{already_patron_possession} = $status eq 'alreadypossession';
568
    $biblioLoopIter{$status} = 1;
569
569
570
    if ( $biblioLoopIter{holdable} and C4::Context->preference('AllowHoldItemTypeSelection') ) {
570
    if ( $biblioLoopIter{holdable} and C4::Context->preference('AllowHoldItemTypeSelection') ) {
571
        # build the allowed item types loop
571
        # build the allowed item types loop
572
- 

Return to bug 19540