[open-ils-commits] r17493 - branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 6 03:45:33 EDT 2010
Author: dbs
Date: 2010-09-06 03:45:28 -0400 (Mon, 06 Sep 2010)
New Revision: 17493
Modified:
branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
Log:
Backport just the bib-source setting portion of r17403
When importing a set of records from Vandelay, the bib source selection widget
on the Vandelay screen should actually affect the biblio.record_entry.source
value of the imported records.
Modified: branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm
===================================================================
--- branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm 2010-09-03 21:48:13 UTC (rev 17492)
+++ branches/rel_1_6_1/Open-ILS/src/perlmods/OpenILS/Application/Vandelay.pm 2010-09-06 07:45:28 UTC (rev 17493)
@@ -541,6 +541,13 @@
my %queues;
my @ingest_queue;
+ my %bib_sources;
+ my $editor = new_editor();
+ my $sources = $editor->search_config_bib_source({id => {'!=' => undef}});
+ foreach my $src (@$sources) {
+ $bib_sources{$src->id} = $src->source;
+ }
+
my $ingest_ses = OpenSRF::AppSession->connect('open-ils.ingest');
for my $rec_id (@$rec_ids) {
@@ -570,11 +577,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); #$rec->bib_source
+ $e, $overlay_target, $rec->marc, $bib_sources{$rec->bib_source});
} else {
$logger->info("vl: importing new record");
$record = OpenILS::Application::Cat::BibCommon->biblio_record_xml_import(
- $e, $rec->marc); #$rec->bib_source
+ $e, $rec->marc, $bib_sources{$rec->bib_source});
}
if($U->event_code($record)) {
More information about the open-ils-commits
mailing list