added debug output which displays raw structures
[Biblio-Isis] / scripts / dump_isis.pl
1 #!/usr/bin/perl -w
2
3 use strict;
4 use blib;
5
6 use IsisDB;
7 use Data::Dumper;
8
9 my $isisdb = shift @ARGV || '/data/isis_data/ps/LIBRI/LIBRI',
10 my $debug = shift @ARGV;
11
12 my $isis = IsisDB->new (
13         isisdb => $isisdb,
14         debug => $debug,
15         include_deleted => 1,
16 );
17
18 print "rows: ",$isis->{'maxmfn'},"\n\n";
19
20 for(my $mfn = 1; $mfn <= $isis->{'maxmfn'}; $mfn++) {
21         print STDERR Dumper($isis->to_hash($mfn)) if ($debug);
22         print $isis->to_ascii($mfn),"\n";
23
24 }
25