projects
/
MARC-Fast
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix repeatable subfields in to_hash
[MARC-Fast]
/
scripts
/
dump_fastmarc.pl
diff --git
a/scripts/dump_fastmarc.pl
b/scripts/dump_fastmarc.pl
index
fc6317c
..
f9e96f2
100755
(executable)
--- a/
scripts/dump_fastmarc.pl
+++ b/
scripts/dump_fastmarc.pl
@@
-1,7
+1,7
@@
#!/usr/bin/perl -w
use strict;
#!/usr/bin/perl -w
use strict;
-use
blib
;
+use
lib 'lib'
;
use MARC::Fast;
use Getopt::Std;
use MARC::Fast;
use Getopt::Std;
@@
-69,5
+69,5
@@
for my $mfn ($min .. $max) {
print "REC $mfn\n";
print $marc->last_leader,"\n";
print $marc->to_ascii($mfn),"\n";
print "REC $mfn\n";
print $marc->last_leader,"\n";
print $marc->to_ascii($mfn),"\n";
- print "hash is ",dump($marc->to_hash($mfn)) if ($opt{h});
+ print "hash is ",dump($marc->to_hash($mfn
, include_subfields => 1
)) if ($opt{h});
}
}