X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=eg_staged_bib_overlay;h=d4e788a6d3795939d1559b605c68c281edc9a3da;hp=7e57e9aadff65c7c3f96ccda7e37832f7d1d130e;hb=6ade3d523bfdfe7add008ebe0a0e6d494edac88c;hpb=9d35fadc55c2eb48cf90d72229d24d7c52d3ba96 diff --git a/eg_staged_bib_overlay b/eg_staged_bib_overlay index 7e57e9a..d4e788a 100755 --- a/eg_staged_bib_overlay +++ b/eg_staged_bib_overlay @@ -285,7 +285,7 @@ sub handle_stage_bibs { my $marc = MARC::Record->new_from_usmarc($_); my $bibid = $marc->subfield('901', 'c'); if ($bibid !~ /^\d+$/) { - die('Subfield 901$c is not numeric or missing.'); + die('Subfield 901$c is not numeric or missing.'); } my $xml = OpenILS::Application::AppUtils->entityize($marc->as_xml_record()); $ins->execute($xml, $bibid); @@ -387,7 +387,7 @@ sub handle_load_bibs { FROM $schema.$batch WHERE to_import AND NOT imported - ORDER BY id + ORDER BY bib_id DESC LIMIT 1 ) }); @@ -404,7 +404,7 @@ sub handle_load_bibs { ) }); $dbh->commit; - sleep $wait if ($wait); + sleep $wait; } } @@ -594,6 +594,7 @@ sub handle_load_new_auths { ) }); $dbh->commit; + sleep $wait; } }