line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Biblio::ILL::ISO::TransactionType; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Biblio::ILL::ISO::TransactionType |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=cut |
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
640
|
use Biblio::ILL::ISO::ILLASNtype; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
95
|
|
10
|
4
|
|
|
4
|
|
22
|
use Biblio::ILL::ISO::ENUMERATED; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
80
|
|
11
|
|
|
|
|
|
|
|
12
|
4
|
|
|
4
|
|
18
|
use Carp; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
366
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 VERSION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Version 0.01 |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
21
|
|
|
|
|
|
|
#--------------------------------------------------------------------------- |
22
|
|
|
|
|
|
|
# Mods |
23
|
|
|
|
|
|
|
# 0.01 - 2003.07.15 - original version |
24
|
|
|
|
|
|
|
#--------------------------------------------------------------------------- |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 DESCRIPTION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Biblio::ILL::ISO::TransactionType is a derivation of Biblio::ILL::ISO::ENUMERATED. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 USES |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
None. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 USED IN |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Biblio::ILL::ISO::Request |
37
|
|
|
|
|
|
|
Biblio::ILL::ISO::Shipped |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
4
|
|
|
4
|
|
704
|
BEGIN{@ISA = qw ( Biblio::ILL::ISO::ENUMERATED |
42
|
|
|
|
|
|
|
Biblio::ILL::ISO::ILLASNtype );} # inherit from ILLASNtype |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 FROM THE ASN DEFINITION |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Transaction-Type ::= ENUMERATED { |
47
|
|
|
|
|
|
|
simple (1), |
48
|
|
|
|
|
|
|
chained (2), |
49
|
|
|
|
|
|
|
partitioned (3) |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=cut |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 METHODS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
#--------------------------------------------------------------- |
59
|
|
|
|
|
|
|
# |
60
|
|
|
|
|
|
|
#--------------------------------------------------------------- |
61
|
|
|
|
|
|
|
=head1 |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 new( $s ) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Creates a new TransactionType object. |
66
|
|
|
|
|
|
|
Valid paramaters are listed in the FROM THE ASN DEFINITION section |
67
|
|
|
|
|
|
|
(e.g. "simple"). |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
sub new { |
71
|
2
|
|
|
2
|
1
|
17
|
my $class = shift; |
72
|
2
|
|
|
|
|
4
|
my $self = {}; |
73
|
|
|
|
|
|
|
|
74
|
2
|
|
|
|
|
14
|
$self->{"ENUM_LIST"} = {"simple" => 1, |
75
|
|
|
|
|
|
|
"chained" => 2, |
76
|
|
|
|
|
|
|
"partitioned" => 3 |
77
|
|
|
|
|
|
|
}; |
78
|
|
|
|
|
|
|
|
79
|
2
|
50
|
|
|
|
6
|
if (@_) { |
80
|
2
|
|
|
|
|
5
|
my $s = shift; |
81
|
|
|
|
|
|
|
|
82
|
2
|
50
|
|
|
|
8
|
if ( exists $self->{"ENUM_LIST"}->{$s} ) { |
83
|
2
|
|
|
|
|
8
|
$self->{"ENUMERATED"} = $self->{"ENUM_LIST"}->{$s}; |
84
|
|
|
|
|
|
|
} else { |
85
|
0
|
|
|
|
|
0
|
croak "invalid TransactionType: [$s]"; |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
2
|
|
33
|
|
|
13
|
bless($self, ref($class) || $class); |
90
|
2
|
|
|
|
|
6
|
return ($self); |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 SEE ALSO |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
See the README for system design notes. |
96
|
|
|
|
|
|
|
See the parent class(es) for other available methods. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
For more information on Interlibrary Loan standards (ISO 10160/10161), |
99
|
|
|
|
|
|
|
a good place to start is: |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
http://www.nlc-bnc.ca/iso/ill/main.htm |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head1 AUTHOR |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
David Christensen, |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=cut |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Copyright 2003 by David Christensen |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it |
117
|
|
|
|
|
|
|
under the same terms as Perl itself. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=cut |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
1; |