line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MARC::Moose::Formater::Yaml; |
2
|
|
|
|
|
|
|
# ABSTRACT: Marc record formater into YAML representation |
3
|
|
|
|
|
|
|
$MARC::Moose::Formater::Yaml::VERSION = '1.0.44'; |
4
|
4
|
|
|
4
|
|
27
|
use Moose; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
31
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'MARC::Moose::Formater'; |
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
25625
|
use MARC::Moose::Field::Control; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
89
|
|
9
|
4
|
|
|
4
|
|
21
|
use MARC::Moose::Field::Std; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
128
|
|
10
|
4
|
|
|
4
|
|
2382
|
use YAML::Syck; |
|
4
|
|
|
|
|
8126
|
|
|
4
|
|
|
|
|
546
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
$YAML::Syck::ImplicitUnicode = 1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
override 'format' => sub { |
16
|
|
|
|
|
|
|
my ($self, $record) = @_; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
return Dump($record); |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
MARC::Moose::Formater::Yaml - Marc record formater into YAML representation |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 1.0.44 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHOR |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Frédéric Demians <f.demians@tamil.fr> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Frédéric Demians. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
48
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=cut |