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 <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2017-11-03 08:24:15 +01:00 committed by Jonathan Druart
parent 4927671b15
commit 6cd88847ae
1 changed files with 2 additions and 2 deletions

View File

@ -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' ] };
}
}
}