[open-ils-commits] r372 - conifer/trunk/tools/migration-scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 21 00:22:06 EDT 2009
Author: dbs
Date: 2009-04-21 00:22:03 -0400 (Tue, 21 Apr 2009)
New Revision: 372
Modified:
conifer/trunk/tools/migration-scripts/fix_bad_marcxml.pl
Log:
Windsor's MARC has one consistent flaw, apparently
Modified: conifer/trunk/tools/migration-scripts/fix_bad_marcxml.pl
===================================================================
--- conifer/trunk/tools/migration-scripts/fix_bad_marcxml.pl 2009-04-21 03:03:16 UTC (rev 371)
+++ conifer/trunk/tools/migration-scripts/fix_bad_marcxml.pl 2009-04-21 04:22:03 UTC (rev 372)
@@ -42,6 +42,9 @@
} elsif ($_ =~ m#<subfield code="&">#o) {
print STDERR "Bad subfield code & at line $lineno of file $file\n";
$_ =~ s{<subfield code="&">}{<subfield code="Z">}o;
+ } elsif ($_ =~ m#<datafield tag="6" ind1=".">#o) {
+ print STDERR "Bad datafield tag 6 at line $lineno of file $file\n";
+ $_ =~ s{<datafield tag="6" ind1=".">}{<datafield tag="600" ind1=" ">}o;
}
$lastline = $_;
More information about the open-ils-commits
mailing list