| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package MARC::Validator::Filter; |
|
2
|
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
140616
|
use strict; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
66
|
|
|
4
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
|
2
|
|
|
|
|
6
|
|
|
|
2
|
|
|
|
|
113
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
1287
|
use Module::Pluggable require => 1; |
|
|
2
|
|
|
|
|
26962
|
|
|
|
2
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = 0.01; |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
1; |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__END__ |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=encoding utf8 |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
MARC::Validator::Filter - MARC validator filter plugins. |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use MARC::Validator::Filter; |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
my @plugins = MARC::Validator::Filter->plugins; |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 METHODS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 C<plugins> |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my @plugins = MARC::Validator::Filter->plugins; |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Get list of present plugins. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Returns list of plugin module name strings. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 EXAMPLE |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=for comment filename=plugins_list.pl |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use strict; |
|
41
|
|
|
|
|
|
|
use warnings; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use MARC::Validator::Filter; |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my @plugins = MARC::Validator::Filter->plugins; |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
if (@plugins) { |
|
48
|
|
|
|
|
|
|
print "List of plugins:\n"; |
|
49
|
|
|
|
|
|
|
foreach my $plugin (@plugins) { |
|
50
|
|
|
|
|
|
|
print "- $plugin\n"; |
|
51
|
|
|
|
|
|
|
} |
|
52
|
|
|
|
|
|
|
} else { |
|
53
|
|
|
|
|
|
|
print "No plugins.\n"; |
|
54
|
|
|
|
|
|
|
} |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
# Output like: |
|
57
|
|
|
|
|
|
|
# List of plugins: |
|
58
|
|
|
|
|
|
|
# - MARC::Validator::Filter::Plugin::AACR2 |
|
59
|
|
|
|
|
|
|
# - MARC::Validator::Filter::Plugin::Material |
|
60
|
|
|
|
|
|
|
# - MARC::Validator::Filter::Plugin::RDA |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
L<Module::Pluggable>. |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 REPOSITORY |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
L<https://github.com/michal-josef-spacek/MARC-Validator-Filter> |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 AUTHOR |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Michal Josef Špaček L<mailto:skim@cpan.org> |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
L<http://skim.cz> |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
© 2025-2026 Michal Josef Špaček |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
BSD 2-Clause License |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Development of this software has been made possible by institutional support |
|
85
|
|
|
|
|
|
|
for the long-term strategic development of the National Library of the Czech |
|
86
|
|
|
|
|
|
|
Republic as a research organization provided by the Ministry of Culture of |
|
87
|
|
|
|
|
|
|
the Czech Republic (DKRVO 2024–2028), Area 11: Linked Open Data. |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 VERSION |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
0.01 |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=cut |