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

(-)a/C4/XSLT.pm (-4 / +4 lines)
Lines 292-298 sub buildKohaItemsNamespace { Link Here
292
        $items_rs = Koha::Items->new;
292
        $items_rs = Koha::Items->new;
293
    }
293
    }
294
294
295
    my $items = $items_rs->search( $query, { prefetch => [ 'branchtransfers', 'reserves' ] } );
295
    my $items =
296
        $items_rs->search( $query, { prefetch => [ 'current_branchtransfers', 'reserves', 'tmp_holdsqueue' ] } );
296
297
297
    my $shelflocations = {
298
    my $shelflocations = {
298
        map { $_->{authorised_value} => $_->{opac_description} }
299
        map { $_->{authorised_value} => $_->{opac_description} }
Lines 333-342 sub buildKohaItemsNamespace { Link Here
333
        } elsif ( $item->has_pending_hold ) {
334
        } elsif ( $item->has_pending_hold ) {
334
            $status    = 'other';
335
            $status    = 'other';
335
            $substatus = 'Pending hold';
336
            $substatus = 'Pending hold';
336
        } elsif ( $item->holds->waiting->count ) {
337
        } elsif ( $item->holds->count && $item->holds->waiting->count ) {
337
            $status    = 'other';
338
            $status    = 'other';
338
            $substatus = 'Hold waiting';
339
            $substatus = 'Hold waiting';
339
        } elsif ( $item->get_transfer ) {
340
        } elsif ( $item->_result->current_branchtransfers->count ) {
340
            $status    = 'other';
341
            $status    = 'other';
341
            $substatus = 'In transit';
342
            $substatus = 'In transit';
342
        } elsif ( $item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems') ) {
343
        } elsif ( $item->damaged && !C4::Context->preference('AllowHoldsOnDamagedItems') ) {
343
- 

Return to bug 28702