for logging of field-level merges, look for record ID in both 901 and 903
authorGalen Charlton <gmc@esilibrary.com>
Tue, 7 Aug 2012 18:42:42 +0000 (14:42 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 7 Aug 2012 18:42:42 +0000 (14:42 -0400)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

sql/base/base.sql

index 7909ecb..ca31802 100644 (file)
@@ -1755,7 +1755,9 @@ if ($@) {
 }
 
 my $source_id = $source->subfield('901', 'c');
+$source_id = $source->subfield('903', 'a') unless $source_id;
 my $target_id = $target->subfield('901', 'c');
+$target_id = $target->subfield('903', 'a') unless $target_id;
 
 my %existing_fields;
 foreach my $tag (@$tags) {