line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
our $VERSION = '0.15'; |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use Catmandu::Sane; |
5
|
1
|
|
|
1
|
|
351605
|
use Moo; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
6
|
|
6
|
1
|
|
|
1
|
|
154
|
use Business::ISSN; |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
6
|
|
7
|
1
|
|
|
1
|
|
660
|
use Catmandu::Fix::Has; |
|
1
|
|
|
|
|
1259
|
|
|
1
|
|
|
|
|
35
|
|
8
|
1
|
|
|
1
|
|
6
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
9
|
|
|
|
|
|
|
has path => (fix_arg => 1); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
with 'Catmandu::Fix::Condition::SimpleAllTest'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
my ($self, $var, $parser) = @_; |
14
|
|
|
|
|
|
|
"(is_value(${var}) && Business::ISSN->new(${var}) && Business::ISSN->new(${var})->is_valid)"; |
15
|
4
|
|
|
4
|
0
|
22801
|
} |
16
|
4
|
|
|
|
|
18
|
|
17
|
|
|
|
|
|
|
=head1 NAME |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Catmandu::Fix::Condition::is_valid_issn - condition on validity of issn numbers |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 SYNOPSIS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
if is_valid_issn(issn_field) |
24
|
|
|
|
|
|
|
... |
25
|
|
|
|
|
|
|
else |
26
|
|
|
|
|
|
|
... |
27
|
|
|
|
|
|
|
end |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SEE ALSO |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
L<Catmandu::Fix> |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |