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