Lines 179-184
sub XSLTParse4Display {
Link Here
|
179 |
my $hidden_items = $params->{hidden_items} || []; |
179 |
my $hidden_items = $params->{hidden_items} || []; |
180 |
my $variables = $params->{xslt_variables}; |
180 |
my $variables = $params->{xslt_variables}; |
181 |
my $items_rs = $params->{items_rs}; |
181 |
my $items_rs = $params->{items_rs}; |
|
|
182 |
my $interface = $params->{interface}; |
182 |
|
183 |
|
183 |
die "Mandatory \$params->{xsl_syspref} was not provided, called with biblionumber $params->{biblionumber}" |
184 |
die "Mandatory \$params->{xsl_syspref} was not provided, called with biblionumber $params->{biblionumber}" |
184 |
if not defined $params->{xsl_syspref}; |
185 |
if not defined $params->{xsl_syspref}; |
Lines 208-214
sub XSLTParse4Display {
Link Here
|
208 |
|
209 |
|
209 |
$variables ||= {}; |
210 |
$variables ||= {}; |
210 |
my $biblio; |
211 |
my $biblio; |
211 |
if (C4::Context->preference('OPACShowOpenURL')) { |
212 |
if ( $interface eq 'opac' && C4::Context->preference('OPACShowOpenURL')) { |
212 |
my @biblio_itemtypes; |
213 |
my @biblio_itemtypes; |
213 |
$biblio //= Koha::Biblios->find($biblionumber); |
214 |
$biblio //= Koha::Biblios->find($biblionumber); |
214 |
if (C4::Context->preference('item-level_itypes')) { |
215 |
if (C4::Context->preference('item-level_itypes')) { |