Fix/marc_paste.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 96.5% 28 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Importer/MARC/Record.pm ↑ Summary Fix/marc_replace_all.pm »
1 package Catmandu::Fix::marc_paste;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Catmandu::MARC;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use Catmandu::Fix::Has;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 with 'Catmandu::Fix::Inlineable';
9  
10 1 our $VERSION = '1.33';
11  
12 1 has path => (fix_arg => 1);
13 1 has at => (fix_opt => 1);
14 1 has equals => (fix_opt => 1);
15  
16 6 ▶sub fix {
Subroutine fix: called CC=1 SCAR=0.0
Pod undocumented
17 6 my ($self, $data) = @_;
18 6 my $path = $self->path;
19 6 my $at = $self->at;
20 6 my $regex = $self->equals;
21 6 return Catmandu::MARC->instance->marc_paste($data,$path,$at,$regex);
22 }
23  
24 1 1;
25  
26 __END__
« Importer/MARC/Record.pm ↑ Summary Fix/marc_replace_all.pm »