Lines 282-290
if ( $op eq 'view' ) {
Link Here
|
282 |
my $marcflavour = C4::Context->preference("marcflavour"); |
282 |
my $marcflavour = C4::Context->preference("marcflavour"); |
283 |
my $itemtype = Koha::Biblioitems->search({ biblionumber => $content->biblionumber })->next->itemtype; |
283 |
my $itemtype = Koha::Biblioitems->search({ biblionumber => $content->biblionumber })->next->itemtype; |
284 |
$itemtype = Koha::ItemTypes->find( $itemtype ); |
284 |
$itemtype = Koha::ItemTypes->find( $itemtype ); |
285 |
$this_item->{imageurl} = C4::Koha::getitemtypeimagelocation( 'opac', $itemtype->imageurl ); |
285 |
if( $itemtype ) { |
286 |
$this_item->{description} = $itemtype->description; #FIXME Should not it be translated_description? |
286 |
$this_item->{imageurl} = C4::Koha::getitemtypeimagelocation( 'opac', $itemtype->imageurl ); |
287 |
$this_item->{notforloan} = $itemtype->notforloan; |
287 |
$this_item->{description} = $itemtype->description; #FIXME Should not it be translated_description? |
|
|
288 |
$this_item->{notforloan} = $itemtype->notforloan; |
289 |
} |
288 |
$this_item->{'coins'} = GetCOinSBiblio($record); |
290 |
$this_item->{'coins'} = GetCOinSBiblio($record); |
289 |
$this_item->{'subtitle'} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $biblionumber ) ); |
291 |
$this_item->{'subtitle'} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $biblionumber ) ); |
290 |
$this_item->{'normalized_upc'} = GetNormalizedUPC( $record, $marcflavour ); |
292 |
$this_item->{'normalized_upc'} = GetNormalizedUPC( $record, $marcflavour ); |