NAME
Koha::Contrib::Tamil::Biblio::Dumper - Class dumping a Koha Catalog
VERSION
version 0.073
SYNOPSIS
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();
ATTRIBUTES
file
Name of the file in which biblio records are exported. By default dump.mrc
.
query
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
.
convert
A function which take in parameter a MARC::Moose::Record biblio record, and returns a converted record.
formater
Type of formater used to write in file file. Default value is marcxml
. Available values are: iso2709
, marcxml
, text
, json
, yaml
, json
.
verbose
Verbosity. By default 0 (false).
AUTHOR
Frédéric Demians <f.demians@tamil.fr>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2024 by Fréderic Démians.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007