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 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.072';
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__
35  
36 =pod
37  
38 =encoding UTF-8
39  
40 =head1 NAME
41  
42 Koha::Contrib::Tamil::RecordWriter::File::Iso2709 - ISO2709 MARC records writer
43  
44 =head1 VERSION
45  
46 version 0.072
47  
48 =head1 AUTHOR
49  
50 Frédéric Demians <f.demians@tamil.fr>
51  
52 =head1 COPYRIGHT AND LICENSE
53  
54 This software is Copyright (c) 2023 by Fréderic Démians.
55  
56 This is free software, licensed under:
57  
58 The GNU General Public License, Version 3, June 2007
59  
60 =cut