added -v to dump script which will display erased records and empty subfields
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 18 May 2007 21:16:43 +0000 (21:16 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 18 May 2007 21:16:43 +0000 (21:16 +0000)
git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@71 4670fa4d-42ec-0310-ab5b-a66af6943492

scripts/dump_isisdb.pl

index fe7c98c..c6f47ba 100755 (executable)
@@ -3,7 +3,7 @@
 use strict;
 use blib;
 
 use strict;
 use blib;
 
-use Biblio::Isis;
+use Biblio::Isis 0.24;
 use Getopt::Std;
 
 BEGIN {
 use Getopt::Std;
 
 BEGIN {
@@ -17,15 +17,16 @@ BEGIN {
 }
 
 my %opt;
 }
 
 my %opt;
-getopts('do:l:', \%opt);
+getopts('do:l:v', \%opt);
 
 
-my $isisdb = shift @ARGV || die "usage: $0 [-o offset] [-l limit] [-d] /path/to/isis/BIBL\n";
+my $isisdb = shift @ARGV || die "usage: $0 [-v] [-o offset] [-l limit] [-d] /path/to/isis/BIBL\n";
 
 my $isis = Biblio::Isis->new (
        isisdb => $isisdb,
        debug => $opt{'d'} ? 2 : 0,
 
 my $isis = Biblio::Isis->new (
        isisdb => $isisdb,
        debug => $opt{'d'} ? 2 : 0,
-       include_deleted => 1,
+       include_deleted => $opt{'v'},
 #      read_fdt => 1,
 #      read_fdt => 1,
+       ignore_empty_subfields => $opt{'v'} ? 0 : 1,
 );
 
 print "rows: ",$isis->count,"\n\n";
 );
 
 print "rows: ",$isis->count,"\n\n";