|
Lines 250-258
sub XSLTParse4Display {
Link Here
|
| 250 |
my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); |
250 |
my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); |
| 251 |
|
251 |
|
| 252 |
$variables ||= {}; |
252 |
$variables ||= {}; |
|
|
253 |
my $biblio; |
| 253 |
if (C4::Context->preference('OPACShowOpenURL')) { |
254 |
if (C4::Context->preference('OPACShowOpenURL')) { |
| 254 |
my @biblio_itemtypes; |
255 |
my @biblio_itemtypes; |
| 255 |
my $biblio = Koha::Biblios->find($biblionumber); |
256 |
$biblio //= Koha::Biblios->find($biblionumber); |
| 256 |
if (C4::Context->preference('item-level_itypes')) { |
257 |
if (C4::Context->preference('item-level_itypes')) { |
| 257 |
@biblio_itemtypes = $biblio->items->get_column("itype"); |
258 |
@biblio_itemtypes = $biblio->items->get_column("itype"); |
| 258 |
} else { |
259 |
} else { |
|
Lines 269-275
sub XSLTParse4Display {
Link Here
|
| 269 |
my $partsxml = ''; |
270 |
my $partsxml = ''; |
| 270 |
# possibly insert component records into Detail views |
271 |
# possibly insert component records into Detail views |
| 271 |
if ($xslsyspref =~ m/Details/) { |
272 |
if ($xslsyspref =~ m/Details/) { |
| 272 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
273 |
$biblio //= Koha::Biblios->find( $biblionumber ); |
| 273 |
my $components = $biblio->get_marc_analytics(300); |
274 |
my $components = $biblio->get_marc_analytics(300); |
| 274 |
$variables->{show_analytics_link} = ( scalar @{$components} == 0 ) ? 0 : 1; |
275 |
$variables->{show_analytics_link} = ( scalar @{$components} == 0 ) ? 0 : 1; |
| 275 |
|
276 |
|
| 276 |
- |
|
|