Fix/marc_sort.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Importer/MARC/Line.pm ↑ Summary Fix/marc_decode_dollar_subfields.pm »
1 package Catmandu::Fix::marc_sort;
2  
3 1 ▶use Catmandu::Sane;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Catmandu::MARC;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '1.33';
8  
9 2 ▶sub fix {
Subroutine fix: called CC=1 SCAR=0.0
Pod undocumented
10 2 my ( $self, $data ) = @_;
11 2 return Catmandu::MARC->instance->marc_sort($data);
12 }
13  
14 =head1 NAME
15  
16 Catmandu::Fix::marc_sort - sort MARC record fields by tag
17  
18 =head1 SYNOPSIS
19  
20 # Sort MARC record fields by tag
21 marc_sort()
22  
23 =head1 DESCRIPTION
24  
25 Sort MARC record fields by tag.
26  
27 =head1 METHODS
28  
29 =head2 marc_sort()
30  
31 If you added new fields to a MARC record with L<Catmandu::Fix::marc_add> or L<Catmandu::Fix::marc_paste>, use I<marc_sort> to sort them by tag.
32  
33 =head1 SEE ALSO
34  
35 L<Catmandu::Fix::marc_add>,
36 L<Catmandu::Fix::marc_copy>,
37 L<Catmandu::Fix::marc_cut>,
38 L<Catmandu::Fix::marc_paste>
39  
40 =cut
41  
42 1 1;
« Importer/MARC/Line.pm ↑ Summary Fix/marc_decode_dollar_subfields.pm »