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 204-211 Link Here
204
                                    [% ELSIF ( bibitemloo.recall ) %]
204
                                    [% ELSIF ( bibitemloo.recall ) %]
205
                                        <div class="alert alert-warning">You have already placed a recall on this title.</div>
205
                                        <div class="alert alert-warning">You have already placed a recall on this title.</div>
206
                                    [% ELSE %]
206
                                    [% ELSE %]
207
                                        [% IF ( bibitemloo.already_patron_possession ) %]
207
                                        [% IF bibitemloo.alreadypossession %]
208
                                            <div class="alert alert-warning">This title cannot be requested because it's already in your possession.</div>
208
                                            <div class="alert alert-warning">This title cannot be requested because it's already in your possession.</div>
209
                                        [% ELSIF bibitemloo.tooManyReserves %]
210
                                            <div class="alert alert-warning">This title cannot be requested because you reached the maximum number of holds.</div>
211
                                        [% ELSIF bibitemloo.tooManyHoldsForThisRecord %]
212
                                            <div class="alert alert-warning">This title cannot be requested because you exceeded max holds per record.</div>
213
                                        [% ELSIF bibitemloo.tooManyReservesToday %]
214
                                            <div class="alert alert-warning">This title cannot be requested because you reached the daily hold limit.</div>
215
                                        [% ELSIF bibitemloo.itemAlreadyOnHold %]
216
                                            <div class="alert alert-warning">This title cannot be requested because you already have hold for this item.</div>
209
                                        [% ELSE %]
217
                                        [% ELSE %]
210
                                            [% UNLESS ( bibitemloo.bib_available ) %]
218
                                            [% UNLESS ( bibitemloo.bib_available ) %]
211
                                                <div class="alert">There are no items that can be placed on hold.</div>
219
                                                <div class="alert">There are no items that can be placed on hold.</div>
(-)a/opac/opac-reserve.pl (-2 / +1 lines)
Lines 631-637 foreach my $biblioNum (@biblionumbers) { Link Here
631
631
632
    my $status = CanBookBeReserved( $borrowernumber, $biblioNum )->{status};
632
    my $status = CanBookBeReserved( $borrowernumber, $biblioNum )->{status};
633
    $biblioLoopIter{holdable} &&= $status eq 'OK';
633
    $biblioLoopIter{holdable} &&= $status eq 'OK';
634
    $biblioLoopIter{already_patron_possession} = $status eq 'alreadypossession';
634
    $biblioLoopIter{$status} = 1;
635
635
636
    if ( $status eq 'recall' ) {
636
    if ( $status eq 'recall' ) {
637
        $biblioLoopIter{recall} = 1;
637
        $biblioLoopIter{recall} = 1;
638
- 

Return to bug 19540