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

(-)a/catalogue/detail.pl (-1 / +3 lines)
Lines 260-266 foreach my $item (@items) { Link Here
260
    # checking for holds
260
    # checking for holds
261
    my $item_object = Koha::Items->find( $item->{itemnumber} );
261
    my $item_object = Koha::Items->find( $item->{itemnumber} );
262
    my $holds = $item_object->current_holds;
262
    my $holds = $item_object->current_holds;
263
    if ( my $first_hold = $holds->next ) {
263
    my $first_hold = $holds->next;
264
    $item->{holds_count} = $holds->count;
265
    if ( $first_hold && $first_hold->priority == 0 ) {
264
        my $patron = Koha::Patrons->find( $first_hold->borrowernumber );
266
        my $patron = Koha::Patrons->find( $first_hold->borrowernumber );
265
        $item->{backgroundcolor} = 'reserved';
267
        $item->{backgroundcolor} = 'reserved';
266
        $item->{reservedate}     = $first_hold->reservedate;
268
        $item->{reservedate}     = $first_hold->reservedate;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-2 / +3 lines)
Lines 447-454 Link Here
447
                                Hold for:
447
                                Hold for:
448
                                [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
448
                                [% INCLUDE 'patron-title.inc' patron=item.ReservedFor hide_patron_infos_if_needed=1 %]
449
                            [% END %]
449
                            [% END %]
450
                        [% ELSE %]
451
                            [% IF item.holds_count > 0 %]There is a hold on this item[% END %]
450
                        [% END %]
452
                        [% END %]
451
                        [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %]
453
                        [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate || item.holds_count > 0 ) %]
452
                            Available
454
                            Available
453
                        [% END %]
455
                        [% END %]
454
456
455
- 

Return to bug 19288