/[Biblio-Isis]/trunk/scripts/dump_isisdb.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/scripts/dump_isisdb.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/scripts/dump_isis.pl revision 15 by dpavlin, Wed Dec 29 22:46:40 2004 UTC trunk/scripts/dump_isisdb.pl revision 36 by dpavlin, Thu Jan 6 20:48:07 2005 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use IsisDB;  use Biblio::Isis;
7  use Data::Dumper;  use Data::Dumper;
8    
9  my $isisdb = shift @ARGV || '/data/isis_data/ps/LIBRI/LIBRI',  my $isisdb = shift @ARGV || '/data/isis_data/ps/LIBRI/LIBRI',
10  my $debug = shift @ARGV;  my $debug = shift @ARGV;
11    
12  my $isis = IsisDB->new (  my $isis = Biblio::Isis->new (
13          isisdb => $isisdb,          isisdb => $isisdb,
14          debug => $debug,          debug => $debug,
15          include_deleted => 1,          include_deleted => 1,
16  #       read_fdt => 1,  #       read_fdt => 1,
17  );  );
18    
19  print "rows: ",$isis->{'maxmfn'},"\n\n";  print "rows: ",$isis->count,"\n\n";
20    
21  for(my $mfn = 1; $mfn <= $isis->{'maxmfn'}; $mfn++) {  for(my $mfn = 1; $mfn <= $isis->count; $mfn++) {
22          print STDERR Dumper($isis->to_hash($mfn)),"\n" if ($debug);          print STDERR Dumper($isis->to_hash($mfn)),"\n" if ($debug);
23          print $isis->to_ascii($mfn),"\n";          print $isis->to_ascii($mfn),"\n";
24    

Legend:
Removed from v.15  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26