projects
/
MARC-Fast
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added to_ascii to be more like Biblio::ISIS API [0.05]
[MARC-Fast]
/
scripts
/
dump_fastmarc.pl
diff --git
a/scripts/dump_fastmarc.pl
b/scripts/dump_fastmarc.pl
index
b1d8702
..
1f0605d
100755
(executable)
--- a/
scripts/dump_fastmarc.pl
+++ b/
scripts/dump_fastmarc.pl
@@
-67,12
+67,6
@@
for my $mfn ($min .. $max) {
my $rec = $marc->fetch($mfn) || next;
print "rec is ",Dumper($rec) if ($opt{d});
print "REC $mfn\n";
my $rec = $marc->fetch($mfn) || next;
print "rec is ",Dumper($rec) if ($opt{d});
print "REC $mfn\n";
- foreach my $f (sort keys %{$rec}) {
- my $dump = join('', @{ $rec->{$f} });
- $dump =~ s/\x1e$//;
- $dump =~ s/\x1f/\$/g;
- print "$f\t$dump\n";
- }
- print "\n";
+ print $marc->to_ascii($mfn),"\n";
print "hash is ",Dumper($marc->to_hash($mfn)) if ($opt{h});
}
print "hash is ",Dumper($marc->to_hash($mfn)) if ($opt{h});
}