X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=extract_holdings;h=913aba124f1d9f0184b80f590403c525ef4b93f8;hp=22bc9c3185fc43e0df7ebbdc1afa18758b1ed70b;hb=e7e57c0546ad29123502edb73a1e59fa8c6aa4b3;hpb=5255c177b00bddfa09fb2d8166ca705f917ee284 diff --git a/extract_holdings b/extract_holdings index 22bc9c3..913aba1 100755 --- a/extract_holdings +++ b/extract_holdings @@ -6,7 +6,7 @@ use Getopt::Long; use Equinox::Migration::MapDrivenMARCXMLProc; use Equinox::Migration::MARCXMLSampler; -my $VERSION = '1.000'; +my $VERSION = '1.001'; my $c = initialize(); $| = 1; @@ -109,17 +109,15 @@ sub dump_sample_detail { open DETAIL, '>', ($c->{prefix} . "-HOLDINGS-DETAIL.txt"); select DETAIL; for my $tag (sort keys %{$tags}) { - print ">>>>> TAG $tag\n"; + print ">>>>> TAG $tag\n\n"; for my $subkey (sort keys %{$tags->{$tag}}) { my $sub = $tags->{$tag}{$subkey}; - print " Subfield: $subkey\n"; - print " Sample: '", $sub->{value}, "'\n"; - print " Count: ", $sub->{count}, " in ", $sub->{tcnt}, " tags\n\n"; - #print "(", int($sub->{count} / $sub->{rcnt}), "%)\n"; + print "|| $subkey | ", $sub->{value}, " | ", + $sub->{count}, "/", $sub->{tcnt}, " | ||\n"; } } - select STDOUT; print "\n"; + select STDOUT; close DETAIL; }