line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTTP::OAI::ListMetadataFormats; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
@ISA = qw( HTTP::OAI::PartialList ); |
4
|
|
|
|
|
|
|
|
5
|
11
|
|
|
11
|
|
69
|
use strict; |
|
11
|
|
|
|
|
19
|
|
|
11
|
|
|
|
|
2453
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '4.12'; |
8
|
|
|
|
|
|
|
|
9
|
3
|
|
|
3
|
1
|
25
|
sub metadataFormat { shift->item(@_) } |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub start_element { |
12
|
9
|
|
|
9
|
1
|
73
|
my ($self,$hash,$r) = @_; |
13
|
9
|
100
|
|
|
|
22
|
if( !$self->{'in_mdf'} ) { |
14
|
3
|
100
|
|
|
|
11
|
if( lc($hash->{LocalName}) eq 'metadataformat' ) { |
15
|
2
|
|
|
|
|
11
|
$self->set_handler(my $mdf = HTTP::OAI::MetadataFormat->new); |
16
|
2
|
|
|
|
|
25
|
$self->metadataFormat($mdf); |
17
|
2
|
|
|
|
|
3
|
$self->{'in_mdf'} = $hash->{Depth}; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
9
|
|
|
|
|
22
|
$self->SUPER::start_element($hash,$r); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub end_element { |
24
|
9
|
|
|
9
|
1
|
61
|
my ($self,$hash,$r) = @_; |
25
|
9
|
|
|
|
|
26
|
$self->SUPER::end_element($hash,$r); |
26
|
9
|
100
|
|
|
|
28
|
if( $self->{'in_mdf'} == $hash->{Depth} ) { |
27
|
2
|
50
|
|
|
|
6
|
if( lc($hash->{LocalName}) eq 'metadataformat' ) { |
28
|
2
|
|
|
|
|
9
|
HTTP::OAI::Debug::trace( "metadataFormat: " . $self->get_handler->metadataPrefix ); |
29
|
2
|
|
|
|
|
7
|
$self->set_handler( undef ); |
30
|
2
|
|
|
|
|
28
|
$self->{'in_mdf'} = 0; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |