projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ba2286c
)
annotated record dumps added
author
Shawn Boyette
<sboyette@esilibrary.com>
Fri, 26 Sep 2008 17:08:39 +0000 (17:08 +0000)
committer
Shawn Boyette
<sboyette@esilibrary.com>
Fri, 26 Sep 2008 17:08:39 +0000 (17:08 +0000)
marc-cleanup
patch
|
blob
|
history
diff --git
a/marc-cleanup
b/marc-cleanup
index
caa8647
..
e5dbe4c
100755
(executable)
--- a/
marc-cleanup
+++ b/
marc-cleanup
@@
-171,6
+171,8
@@
sub getline {
sub write_record {
my ($FH) = @_;
print $FH '<collection xmlns="http://www.loc.gov/MARC21/slim">',"\n";
+ print $FH '<!-- ', $reccontext{explanation}, " -->\n"
+ if(defined $reccontext{explanation});
print $FH @record;
print $FH "</collection>\n";
}
@@
-220,6
+222,8
@@
sub kill_line {
}
sub dump_record {
+ my ($line_in, @explanation) = @_;
+ $reccontext{explanation} = join(' ', @explanation);
my $line = <MARC>; $count++;
update_linecontext();
until ($line =~ m|</record>|) {