From e7e57c0546ad29123502edb73a1e59fa8c6aa4b3 Mon Sep 17 00:00:00 2001 From: Shawn Boyette Date: Wed, 27 May 2009 17:01:29 +0000 Subject: [PATCH] 1.001 changed sample detail format to one which can be dumped directly into a dokuwiki page --- extract_holdings | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) 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; } -- 1.7.2.5