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;
my $record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import(
$mgr->editor,
$li->marc,
- undef,
+ undef, # bib source
undef,
1, # override tcn collisions
- 1, # no-ingest
- undef # $rec->bib_source
);
if($U->event_code($record)) {
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);
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);
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;
$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 );
$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;
}
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)) {