From df21b941a881cd855ba23064234c55d150ecc8c7 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Thu, 19 Nov 2015 09:52:04 +0100 Subject: [PATCH] Bug 15214: bulkmarcimport should log if an authority has been updated When importing with bulkmarcimport, authorities may or may not be updated based on which authority is newer (005 are compared). This patch allows to keep track in the result yaml file if an authority has been updated or not: Signed-off-by: Jon Knight Signed-off-by: Kyle M Hall --- misc/migration_tools/bulkmarcimport.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/migration_tools/bulkmarcimport.pl b/misc/migration_tools/bulkmarcimport.pl index 6a08c6cd56..6ab4b3fcf4 100755 --- a/misc/migration_tools/bulkmarcimport.pl +++ b/misc/migration_tools/bulkmarcimport.pl @@ -341,6 +341,7 @@ RECORD: while ( ) { push @subfields, map { ( $_->[0] =~ /[a-z]/ ? $_->[1] : () ) } $field->subfields(); } $yamlhash->{$originalid}->{'subfields'} = \@subfields; + $yamlhash->{$originalid}->{'updated'} = 0; } next; } @@ -424,6 +425,7 @@ RECORD: while ( ) { push @subfields, map { ( $_->[0] =~ /[a-z]/ ? $_->[1] : () ) } $field->subfields(); } $yamlhash->{$originalid}->{'subfields'} = \@subfields; + $yamlhash->{$originalid}->{'updated'} = 1; } } else { -- 2.21.1 (Apple Git-122.3)