| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Catmandu::AlephX::Op::CircStatus; |
|
2
|
1
|
|
|
1
|
|
79455
|
use Catmandu::Sane; |
|
|
1
|
|
|
|
|
151374
|
|
|
|
1
|
|
|
|
|
6
|
|
|
3
|
1
|
|
|
1
|
|
268
|
use Catmandu::Util qw(:check); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
234
|
|
|
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 item_data => ( |
|
11
|
|
|
|
|
|
|
is => 'ro', |
|
12
|
|
|
|
|
|
|
isa => sub { check_array_ref($_[0]); } |
|
13
|
|
|
|
|
|
|
); |
|
14
|
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
0
|
|
sub op { 'circ-status' } |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub parse { |
|
18
|
0
|
|
|
0
|
0
|
|
my($class,$str_ref) = @_; |
|
19
|
0
|
|
|
|
|
|
my $xpath = xpath($str_ref); |
|
20
|
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
my $op = op(); |
|
22
|
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my @item_data; |
|
24
|
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
for my $i($xpath->find("/$op/item-data")->get_nodelist()){ |
|
26
|
0
|
|
|
|
|
|
push @item_data,get_children($i,1); |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->new( |
|
30
|
0
|
|
|
|
|
|
item_data => \@item_data, |
|
31
|
|
|
|
|
|
|
session_id => $xpath->findvalue("/$op/session-id"), |
|
32
|
|
|
|
|
|
|
errors => $class->parse_errors($xpath), |
|
33
|
|
|
|
|
|
|
content_ref => $str_ref |
|
34
|
|
|
|
|
|
|
); |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |