Lines 29-34
use C4::XSLT;
Link Here
|
29 |
|
29 |
|
30 |
use Koha::Biblios; |
30 |
use Koha::Biblios; |
31 |
use Koha::Biblioitems; |
31 |
use Koha::Biblioitems; |
|
|
32 |
use Koha::ItemTypes; |
32 |
use Koha::CsvProfiles; |
33 |
use Koha::CsvProfiles; |
33 |
use Koha::Virtualshelves; |
34 |
use Koha::Virtualshelves; |
34 |
|
35 |
|
Lines 244-257
if ( $op eq 'view' ) {
Link Here
|
244 |
|
245 |
|
245 |
my $marcflavour = C4::Context->preference("marcflavour"); |
246 |
my $marcflavour = C4::Context->preference("marcflavour"); |
246 |
my $itemtype = Koha::Biblioitems->search({ biblionumber => $content->biblionumber })->next->itemtype; |
247 |
my $itemtype = Koha::Biblioitems->search({ biblionumber => $content->biblionumber })->next->itemtype; |
247 |
my $itemtypeinfo = getitemtypeinfo( $itemtype, 'intranet' ); |
248 |
$itemtype = Koha::ItemTypes->find( $itemtype ); |
248 |
my $biblio = Koha::Biblios->find( $content->biblionumber ); |
249 |
my $biblio = Koha::Biblios->find( $content->biblionumber ); |
249 |
$this_item->{title} = $biblio->title; |
250 |
$this_item->{title} = $biblio->title; |
250 |
$this_item->{author} = $biblio->author; |
251 |
$this_item->{author} = $biblio->author; |
251 |
$this_item->{dateadded} = $content->dateadded; |
252 |
$this_item->{dateadded} = $content->dateadded; |
252 |
$this_item->{imageurl} = $itemtypeinfo->{imageurl}; |
253 |
$this_item->{imageurl} = C4::Koha::getitemtypeimagelocation( 'intranet', $itemtype->imageurl ); |
253 |
$this_item->{description} = $itemtypeinfo->{description}; |
254 |
$this_item->{description} = $itemtype->description; #FIXME Should not it be translated_description |
254 |
$this_item->{notforloan} = $itemtypeinfo->{notforloan}; |
255 |
$this_item->{notforloan} = $itemtype->notforloan; |
255 |
$this_item->{'coins'} = GetCOinSBiblio($record); |
256 |
$this_item->{'coins'} = GetCOinSBiblio($record); |
256 |
$this_item->{'subtitle'} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $biblionumber ) ); |
257 |
$this_item->{'subtitle'} = GetRecordValue( 'subtitle', $record, GetFrameworkCode( $biblionumber ) ); |
257 |
$this_item->{'normalized_upc'} = GetNormalizedUPC( $record, $marcflavour ); |
258 |
$this_item->{'normalized_upc'} = GetNormalizedUPC( $record, $marcflavour ); |
258 |
- |
|
|