|
Lines 264-272
sub XSLTParse4Display {
Link Here
|
| 264 |
my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); |
264 |
my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); |
| 265 |
|
265 |
|
| 266 |
$variables ||= {}; |
266 |
$variables ||= {}; |
|
|
267 |
my $biblio; |
| 267 |
if (C4::Context->preference('OPACShowOpenURL')) { |
268 |
if (C4::Context->preference('OPACShowOpenURL')) { |
| 268 |
my @biblio_itemtypes; |
269 |
my @biblio_itemtypes; |
| 269 |
my $biblio = Koha::Biblios->find($biblionumber); |
270 |
$biblio //= Koha::Biblios->find($biblionumber); |
| 270 |
if (C4::Context->preference('item-level_itypes')) { |
271 |
if (C4::Context->preference('item-level_itypes')) { |
| 271 |
@biblio_itemtypes = $biblio->items->get_column("itype"); |
272 |
@biblio_itemtypes = $biblio->items->get_column("itype"); |
| 272 |
} else { |
273 |
} else { |
|
Lines 283-289
sub XSLTParse4Display {
Link Here
|
| 283 |
my $partsxml = ''; |
284 |
my $partsxml = ''; |
| 284 |
# possibly insert component records into Detail views |
285 |
# possibly insert component records into Detail views |
| 285 |
if ( $xslsyspref eq "OPACXSLTDetailsDisplay" || $xslsyspref eq "XSLTDetailsDisplay" ) { |
286 |
if ( $xslsyspref eq "OPACXSLTDetailsDisplay" || $xslsyspref eq "XSLTDetailsDisplay" ) { |
| 286 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
287 |
my $biblio //= Koha::Biblios->find( $biblionumber ); |
| 287 |
my $components = $biblio->get_marc_components(300); |
288 |
my $components = $biblio->get_marc_components(300); |
| 288 |
$variables->{show_analytics_link} = ( scalar @{$components} == 0 ) ? 0 : 1; |
289 |
$variables->{show_analytics_link} = ( scalar @{$components} == 0 ) ? 0 : 1; |
| 289 |
|
290 |
|
| 290 |
- |
|
|