[open-ils-commits] r15196 - trunk/Open-ILS/src/extras/import (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 18 15:16:01 EST 2009


Author: dbs
Date: 2009-12-18 15:15:57 -0500 (Fri, 18 Dec 2009)
New Revision: 15196

Modified:
   trunk/Open-ILS/src/extras/import/marc2sre.pl
Log:
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).


Modified: trunk/Open-ILS/src/extras/import/marc2sre.pl
===================================================================
--- trunk/Open-ILS/src/extras/import/marc2sre.pl	2009-12-18 20:10:18 UTC (rev 15195)
+++ trunk/Open-ILS/src/extras/import/marc2sre.pl	2009-12-18 20:15:57 UTC (rev 15196)
@@ -29,8 +29,8 @@
 	('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,



More information about the open-ils-commits mailing list