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