Koha-Contrib-Tamil
view release on metacpan or search on metacpan
bin/koha-dump-biblio view on Meta::CPAN
#!/usr/bin/perl
# PODNAME: koha-dump-biblio
# ABSTRACT: Dump a Koha Catalog
use Modern::Perl;
use Pod::Usage;
use Getopt::Long;
use Koha::Contrib::Tamil::Biblio::Dumper;
my $verbose = 0;
my $help = 0;
my $decode = 0;
my $formater = 'iso2709';
my @branches;
my $query = '';
GetOptions(
'verbose|v' => \$verbose,
'branch|b=s' => \@branches,
'query|q=s' => \$query,
'formater|f=s' => \$formater,
'decode|d' => \$decode,
'help|h' => \$help,
);
sub usage {
pod2usage( -verbose => 2 );
exit;
}
usage() if $help;
my $file = $ARGV[0] // 'dump.mrc';
my $dumper = Koha::Contrib::Tamil::Biblio::Dumper->new(
verbose => $verbose,
file => $file,
branches => \@branches,
query => $query,
formater => $formater,
decode => $decode,
);
$dumper->run();
__END__
=pod
=encoding UTF-8
=head1 NAME
koha-dump-biblio - Dump a Koha Catalog
=head1 VERSION
version 0.074
=head1 DESCRIPTION
With this script you can export a Koha Catalog in whole or in part. Without
parameter, the whole catalog is exported in an ISO2709 file named dump.mrc.
Playing with parameters, you can:
( run in 0.831 second using v1.01-cache-2.11-cpan-5c0b1e786e0 )