| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package XML::NewsML_G2::Role::Writer::News_Item_Audio; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
877
|
use Moose::Role; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
10
|
|
|
4
|
1
|
|
|
1
|
|
6691
|
use namespace::autoclean; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
with 'XML::NewsML_G2::Role::Writer'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
around '_build_g2_catalog_schemes' => sub { |
|
9
|
|
|
|
|
|
|
my ( $orig, $self, @args ) = @_; |
|
10
|
|
|
|
|
|
|
my $result = $self->$orig(@args); |
|
11
|
|
|
|
|
|
|
$result->{rnd} = undef; |
|
12
|
|
|
|
|
|
|
return $result; |
|
13
|
|
|
|
|
|
|
}; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
after '_create_remote_content' => sub { |
|
16
|
|
|
|
|
|
|
my ( $self, $root, $audio ) = @_; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
for (qw/size duration audiosamplerate/) { |
|
19
|
|
|
|
|
|
|
$root->setAttribute( $_, $audio->$_ ) if defined $audio->$_; |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my $audiochannels = |
|
23
|
|
|
|
|
|
|
$self->scheme_manager->build_qcode( 'adc', $audio->audiochannels ); |
|
24
|
|
|
|
|
|
|
$root->setAttribute( 'audiochannels', $audiochannels ) if $audiochannels; |
|
25
|
|
|
|
|
|
|
return; |
|
26
|
|
|
|
|
|
|
}; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
__END__ |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
XML::NewsML_G2::Role::Writer::News_Item_Audio - Role for writing news items of type 'audio' |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
This module serves as a role for all NewsML-G2 writer classes and get automatically applied when the according news item type is written |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 AUTHOR |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Mario Paumann C<< <mario.paumann@apa.at> >> |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 LICENCE AND COPYRIGHT |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Copyright (c) 2014, APA-IT. All rights reserved. |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
See L<XML::NewsML_G2> for the license. |