This file is indexed.

/usr/share/perl5/Catmandu/Importer/SRU/Parser/simple.pm is in libcatmandu-sru-perl 0.039-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
=head1 NAME

Catmandu::Importer::SRU::Parser::simple - parse SRU records as simple XML

=head1 SYNOPSIS

This default record parser of L<Catmandu::Importer::SRU> transforms the SRU
response records field C<recordData> with L<XML::LibXML::Simple>. Namespaces
are stripped by default.

=head1 SEE ALSO

Use L<Catmandu::Importer::SRU::Parser::struct> for order-preserving or
mixed-content XML.

=head1 AUTHOR

Patrick Hochstenbach, C<< <patrick.hochstenbach at ugent.be> >>

Jakob Voss C<< voss@gbv.de >>

=cut
package Catmandu::Importer::SRU::Parser::simple;
use strict;
use XML::LibXML::Simple ();
use Moo;

has xmlsimple => ( is => 'ro', default => sub { XML::LibXML::Simple->new } );

sub parse {
	my ($self, $record) = @_;

    $record->{recordData} = $self->xmlsimple->XMLin(
        $record->{recordData} , KeepRoot => 1, NsStrip => 1
    );

    $record;
}

1;