| 1 | package Biblio::ILL::ISO::ConditionalResultsCondition; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | Biblio::ILL::ISO::ConditionalResultsCondition | ||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | =cut | ||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 4 | ▶ | use Biblio::ILL::ISO::ILLASNtype; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 4 | ▶ | use Biblio::ILL::ISO::ENUMERATED; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 4 | ▶ | use Carp; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | =head1 VERSION | ||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | Version 0.01 | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | =cut | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 4 | our $VERSION = '0.01'; | |||||||||||||||||||
| 21 | #--------------------------------------------------------------------------- | ||||||||||||||||||||
| 22 | # Mods | ||||||||||||||||||||
| 23 | # 0.01 - 2003.07.26 - original version | ||||||||||||||||||||
| 24 | #--------------------------------------------------------------------------- | ||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | =head1 DESCRIPTION | ||||||||||||||||||||
| 27 | |||||||||||||||||||||
| 28 | Biblio::ILL::ISO::ConditionalResultsCondition 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::ConditionalResults | ||||||||||||||||||||
| 37 | |||||||||||||||||||||
| 38 | =cut | ||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | 4 | ▶ | BEGIN{@ISA = qw ( Biblio::ILL::ISO::ENUMERATED | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 41 | Biblio::ILL::ISO::ILLASNtype );} # inherit from ILLASNtype | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | =head1 FROM THE ASN DEFINITION | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | (part of Conditional-Results) | ||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | conditions [0] IMPLICIT ENUMERATED { | ||||||||||||||||||||
| 48 | cost-exceeds-limit (13), | ||||||||||||||||||||
| 49 | charges (14), | ||||||||||||||||||||
| 50 | prepayment-required (15), | ||||||||||||||||||||
| 51 | lacks-copyright-compliance (16), | ||||||||||||||||||||
| 52 | library-use-only (22), | ||||||||||||||||||||
| 53 | no-reproduction (23), | ||||||||||||||||||||
| 54 | client-signature-required (24), | ||||||||||||||||||||
| 55 | special-collections-supervision-required (25), | ||||||||||||||||||||
| 56 | other (27), | ||||||||||||||||||||
| 57 | responder-specific (28), | ||||||||||||||||||||
| 58 | proposed-delivery-service (30) | ||||||||||||||||||||
| 59 | }, | ||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | =cut | ||||||||||||||||||||
| 62 | |||||||||||||||||||||
| 63 | =head1 METHODS | ||||||||||||||||||||
| 64 | |||||||||||||||||||||
| 65 | =cut | ||||||||||||||||||||
| 66 | #--------------------------------------------------------------- | ||||||||||||||||||||
| 67 | # | ||||||||||||||||||||
| 68 | #--------------------------------------------------------------- | ||||||||||||||||||||
| 69 | =head1 | ||||||||||||||||||||
| 70 | |||||||||||||||||||||
| 71 | =head2 new( $s ) | ||||||||||||||||||||
| 72 | |||||||||||||||||||||
| 73 | Creates a new ConditionalResultsCondition object. | ||||||||||||||||||||
| 74 | Valid paramaters are listed in the FROM THE ASN DEFINITION section | ||||||||||||||||||||
| 75 | (e.g. "cost-exceeds-limit"). | ||||||||||||||||||||
| 76 | |||||||||||||||||||||
| 77 | =cut | ||||||||||||||||||||
| 78 | 3 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=4 SCAR=14.8
Pod
documented
| |||||||||||||||||||||
| 79 | 3 | my $class = shift; | |||||||||||||||||||
| 80 | 3 | my $self = {}; | |||||||||||||||||||
| 81 | |||||||||||||||||||||
| 82 | 3 | $self->{"ENUM_LIST"} = {"cost-exceeds-limit" => 13, | |||||||||||||||||||
| 83 | "charges" => 14, | ||||||||||||||||||||
| 84 | "prepayment-required" => 15, | ||||||||||||||||||||
| 85 | "lacks-copyright-compliance" => 16, | ||||||||||||||||||||
| 86 | "library-use-only" => 22, | ||||||||||||||||||||
| 87 | "no-reproduction" => 23, | ||||||||||||||||||||
| 88 | "client-signature-required" => 24, | ||||||||||||||||||||
| 89 | "special-collections-supervision-required" => 25, | ||||||||||||||||||||
| 90 | "other" => 27, | ||||||||||||||||||||
| 91 | "responder-specific" => 28, | ||||||||||||||||||||
| 92 | "proposed-delivery-service" => 30 | ||||||||||||||||||||
| 93 | }; | ||||||||||||||||||||
| 94 | |||||||||||||||||||||
| 95 | 3 | ▶ | if (@_) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 96 | 3 | my $s = shift; | |||||||||||||||||||
| 97 | |||||||||||||||||||||
| 98 | 3 | ▶ | if ( exists $self->{"ENUM_LIST"}->{$s} ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 99 | 3 | $self->{"ENUMERATED"} = $self->{"ENUM_LIST"}->{$s}; | |||||||||||||||||||
| 100 | } else { | ||||||||||||||||||||
| 101 | 0 | croak "invalid ConditionalResultsCondition type: [$s]"; | |||||||||||||||||||
| 102 | } | ||||||||||||||||||||
| 103 | } | ||||||||||||||||||||
| 104 | |||||||||||||||||||||
| 105 | 3 | ▶ | bless($self, ref($class) || $class); | ||||||||||||||||||
|
Condition33%1/3
ref $class || $class
MC/DC0%0/2
ref $class || $class
ref $class
$class
Truth table33%1/3
A || B
A= ref $classB= $class
| |||||||||||||||||||||
| 106 | 3 | return ($self); | |||||||||||||||||||
| 107 | } | ||||||||||||||||||||
| 108 | |||||||||||||||||||||
| 109 | =head1 SEE ALSO | ||||||||||||||||||||
| 110 | |||||||||||||||||||||
| 111 | See the README for system design notes. | ||||||||||||||||||||
| 112 | See the parent class(es) for other available methods. | ||||||||||||||||||||
| 113 | |||||||||||||||||||||
| 114 | For more information on Interlibrary Loan standards (ISO 10160/10161), | ||||||||||||||||||||
| 115 | a good place to start is: | ||||||||||||||||||||
| 116 | |||||||||||||||||||||
| 117 | http://www.nlc-bnc.ca/iso/ill/main.htm | ||||||||||||||||||||
| 118 | |||||||||||||||||||||
| 119 | =cut | ||||||||||||||||||||
| 120 | |||||||||||||||||||||
| 121 | =head1 AUTHOR | ||||||||||||||||||||
| 122 | |||||||||||||||||||||
| 123 | David Christensen, <DChristensenSPAMLESS@westman.wave.ca> | ||||||||||||||||||||
| 124 | |||||||||||||||||||||
| 125 | =cut | ||||||||||||||||||||
| 126 | |||||||||||||||||||||
| 127 | |||||||||||||||||||||
| 128 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 129 | |||||||||||||||||||||
| 130 | Copyright 2003 by David Christensen | ||||||||||||||||||||
| 131 | |||||||||||||||||||||
| 132 | This library is free software; you can redistribute it and/or modify it | ||||||||||||||||||||
| 133 | under the same terms as Perl itself. | ||||||||||||||||||||
| 134 | |||||||||||||||||||||
| 135 | =cut | ||||||||||||||||||||
| 136 | |||||||||||||||||||||
| 137 | 4 | 1; | |||||||||||||||||||