From a210aa9f63395757bbbf9319c2cd35e056033009 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 8 Sep 2023 15:36:20 +0100 Subject: [PATCH] Bug 26314: (QA follow-up) Resolve new QA script failures Signed-off-by: Michaela Sieber Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- catalogue/detail.pl | 2 +- opac/opac-detail.pl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 085be435b8..428574e365 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -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 = { diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 620ceb4945..b9c644e38d 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -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, -- 2.39.5