From 6cd88847ae12f461ff134c3ee2a545e59bb7520b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 3 Nov 2017 08:24:15 +0100 Subject: [PATCH] Bug 19537: (QA follow-up) Consistent structures The subfield_loop structure should contain things like: $VAR1 = { 'marc_subfield' => 'v', 'marc_values' => [ 'form' ] }; This patches replaces the list by an array ref to restore consistency, although Template Toolkit does not really care. Both work. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- authorities/blinddetail-biblio-search.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authorities/blinddetail-biblio-search.pl b/authorities/blinddetail-biblio-search.pl index 838e4bad67..9e7930d793 100755 --- a/authorities/blinddetail-biblio-search.pl +++ b/authorities/blinddetail-biblio-search.pl @@ -122,9 +122,9 @@ if ($authid) { $indicator2 = defined $thes_mapping{$thes_008_11} ? $thes_mapping{$thes_008_11} : $thes_008_11; if ($indicator2 eq '7') { if ($thes_008_11 eq 'r') { - push @subfield_loop, { marc_subfield => '2', marc_values => ('aat') }; + push @subfield_loop, { marc_subfield => '2', marc_values => [ 'aat' ] }; } elsif ($thes_008_11 eq 's') { - push @subfield_loop, { marc_subfield => '2', marc_values => ('sears') }; + push @subfield_loop, { marc_subfield => '2', marc_values => [ 'sears' ] }; } } } -- 2.39.5