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.45'; |
4
|
4
|
|
|
4
|
|
30
|
use Moose; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
24
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
extends 'MARC::Moose::Formater'; |
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
26123
|
use MARC::Moose::Field::Control; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
107
|
|
9
|
4
|
|
|
4
|
|
22
|
use MARC::Moose::Field::Std; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
113
|
|
10
|
4
|
|
|
4
|
|
2302
|
use YAML::Syck; |
|
4
|
|
|
|
|
8435
|
|
|
4
|
|
|
|
|
567
|
|
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.45 |
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) 2022 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 |