From: dbs Date: Fri, 18 Dec 2009 20:15:57 +0000 (+0000) Subject: Apply patch from Warren Layton to fix marc2sre.pl options X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2e4716bcdbfb5f3d140c6119e5fd221ee550d5f9;p=evergreen%2Fmasslnc.git Apply patch from Warren Layton to fix marc2sre.pl options Attached is a small patch (against trunk) which fixes the GetOptions in marc2sre.xml. It fixes a small bug with the "idsubfield" parameter, and changes "idfield" to accept a string instead of an int (to match the behaviour of marc2bre.pl). git-svn-id: svn://svn.open-ils.org/ILS/trunk@15196 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/extras/import/marc2sre.pl b/Open-ILS/src/extras/import/marc2sre.pl index 49b3ba7085..26121ba1fa 100755 --- a/Open-ILS/src/extras/import/marc2sre.pl +++ b/Open-ILS/src/extras/import/marc2sre.pl @@ -29,8 +29,8 @@ my ($idfield, $count, $user, $password, $config, $marctype, $idsubfield, @files, ('001', 1, 'admin', 'open-ils', '/openils/conf/opensrf_core.xml', 'USMARC'); GetOptions( - 'idfield=i' => \$idfield, - 'idsubfield=a' => \$idsubfield, + 'idfield=s' => \$idfield, + 'idsubfield=s' => \$idsubfield, 'startid=i' => \$count, 'user=s' => \$user, 'password=s' => \$password,