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