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

(-)a/catalogue/detail.pl (-1 / +3 lines)
Lines 282-288 foreach my $item (@items) { Link Here
282
    # checking for holds
282
    # checking for holds
283
    my $item_object = Koha::Items->find( $item->{itemnumber} );
283
    my $item_object = Koha::Items->find( $item->{itemnumber} );
284
    my $holds = $item_object->current_holds;
284
    my $holds = $item_object->current_holds;
285
    if ( my $first_hold = $holds->next ) {
285
    my $first_hold = $holds->next;
286
    $item->{holds_count} = $holds->count;
287
    if ( $first_hold && $first_hold->priority == 0 ) {
286
        my $patron = Koha::Patrons->find( $first_hold->borrowernumber );
288
        my $patron = Koha::Patrons->find( $first_hold->borrowernumber );
287
        $item->{backgroundcolor} = 'reserved';
289
        $item->{backgroundcolor} = 'reserved';
288
        $item->{reservedate}     = $first_hold->reservedate;
290
        $item->{reservedate}     = $first_hold->reservedate;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +3 lines)
Lines 334-341 Link Here
334
                                Hold for:
334
                                Hold for:
335
                                [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
335
                                [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
336
                            [% END %]
336
                            [% END %]
337
                        [% ELSE %]
338
                            [% IF item.holds_count > 0 %]There is a hold on this item[% END %]
337
                        [% END %]
339
                        [% END %]
338
                        [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
340
                        [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate || item.holds_count > 0 ) %]
339
                            Available
341
                            Available
340
                        [% END %]
342
                        [% END %]
341
343
342
- 

Return to bug 19288