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 1000-1006 if ( C4::Context->preference('RevertLostBibLevelHolds') ){ Link Here
1000
    # find if any of these lost items have waiting holds
1000
    # find if any of these lost items have waiting holds
1001
    my @waitinglostitems;
1001
    my @waitinglostitems;
1002
    foreach my $lostitem ( @lostitems ){
1002
    foreach my $lostitem ( @lostitems ){
1003
        if ( $lostitem->holds({ found => 'W', item_level_hold => 1 })->count > 0 ){
1003
        if ( $lostitem->holds({ found => [ 'W', 'T' ], item_level_hold => 1 })->count > 0 ){
1004
            push( @waitinglostitems, $lostitem );
1004
            push( @waitinglostitems, $lostitem );
1005
        }
1005
        }
1006
    }
1006
    }
1007
- 

Return to bug 20844