Koha-Contrib-Tamil
view release on metacpan or search on metacpan
lib/Koha/Contrib/Tamil/RecordReader.pm view on Meta::CPAN
package Koha::Contrib::Tamil::RecordReader;
#ABSTRACT: Koha biblio/authority records reader
$Koha::Contrib::Tamil::RecordReader::VERSION = '0.074';
use Moose;
with 'MooseX::RW::Reader';
use Modern::Perl;
use utf8;
use Moose::Util::TypeConstraints;
use MARC::Record;
use MARC::File::XML;
use C4::Context;
use C4::Biblio qw/ GetMarcFromKohaField /;
use C4::Items qw/ Item2Marc /;
subtype 'Koha::RecordType'
=> as 'Str',
=> where { /biblio|authority/i },
=> message { "$_ is not a valid Koha::RecordType (biblio or authority" };
subtype 'Koha::RecordSelect'
=> as 'Str',
=> where { /all|queue|queue_update|queue_delete/ },
=> message {
"$_ is not a valide Koha::RecordSelect " .
"(all or queue or queue_update or queue_delete)"
};
has koha => ( is => 'rw', isa => 'Koha::Contrib::Tamil::Koha', required => 1 );
has source => (
is => 'rw',
isa => 'Koha::RecordType',
required => 1,
default => 'biblio',
);
has select => (
is => 'rw',
isa => 'Koha::RecordSelect',
required => 1,
default => 'all',
);
has xml => ( is => 'rw', isa => 'Bool', default => '0' );
has sth => ( is => 'rw' );
# Last returned record biblionumber;
has id => ( is => 'rw' );
# Items extraction required
has itemsextraction => ( is => 'rw', isa => 'Bool', default => 0 );
# Biblio records normalizer, if necessary
has normalizer => ( is => 'rw' );
# Read all records? (or queued records)
has allrecords => ( is => 'rw', isa => 'Bool', default => 1 );
# Mark as done an entry is Zebra queue
has sth_queue_done => ( is => 'rw' );
# SQL statement to get marcxml record
has sth_biblio => ( is => 'rw' );
has sth_biblio_del => ( is => 'rw' );
( run in 0.630 second using v1.01-cache-2.11-cpan-ceb78f64989 )