line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::GetHolding; |
2
|
1
|
|
|
1
|
|
83741
|
use Catmandu::Sane; |
|
1
|
|
|
|
|
160354
|
|
|
1
|
|
|
|
|
7
|
|
3
|
1
|
|
|
1
|
|
252
|
use Catmandu::Util qw(:check :is); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
366
|
|
4
|
1
|
|
|
1
|
|
6
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = "1.071"; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
with('Catmandu::AlephX::Response'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has cdl_holdings => ( |
11
|
|
|
|
|
|
|
is => 'ro', |
12
|
|
|
|
|
|
|
lazy => 1, |
13
|
|
|
|
|
|
|
isa => sub{ |
14
|
|
|
|
|
|
|
check_array_ref($_[0]); |
15
|
|
|
|
|
|
|
}, |
16
|
|
|
|
|
|
|
default => sub { |
17
|
|
|
|
|
|
|
[]; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
); |
20
|
0
|
|
|
0
|
0
|
|
sub op { 'get-holding' } |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub parse { |
23
|
0
|
|
|
0
|
0
|
|
my($class,$str_ref) = @_; |
24
|
0
|
|
|
|
|
|
my $xpath = xpath($str_ref); |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
my $op = op(); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
my @cdl_holdings; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
for my $ch($xpath->find("/$op/cdl-holdings")->get_nodelist()){ |
31
|
0
|
|
|
|
|
|
push @cdl_holdings,get_children($ch,1); |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->new( |
35
|
0
|
|
|
|
|
|
cdl_holdings => \@cdl_holdings, |
36
|
|
|
|
|
|
|
session_id => $xpath->findvalue("/$op/session-id"), |
37
|
|
|
|
|
|
|
errors => $class->parse_errors($xpath), |
38
|
|
|
|
|
|
|
content_ref => $str_ref |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |