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 <J.P.Knight@lboro.ac.uk> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
03fac5d1a1
commit
15dd83268b
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue