Bug 17913: [Follow-up] Fix duplicate $9s after merging in loose mode

We need to add $9 to the skip_subfields hash too. Formerly, it was
added to $exclude as well.
Thanks, Julian, for catching this one.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2017-01-20 13:51:29 +01:00 committed by Kyle M Hall
parent 8fcf2d6e50
commit 6ddd4b2f5f
1 changed files with 3 additions and 0 deletions

View File

@ -1471,6 +1471,9 @@ sub merge {
# We only need it in loose merge mode; replaces the former $exclude
? {}
: { map { ( $_->[0], 1 ); } ( @record_from, @record_to ) };
# And we need to add $9 in order not to duplicate
$skip_subfields->{9} = 1 if !$overwrite;
foreach my $marcrecord(@reccache){
my $update = 0;
foreach my $tagfield (@$tags_using_authtype) {