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

(-)a/catalogue/moredetail.pl (-1 / +1 lines)
Lines 245-251 foreach my $item (@items){ Link Here
245
        $item->{patron} = $curr_borrower;
245
        $item->{patron} = $curr_borrower;
246
    }
246
    }
247
247
248
    $item->{waiting_holds} = $item->{object}->holds({ found => 'W', item_level_hold => { '!=' => 0 } })->count;
248
    $item->{waiting_holds} = $item->{object}->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count;
249
}
249
}
250
250
251
my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
251
my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] });
(-)a/cataloguing/additem.pl (-2 / +1 lines)
Lines 991-997 if ( C4::Context->preference('RevertLostBibLevelHolds') ){ Link Here
991
    # find if any of these lost items have waiting holds
991
    # find if any of these lost items have waiting holds
992
    my @waitinglostitems;
992
    my @waitinglostitems;
993
    foreach my $lostitem ( @lostitems ){
993
    foreach my $lostitem ( @lostitems ){
994
        if ( $lostitem->holds({ found => 'W', item_level_hold => 1 })->count > 0 ){
994
        if ( $lostitem->holds({ found => [ 'W', 'T' ], item_level_hold => 1 })->count > 0 ){
995
            push( @waitinglostitems, $lostitem );
995
            push( @waitinglostitems, $lostitem );
996
        }
996
        }
997
    }
997
    }
998
- 

Return to bug 20844