[open-ils-commits] r15198 - branches/rel_1_6_0/Open-ILS/src/extras/import (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Dec 18 15:17:12 EST 2009


Author: dbs
Date: 2009-12-18 15:17:08 -0500 (Fri, 18 Dec 2009)
New Revision: 15198

Modified:
   branches/rel_1_6_0/Open-ILS/src/extras/import/marc2sre.pl
Log:
Backport r15196 from trunk: 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: branches/rel_1_6_0/Open-ILS/src/extras/import/marc2sre.pl
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/extras/import/marc2sre.pl	2009-12-18 20:16:46 UTC (rev 15197)
+++ branches/rel_1_6_0/Open-ILS/src/extras/import/marc2sre.pl	2009-12-18 20:17:08 UTC (rev 15198)
@@ -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