| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package MARC::Validator::Filter::Plugin::RDA; |
|
2
|
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
386510
|
use base qw(MARC::Validator::Filter::Abstract); |
|
|
5
|
|
|
|
|
11
|
|
|
|
5
|
|
|
|
|
3176
|
|
|
4
|
5
|
|
|
5
|
|
34
|
use strict; |
|
|
5
|
|
|
|
|
10
|
|
|
|
5
|
|
|
|
|
138
|
|
|
5
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
|
5
|
|
|
|
|
14
|
|
|
|
5
|
|
|
|
|
1147
|
|
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = 0.01; |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub name { |
|
10
|
1
|
|
|
1
|
1
|
7
|
my $self = shift; |
|
11
|
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
9
|
return 'rda'; |
|
13
|
|
|
|
|
|
|
} |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub process { |
|
16
|
4
|
|
|
4
|
1
|
25990
|
my ($self, $marc_record) = @_; |
|
17
|
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
18
|
my $field_040 = $marc_record->field('040'); |
|
19
|
4
|
100
|
|
|
|
439
|
if (! defined $field_040) { |
|
20
|
1
|
|
|
|
|
5
|
return; |
|
21
|
|
|
|
|
|
|
} |
|
22
|
|
|
|
|
|
|
|
|
23
|
3
|
|
|
|
|
14
|
my $desc_conventions = $field_040->subfield('e'); |
|
24
|
3
|
100
|
|
|
|
122
|
if (! defined $desc_conventions) { |
|
25
|
1
|
|
|
|
|
5
|
return; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
2
|
100
|
|
|
|
8
|
if ($desc_conventions ne 'rda') { |
|
29
|
1
|
|
|
|
|
5
|
return; |
|
30
|
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
|
|
32
|
1
|
|
|
|
|
5
|
return 'rda'; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |