added debug output which displays raw structures
[Biblio-Isis] / scripts / dump_isis.pl
index 9537987..ea59d0f 100755 (executable)
@@ -6,15 +6,19 @@ use blib;
 use IsisDB;
 use Data::Dumper;
 
+my $isisdb = shift @ARGV || '/data/isis_data/ps/LIBRI/LIBRI',
+my $debug = shift @ARGV;
+
 my $isis = IsisDB->new (
-       isisdb => shift @ARGV || '/data/isis_data/ps/LIBRI/LIBRI',
-       debug => shift @ARGV,
+       isisdb => $isisdb,
+       debug => $debug,
        include_deleted => 1,
 );
 
 print "rows: ",$isis->{'maxmfn'},"\n\n";
 
 for(my $mfn = 1; $mfn <= $isis->{'maxmfn'}; $mfn++) {
+       print STDERR Dumper($isis->to_hash($mfn)) if ($debug);
        print $isis->to_ascii($mfn),"\n";
 
 }