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

(-)a/catalogue/moredetail.pl (-3 / +2 lines)
Lines 132-140 foreach ( keys %{$data} ) { Link Here
132
($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items);
132
($itemnumber) and @items = (grep {$_->{'itemnumber'} == $itemnumber} @items);
133
foreach my $item (@items){
133
foreach my $item (@items){
134
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
134
    $item->{object} = Koha::Items->find( $item->{itemnumber} );
135
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes);
135
    $item->{'collection'}              = $ccodes->{ $item->{ccode} } if ($ccodes && $item->{ccode});
136
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
136
    $item->{'itype'}                   = $itemtypes->{ $item->{'itype'} }->{'translated_description'};
137
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} );
137
    $item->{'replacementprice'}        = sprintf( "%.2f", $item->{'replacementprice'} // 0 );
138
    if ( defined $item->{'copynumber'} ) {
138
    if ( defined $item->{'copynumber'} ) {
139
        $item->{'displaycopy'} = 1;
139
        $item->{'displaycopy'} = 1;
140
        if ( defined $copynumbers->{ $item->{'copynumber'} } ) {
140
        if ( defined $copynumbers->{ $item->{'copynumber'} } ) {
141
- 

Return to bug 20592