Lines 27-32
use C4::Members;
Link Here
|
27 |
use C4::Output; |
27 |
use C4::Output; |
28 |
use C4::XSLT; |
28 |
use C4::XSLT; |
29 |
|
29 |
|
|
|
30 |
use Koha::Biblios; |
31 |
use Koha::Biblioitems; |
30 |
use Koha::CsvProfiles; |
32 |
use Koha::CsvProfiles; |
31 |
use Koha::Virtualshelves; |
33 |
use Koha::Virtualshelves; |
32 |
|
34 |
|
Lines 223-229
if ( $op eq 'view' ) {
Link Here
|
223 |
my @items; |
225 |
my @items; |
224 |
while ( my $content = $contents->next ) { |
226 |
while ( my $content = $contents->next ) { |
225 |
my $this_item; |
227 |
my $this_item; |
226 |
my $biblionumber = $content->biblionumber->biblionumber; |
228 |
my $biblionumber = $content->biblionumber; |
227 |
my $record = GetMarcBiblio($biblionumber); |
229 |
my $record = GetMarcBiblio($biblionumber); |
228 |
|
230 |
|
229 |
if ( $xslfile ) { |
231 |
if ( $xslfile ) { |
Lines 232-240
if ( $op eq 'view' ) {
Link Here
|
232 |
} |
234 |
} |
233 |
|
235 |
|
234 |
my $marcflavour = C4::Context->preference("marcflavour"); |
236 |
my $marcflavour = C4::Context->preference("marcflavour"); |
235 |
my $itemtypeinfo = getitemtypeinfo( $content->biblionumber->biblioitems->first->itemtype, 'intranet' ); |
237 |
my $itemtype = Koha::Biblioitems->search({ biblionumber => $content->biblionumber })->next->itemtype; |
236 |
$this_item->{title} = $content->biblionumber->title; |
238 |
my $itemtypeinfo = getitemtypeinfo( $itemtype, 'intranet' ); |
237 |
$this_item->{author} = $content->biblionumber->author; |
239 |
my $biblio = Koha::Biblios->find( $content->biblionumber ); |
|
|
240 |
$this_item->{title} = $biblio->title; |
241 |
$this_item->{author} = $biblio->author; |
238 |
$this_item->{dateadded} = $content->dateadded; |
242 |
$this_item->{dateadded} = $content->dateadded; |
239 |
$this_item->{imageurl} = $itemtypeinfo->{imageurl}; |
243 |
$this_item->{imageurl} = $itemtypeinfo->{imageurl}; |
240 |
$this_item->{description} = $itemtypeinfo->{description}; |
244 |
$this_item->{description} = $itemtypeinfo->{description}; |
241 |
- |
|
|