X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=eg_staged_bib_overlay;h=d4e788a6d3795939d1559b605c68c281edc9a3da;hp=836795b74fd9a8912fc4626108d5514eb0f2a7a6;hb=555b324e75009975b2840f34cf7cb2bbf0532bca;hpb=e646ed5624e97e917dff2b8fc11a3bfbaf3175e3 diff --git a/eg_staged_bib_overlay b/eg_staged_bib_overlay index 836795b..d4e788a 100755 --- a/eg_staged_bib_overlay +++ b/eg_staged_bib_overlay @@ -33,7 +33,7 @@ my $dbpw; my $dbhost; my $batch; my $cutoff; -my $wait = 1; +my $wait = 0; my $output; my $link_skipped; @@ -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 ) }); @@ -594,6 +594,7 @@ sub handle_load_new_auths { ) }); $dbh->commit; + sleep $wait; } }