moved worm calls to ingest
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Aug 2006 21:35:13 +0000 (21:35 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 17 Aug 2006 21:35:13 +0000 (21:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5580 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Cat.pm

index 24c3d5c..c1cf729 100644 (file)
@@ -195,9 +195,17 @@ sub biblio_record_replace_marc  {
        $logger->activity("user ".$e->requestor->id." replacing MARC for record $recid");
 
        $e->update_biblio_record_entry($rec) or return $e->event;
-       $e->request('open-ils.worm.wormize.biblio', $recid) or return $e->event;
        $e->commit;
 
+       $U->simplereq(
+               'open-ils.ingest',
+               'open-ils.ingest.full.biblio.record', $recid );
+
+       return $rec;
+
+       #$e->request('open-ils.worm.wormize.biblio', $recid) or return $e->event;
+       #$e->commit;
+
        return $rec;
 }
 
@@ -265,9 +273,14 @@ sub biblio_record_xml_import {
 
        $logger->debug("Sending record off to be wormized");
 
-       my $stat = $U->storagereq( 'open-ils.worm.wormize.biblio', $id );
-       throw OpenSRF::EX::ERROR 
-               ("Unable to wormize imported record") unless $stat;
+
+       $U->simplereq(
+               'open-ils.ingest',
+               'open-ils.ingest.full.biblio.record', $id );
+
+#      my $stat = $U->storagereq( 'open-ils.worm.wormize.biblio', $id );
+#      throw OpenSRF::EX::ERROR 
+#              ("Unable to wormize imported record") unless $stat;
 
        return $record;
 }