projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
f88836f
)
improve marc_cleanup's parsing of MARCXML files
author
Galen Charlton
<gmc@esilibrary.com>
Mon, 30 Jul 2012 17:32:35 +0000 (13:32 -0400)
committer
Galen Charlton
<gmc@esilibrary.com>
Mon, 30 Jul 2012 17:32:35 +0000 (13:32 -0400)
In particular, ones produced by use of MARC::File::XML->as_xml_record(),
which inserts namespace attributes in the record element.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
marc_cleanup
patch
|
blob
|
history
diff --git
a/marc_cleanup
b/marc_cleanup
index
2c3a005
..
4d7354e
100755
(executable)
--- a/
marc_cleanup
+++ b/
marc_cleanup
@@
-316,7
+316,7
@@
sub buildrecord {
my $istrash = 0;
my $trash = $c->{trash};
- $l = <MARC> while (defined $l and $l !~ /<record>/);
+ $l = <MARC> while (defined $l and $l !~ /<record/);
return $l unless defined $l;
$c->{ricount}++;