removing the need to connect to the opensrf network
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Jun 2007 01:09:44 +0000 (01:09 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Jun 2007 01:09:44 +0000 (01:09 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@7394 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/import/marc2bre.pl

index 163acad..ae8e4bc 100755 (executable)
@@ -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) {