Importer/OAI/Parser/oai_dc.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 2 SCAR 13.9
CC
2
Cov
0%
parse
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Catmandu::Importer::OAI::Parser::oai_dc;
2  
3 use Catmandu::Sane;
4 use Moo;
5  
6 our $VERSION = '0.21';
7  
8 sub parse {
9 my ($self,$dom) = @_;
10  
11 return undef unless defined $dom;
12  
13 my $rec = {};
14  
15 for ($dom->findnodes("./*")) {
16 my $name = $_->localName;
17 my $value = $_->textContent;
18 push(@{$rec->{$name}}, $value);
19 }
20  
21 $rec;
22 }
23  
24 1;