diff --git a/opac/opac-basket.pl b/opac/opac-basket.pl index d66fd0127c..c2d57f2f5e 100755 --- a/opac/opac-basket.pl +++ b/opac/opac-basket.pl @@ -101,6 +101,9 @@ foreach my $biblionumber ( @bibs ) { my @items; foreach my $item (@all_items) { if ( none { $item->{itemnumber} ne $_ } @hidden_items ) { + my $reserve_status = C4::Reserves::GetReserveStatus($item->{itemnumber}); + if( $reserve_status eq "Waiting"){ $item->{'waiting'} = 1; } + if( $reserve_status eq "Reserved"){ $item->{'onhold'} = 1; } push @items, $item; } }