line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::PAIA::Command::cancel; |
2
|
4
|
|
|
4
|
|
33968
|
use strict; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
133
|
|
3
|
4
|
|
|
4
|
|
38
|
use v5.10; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
176
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.30'; |
6
|
|
|
|
|
|
|
|
7
|
4
|
|
|
4
|
|
13
|
use parent 'App::PAIA::Command'; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
38
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub usage_desc { |
10
|
0
|
|
|
0
|
1
|
|
"%c cancel %o URI [item=URI] [edition=URI] ..." |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub _execute { |
14
|
0
|
|
|
0
|
|
|
my ($self, $opt, $args) = @_; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
my @docs = $self->uri_list(@$args); |
17
|
|
|
|
|
|
|
|
18
|
0
|
0
|
|
|
|
|
$self->usage_error("Missing document URIs to cancel") |
19
|
|
|
|
|
|
|
unless @docs; |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
|
|
|
$self->core_request( 'POST', 'cancel', { doc => \@docs } ); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
__END__ |