From: Rogan Hamby Date: Thu, 26 Jul 2018 20:21:17 +0000 (-0400) Subject: bugfix to bib loading X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=46bd95616923cd2de0b1ed6b7a0fd8ffd0b103e2 bugfix to bib loading --- diff --git a/mig-bin/mig-loadbibs b/mig-bin/mig-loadbibs index c200fc6..8c49a76 100755 --- a/mig-bin/mig-loadbibs +++ b/mig-bin/mig-loadbibs @@ -135,7 +135,7 @@ while ( my $record = $batch->next() ) { my @warnings = $batch->warnings(); my $warning_string; if (@warnings) { $warning_string = "'" . join(':',@warnings) . "'"; } else { $warning_string = "'none'"; } - my $sql = "INSERT INTO $MIGSCHEMA.biblio_record_entry_legacy (marc,x_source,x_warnings) VALUES ($xml,'$source',$warning_string);"; + my $sql = "INSERT INTO $MIGSCHEMA.$stage_table (marc,x_source,x_warnings) VALUES ($xml,'$source',$warning_string);"; my $sth = $dbh->prepare($sql); $sth->execute(); report_progress("Records staged", $i) if 0 != $i % 100; diff --git a/sql/base/base.sql b/sql/base/base.sql index 3340482..a333a1b 100644 --- a/sql/base/base.sql +++ b/sql/base/base.sql @@ -3533,7 +3533,7 @@ foreach my $field (@uris) { if (!defined $ind2) { next; } if ($ind2 ne '0') { next; } if (!defined $sfu) { next; } - if ($sfu =~ m/$matching_u_text/) { + if ($sfu =~ m/$matching_u_text/ or $matching_u_text eq 'pineapple') { $field->add_subfields( '9' => $new_9_to_set ); last; }