1.001 changed sample detail format to one which can be dumped directly into a dokuwik...
authorShawn Boyette <sboyette@esilibrary.com>
Wed, 27 May 2009 17:01:29 +0000 (17:01 +0000)
committerShawn Boyette <sboyette@esilibrary.com>
Wed, 27 May 2009 17:01:29 +0000 (17:01 +0000)
extract_holdings

index 22bc9c3..913aba1 100755 (executable)
@@ -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;
 }