From 951f761aa6cc1d1d178778b81dd52f63c0c436da Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 18 May 2007 21:16:43 +0000 Subject: [PATCH] added -v to dump script which will display erased records and empty subfields git-svn-id: file:///home/dpavlin/svn/Biblio-Isis/trunk@71 4670fa4d-42ec-0310-ab5b-a66af6943492 --- scripts/dump_isisdb.pl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/dump_isisdb.pl b/scripts/dump_isisdb.pl index fe7c98c..c6f47ba 100755 --- a/scripts/dump_isisdb.pl +++ b/scripts/dump_isisdb.pl @@ -3,7 +3,7 @@ use strict; use blib; -use Biblio::Isis; +use Biblio::Isis 0.24; use Getopt::Std; BEGIN { @@ -17,15 +17,16 @@ BEGIN { } 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, - include_deleted => 1, + include_deleted => $opt{'v'}, # read_fdt => 1, + ignore_empty_subfields => $opt{'v'} ? 0 : 1, ); print "rows: ",$isis->count,"\n\n"; -- 2.20.1