From 60f7728353e289e9d11ddec830c29dd571bf0b52 Mon Sep 17 00:00:00 2001 From: miker Date: Sat, 2 Jun 2007 01:09:44 +0000 Subject: [PATCH] removing the need to connect to the opensrf network git-svn-id: svn://svn.open-ils.org/ILS/trunk@7394 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/extras/import/marc2bre.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/extras/import/marc2bre.pl b/Open-ILS/src/extras/import/marc2bre.pl index 163acad269..ae8e4bc623 100755 --- a/Open-ILS/src/extras/import/marc2bre.pl +++ b/Open-ILS/src/extras/import/marc2bre.pl @@ -27,8 +27,8 @@ use MARC::Charset; #MARC::Charset->ignore_errors(1); -my ($id_field, $recid, $user, $config, $marctype, $keyfile, $dontuse_file, $enc, $force_enc, @files, @trash_fields) = - ('', 1, 1, '/openils/conf/bootstrap.conf', 'USMARC'); +my ($id_field, $recid, $user, $config, $idlfile, $marctype, $keyfile, $dontuse_file, $enc, $force_enc, @files, @trash_fields) = + ('', 1, 1, '/openils/conf/bootstrap.conf', '/openils/conf/fm_IDL.xml', 'USMARC'); GetOptions( 'marctype=s' => \$marctype, @@ -41,6 +41,7 @@ GetOptions( 'config=s' => \$config, 'file=s' => \@files, 'trash=s' => \@trash_fields, + 'xml_idl=s' => \$idlfile, 'dontuse=s' => \$dontuse_file ); @@ -72,8 +73,8 @@ my %source_map = ( ); -OpenSRF::System->bootstrap_client( config_file => $config ); -Fieldmapper->import(IDL => OpenSRF::Utils::SettingsClient->new->config_value("IDL")); + +Fieldmapper->import(IDL => $idlfile); my %keymap; if ($keyfile) { -- 2.11.0