projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
9b318b7
)
turns out the inds in empty datafields won't ALWAYS be spaces
author
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 17 Sep 2008 23:15:12 +0000 (23:15 +0000)
committer
Shawn Boyette
<sboyette@esilibrary.com>
Wed, 17 Sep 2008 23:15:12 +0000 (23:15 +0000)
yaz-cleanup
patch
|
blob
|
history
diff --git
a/yaz-cleanup
b/yaz-cleanup
index
a6ebf60
..
fc08740
100755
(executable)
--- a/
yaz-cleanup
+++ b/
yaz-cleanup
@@
-6,7
+6,7
@@
open NUMARC, '>', 'incoming.clean.marc.xml';
$line1 = <MARC>;
while ($line2 = <MARC>) {
- if ($line1 =~ m/<datafield tag="..." ind1=" " ind2=" ">/) {
+ if ($line1 =~ m/<datafield tag="..." ind1="." ind2=".">/) {
if ($line2 =~ m|</datafield>|) {
$line1 = <MARC>;
next;