Lines 749-761
if ( not $viewallitems and @items > $max_items_to_display ) {
Link Here
|
749 |
my $reserve_status = C4::Reserves::GetReserveStatus($itm->{itemnumber}); |
749 |
my $reserve_status = C4::Reserves::GetReserveStatus($itm->{itemnumber}); |
750 |
if( $reserve_status eq "Waiting"){ $itm->{'waiting'} = 1; } |
750 |
if( $reserve_status eq "Waiting"){ $itm->{'waiting'} = 1; } |
751 |
if( $reserve_status eq "Reserved"){ $itm->{'onhold'} = 1; } |
751 |
if( $reserve_status eq "Reserved"){ $itm->{'onhold'} = 1; } |
752 |
|
752 |
|
753 |
my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($itm->{itemnumber}); |
753 |
|
754 |
if ( defined( $transfertwhen ) && $transfertwhen ne '' ) { |
754 |
my $transfer = $item->get_transfer; |
755 |
$itm->{transfertwhen} = $transfertwhen; |
755 |
if ( $transfer->in_transit ) { |
756 |
$itm->{transfertfrom} = $transfertfrom; |
756 |
$itm->{transfertwhen} = output_pref({ dt => dt_from_string($transfer->datesent), dateonly => 1 }); |
757 |
$itm->{transfertto} = $transfertto; |
757 |
$itm->{transfertfrom} = $transfer->frombranch; |
758 |
} |
758 |
$itm->{transfertto} = $transfer->tobranch; |
|
|
759 |
} |
759 |
|
760 |
|
760 |
if ( C4::Context->preference('OPACAcquisitionDetails') ) { |
761 |
if ( C4::Context->preference('OPACAcquisitionDetails') ) { |
761 |
$itm->{on_order} = 1 |
762 |
$itm->{on_order} = 1 |
762 |
- |
|
|