Tamil/RecordWriter/File/Iso2709.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BUILD
2.0
write
2.0
BEGIN
2.0
CRAP 2.0
1 package Koha::Contrib::Tamil::RecordWriter::File::Iso2709;
2 $Koha::Contrib::Tamil::RecordWriter::File::Iso2709::VERSION = '0.074';
3 #ABSTRACT: ISO2709 MARC records writer
4 use Moose;
5  
6 with 'MooseX::RW::Writer::File';
7  
8 use Carp;
9 use MARC::Batch;
10 use MARC::Record;
11  
12  
13 sub BUILD {
14 my $self = shift;
15  
16 #FIXME: Encore les joies de l'utf8 et du MARC
17 #binmode( $self->fh, ':utf8' );
18 }
19  
20  
21 sub write {
22 my ( $self, $record ) = @_;
23  
24 $self->SUPER::write();
25  
26 my $fh = $self->fh;
27 print $fh $record->as_usmarc();
28 }
29  
30 __PACKAGE__->meta->make_immutable;
31  
32 1
33  
34 __END__