Bug 26314: (QA follow-up) Resolve new QA script failures

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-09-08 15:36:20 +01:00 committed by Tomas Cohen Arazi
parent f14f56a8f4
commit a210aa9f63
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 4 deletions

View File

@ -270,7 +270,7 @@ if ( $showcomp eq 'both' || $showcomp eq 'staff' ) {
}
# Display volumes link
my $show_volumes = 1 if @{$biblio->get_marc_volumes(1)};
my $show_volumes = @{ $biblio->get_marc_volumes(1) } ? 1 : 0;
# XSLT processing of some stuff
my $xslt_variables = {

View File

@ -621,7 +621,7 @@ if ( $showcomp eq 'both' || $showcomp eq 'opac' ) {
}
# Display volumes link
my $show_volumes = 1 if @{$biblio->get_marc_volumes(1)};
my $show_volumes = @{ $biblio->get_marc_volumes(1) } ? 1 : 0;
# XSLT processing of some stuff
my $variables = {};
@ -637,9 +637,9 @@ my @plugin_responses = Koha::Plugins->call(
for my $plugin_variables ( @plugin_responses ) {
$variables = { %$variables, %$plugin_variables };
}
$variables->{anonymous_session} = $borrowernumber ? 0 : 1;
$variables->{anonymous_session} = $borrowernumber ? 0 : 1;
$variables->{show_analytics_link} = $show_analytics;
$variables->{show_volumes_link} = $show_volumes;
$variables->{show_volumes_link} = $show_volumes;
$template->param(
XSLTBloc => XSLTParse4Display({
biblionumber => $biblionumber,