Koha::Contrib::Tamil::Biblio::Dumper - Class dumping a Koha Catalog
version 0.071
my $converter = sub { # Delete some fields $record->fields( [ grep { $_->tag !~ /012|014|071|099/ } @{$record->fields} ] ); return $record; }; my $dumper = Koha::Contrib::Tamil::Biblio::Dumper->new( file => 'biblio.mrc', branches => [ qw/ MAIN ANNEX / ], query => "SELECT biblionumber FROM biblio WHERE datecreated LIKE '2014-11%'" convert => $converter, formater => 'iso2709', verbose => 1, ); $dumper->run();
Name of the file in which biblio records are exported. By default dump.mrc.
dump.mrc
Optional query to select biblio records to dump. The query must return a list of biblio records biblionumber. For example: SELECT biblionumber FROM biblio WHERE biblionumber BETWEEN 1 AND 100.
biblionumber
SELECT biblionumber FROM biblio WHERE biblionumber BETWEEN 1 AND 100
A function which take in parameter a MARC::Moose::Record biblio record, and returns a converted record.
Type of formater used to write in file file. Default value is marcxml. Available values are: iso2709, marcxml, text, json, yaml, json.
marcxml
iso2709
text
json
yaml
Verbosity. By default 0 (false).
Frédéric Demians <f.demians@tamil.fr>
This software is Copyright (c) 2022 by Fréderic Démians.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install Koha::Contrib::Tamil, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Koha::Contrib::Tamil
CPAN shell
perl -MCPAN -e shell install Koha::Contrib::Tamil
For more information on module installation, please visit the detailed CPAN module installation guide.