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