line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package PICA::Modification::Request; |
2
|
|
|
|
|
|
|
{ |
3
|
|
|
|
|
|
|
$PICA::Modification::Request::VERSION = '0.16'; |
4
|
|
|
|
|
|
|
} |
5
|
|
|
|
|
|
|
#ABSTRACT: Request for modification of an identified PICA+ record |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6077
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
82
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
9
|
1
|
|
|
1
|
|
9
|
use v5.10; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
137
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
6
|
use parent 'PICA::Modification'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
12
|
|
|
|
|
|
|
use Time::Stamp gmstamp => { format => 'easy', tz => '' }; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our @ATTRIBUTES = qw(id iln epn del add request creator status updated created); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
|
|
|
|
|
|
my $self = PICA::Modification::new( @_ ); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
$self->{created} //= gmstamp; |
20
|
|
|
|
|
|
|
$self->{status} //= 0; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
$self; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub update { |
26
|
|
|
|
|
|
|
my ($self, $status) = @_; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
$self->{status} = $status; |
29
|
|
|
|
|
|
|
$self->{updated} = gmstamp; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |