Lines 28-33
use C4::Members;
Link Here
|
28 |
use C4::Output; |
28 |
use C4::Output; |
29 |
use C4::Tags qw( get_tags ); |
29 |
use C4::Tags qw( get_tags ); |
30 |
use C4::XSLT; |
30 |
use C4::XSLT; |
|
|
31 |
|
32 |
use Koha::Biblioitems; |
31 |
use Koha::Virtualshelves; |
33 |
use Koha::Virtualshelves; |
32 |
use Koha::RecordProcessor; |
34 |
use Koha::RecordProcessor; |
33 |
|
35 |
|
Lines 258-264
if ( $op eq 'view' ) {
Link Here
|
258 |
my $record_processor = Koha::RecordProcessor->new({ filters => 'ViewPolicy' }); |
260 |
my $record_processor = Koha::RecordProcessor->new({ filters => 'ViewPolicy' }); |
259 |
my @items; |
261 |
my @items; |
260 |
while ( my $content = $contents->next ) { |
262 |
while ( my $content = $contents->next ) { |
261 |
my $biblionumber = $content->biblionumber->biblionumber; |
263 |
my $biblionumber = $content->biblionumber; |
262 |
my $this_item = GetBiblioData($biblionumber); |
264 |
my $this_item = GetBiblioData($biblionumber); |
263 |
my $record = GetMarcBiblio($biblionumber); |
265 |
my $record = GetMarcBiblio($biblionumber); |
264 |
my $framework = GetFrameworkCode( $biblionumber ); |
266 |
my $framework = GetFrameworkCode( $biblionumber ); |
Lines 274-280
if ( $op eq 'view' ) {
Link Here
|
274 |
} |
276 |
} |
275 |
|
277 |
|
276 |
my $marcflavour = C4::Context->preference("marcflavour"); |
278 |
my $marcflavour = C4::Context->preference("marcflavour"); |
277 |
my $itemtypeinfo = getitemtypeinfo( $content->biblionumber->biblioitems->first->itemtype, 'opac' ); |
279 |
my $itemtype = Koha::Biblioitems->search({ biblionumber => $content->biblionumber })->next->itemtype; |
|
|
280 |
my $itemtypeinfo = getitemtypeinfo( $itemtype, 'opac' ); |
278 |
$this_item->{imageurl} = $itemtypeinfo->{imageurl}; |
281 |
$this_item->{imageurl} = $itemtypeinfo->{imageurl}; |
279 |
$this_item->{description} = $itemtypeinfo->{description}; |
282 |
$this_item->{description} = $itemtypeinfo->{description}; |
280 |
$this_item->{notforloan} = $itemtypeinfo->{notforloan}; |
283 |
$this_item->{notforloan} = $itemtypeinfo->{notforloan}; |