[open-ils-commits] r13980 - in trunk/Open-ILS/src/perlmods/OpenILS/Application: . Acq Cat (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 4 16:50:20 EDT 2009
Author: erickson
Date: 2009-09-04 16:50:14 -0400 (Fri, 04 Sep 2009)
New Revision: 13980
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm
trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm
trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat/BibCommon.pm
trunk/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
Log:
there's no valid reason to call ingest from within the bib create/overlay code before the changes have been committed. removed embedded ingest logic and the no-ingest flags passed by everyone that uses them
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm 2009-09-04 20:43:08 UTC (rev 13979)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Financials.pm 2009-09-04 20:50:14 UTC (rev 13980)
@@ -597,7 +597,7 @@
unless($li->eg_bib_id) {
my $record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import(
- $e, $li->marc, undef, undef, undef, 1); #$rec->bib_source
+ $e, $li->marc); #$rec->bib_source
if($U->event_code($record)) {
$e->rollback;
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2009-09-04 20:43:08 UTC (rev 13979)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Acq/Order.pm 2009-09-04 20:50:14 UTC (rev 13980)
@@ -776,11 +776,9 @@
my $record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import(
$mgr->editor,
$li->marc,
+ undef, # bib source
undef,
- undef,
1, # override tcn collisions
- 1, # no-ingest
- undef # $rec->bib_source
);
if($U->event_code($record)) {
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat/BibCommon.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat/BibCommon.pm 2009-09-04 20:43:08 UTC (rev 13979)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat/BibCommon.pm 2009-09-04 20:50:14 UTC (rev 13980)
@@ -36,7 +36,7 @@
sub biblio_record_replace_marc {
- my($class, $e, $recid, $newxml, $source, $fixtcn, $override, $noingest) = @_;
+ my($class, $e, $recid, $newxml, $source, $fixtcn, $override) = @_;
my $rec = $e->retrieve_biblio_record_entry($recid)
or return $e->die_event;
@@ -70,17 +70,11 @@
$rec->marc( $U->entityize( $marcdoc->documentElement->toString ) );
$e->update_biblio_record_entry($rec) or return $e->die_event;
- unless ($noingest) {
- # we don't care about the result, just fire off the request
- my $ses = OpenSRF::AppSession->create('open-ils.ingest');
- $ses->request('open-ils.ingest.full.biblio.record', $recid);
- }
-
return $rec;
}
sub biblio_record_xml_import {
- my($class, $e, $xml, $source, $auto_tcn, $override, $noingest) = @_;
+ my($class, $e, $xml, $source, $auto_tcn, $override) = @_;
my( $evt, $tcn, $tcn_source, $marcdoc );
@@ -109,12 +103,6 @@
$record = $e->create_biblio_record_entry($record) or return $e->die_event;
$logger->info("marc create/import created new record ".$record->id);
- unless ($noingest) {
- # we don't care about the result, just fire off the request
- my $ses = OpenSRF::AppSession->create('open-ils.ingest');
- $ses->request('open-ils.ingest.full.biblio.record', $record->id);
- }
-
return $record;
}
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm 2009-09-04 20:43:08 UTC (rev 13979)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm 2009-09-04 20:50:14 UTC (rev 13980)
@@ -160,12 +160,11 @@
return $e->die_event unless $e->checkauth;
return $e->die_event unless $e->allowed('CREATE_MARC', $e->requestor->ws_ou);
- my $no_ingest = 1;
my $fix_tcn = $self->api_name =~ /replace/o;
my $override = $self->api_name =~ /override/o;
my $res = OpenILS::Application::Cat::BibCommon->biblio_record_replace_marc(
- $e, $recid, $newxml, $source, $fix_tcn, $override, $no_ingest);
+ $e, $recid, $newxml, $source, $fix_tcn, $override);
$e->commit unless $U->event_code($res);
@@ -257,7 +256,7 @@
my $override = $self->api_name =~ /override/;
my $record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import(
- $e, $xml, $source, $auto_tcn, $override, 1);
+ $e, $xml, $source, $auto_tcn, $override);
return $record if $U->event_code($record);
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm 2009-09-04 20:43:08 UTC (rev 13979)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm 2009-09-04 20:50:14 UTC (rev 13980)
@@ -574,11 +574,11 @@
if(defined $overlay_target) {
$logger->info("vl: overlaying record $overlay_target");
$record = OpenILS::Application::Cat::BibCommon->biblio_record_replace_marc(
- $e, $overlay_target, $rec->marc, undef, undef, undef, 1); #$rec->bib_source
+ $e, $overlay_target, $rec->marc); #$rec->bib_source
} else {
$logger->info("vl: importing new record");
$record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import(
- $e, $rec->marc, undef, undef, undef, 1); #$rec->bib_source
+ $e, $rec->marc); #$rec->bib_source
}
if($U->event_code($record)) {
More information about the open-ils-commits
mailing list