| 1 | package Biblio::ILL::ISO::Shipped; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 5 | Biblio::ILL::ISO::Shipped - Perl extension for handling ISO 10161 interlibrary loan Shipped messages | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 7 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 9 | 2 | ▶ | use Biblio::ILL::ISO::ISO; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 10 | 2 | ▶ | use Carp; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 12 | =head1 VERSION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 14 | Version 0.01 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 16 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 18 | 2 | our $VERSION = '0.01'; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 19 | #--------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 20 | # Mods | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 21 | # 0.01 - 2003.08.11 - original version | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 22 | #--------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 24 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 26 | Biblio::ILL::ISO::Shipped is a derivation of the abstract | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 27 | Biblio::ILL::ISO::ISO object, and handles the Shipped message type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 29 | =head1 EXPORT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 31 | None. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 33 | =head1 ERROR HANDLING | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 35 | Each of the set_() methods will croak on missing or invalid parameters. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 37 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 39 | 2 | ▶ | BEGIN{@ISA = qw ( Biblio::ILL::ISO::ISO ); } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 41 | =head1 FROM THE ASN DEFINITION | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 43 | Shipped ::= [APPLICATION 3] SEQUENCE { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 44 | protocol-version-num [0] IMPLICIT INTEGER, -- { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 45 | -- version-1 (1), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46 | -- version-2 (2) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 47 | -- }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 48 | transaction-id [1] IMPLICIT Transaction-Id, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 49 | service-date-time [2] IMPLICIT Service-Date-Time, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 50 | requester-id [3] IMPLICIT System-Id OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 51 | -- mandatory when using store-and-forward communications | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 52 | -- optional when using connection-oriented communications | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 53 | responder-id [4] IMPLICIT System-Id OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 54 | -- mandatory when using store-and-forward communications | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 55 | -- optional when using connection-oriented communications | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56 | responder-address [24] IMPLICIT System-Address OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 57 | intermediary-id [25] IMPLICIT System-Id OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 58 | supplier-id [26] IMPLICIT System-Id OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 59 | client-id [15] IMPLICIT Client-Id OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 60 | transaction-type [5] IMPLICIT Transaction-Type, --DEFAULT 1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 61 | -- DC - 'EXTERNAL' definition (see Supplemental-Item-Description) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 62 | -- supplemental-item-description [17] IMPLICIT Supplemental-Item-Description OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 63 | shipped-service-type [27] IMPLICIT Shipped-Service-Type, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 64 | responder-optional-messages [28] IMPLICIT Responder-Optional-Messages-Type | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 65 | OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 66 | supply-details [29] IMPLICIT Supply-Details, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 67 | return-to-address [30] IMPLICIT Postal-Address OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 68 | responder-note [46] ILL-String OPTIONAL, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 69 | shipped-extensions [49] IMPLICIT SEQUENCE OF Extension OPTIONAL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 71 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 72 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 74 | =head1 CONSTRUCTORS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 76 | new() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 78 | Base constructor for the class. It just returns a completely | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 79 | empty message object, which you'll need to populate with the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 80 | various set_() methods, or use the read() method to read a | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 81 | Shipped message from a file (followed by a call to | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 82 | from_asn() to turn the read's returned hash into a proper | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 83 | Shipped message. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 84 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 85 | The constructor also initializes the Convert::ASN1 if it | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 86 | hasn't been initialized. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 88 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 89 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 90 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 91 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92 | 2 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=3 SCAR=11.6
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 93 | 2 | my $class = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 94 | 2 | my $self = {}; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 95 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 96 | 2 | ▶ | Biblio::ILL::ISO::ISO::_init() if (not $Biblio::ILL::ISO::ISO::_asn_initialized); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 97 | 2 | $self->{"ASN_TYPE"} = "Shipped"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 99 | 2 | ▶ | 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
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100 | 2 | return ($self); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 101 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 102 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 103 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 104 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 105 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 106 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 107 | 0 | ▶ | sub as_pretty_string { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
as_pretty_string: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 108 | 0 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 109 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 110 | 0 | foreach my $key (sort keys %$self) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 111 | 0 | ▶ | if ($key ne "ASN_TYPE") { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 112 | 0 | print "\n[$key]\n"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 113 | 0 | print $self->{$key}->as_pretty_string(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 114 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 116 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 117 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 118 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 119 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 120 | # This will return a structure usable by Convert::ASN1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 121 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 122 | 1 | ▶ | sub as_asn { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
as_asn: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 123 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 125 | 1 | my %h = (); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 126 | 1 | foreach my $key (sort keys %$self) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 127 | 15 | ▶ | if ($key ne "ASN_TYPE") { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 128 | #print "\n[$key]\n"; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 129 | 14 | $h{$key} = $self->{$key}->as_asn(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 130 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 131 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 132 | 1 | return \%h; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 133 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 134 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 135 | =head1 METHODS | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 136 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 137 | For any example code, assume the following: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 138 | my $msg = new Biblio::ILL::ISO::Shipped; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 139 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 140 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 141 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 142 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 143 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 144 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 145 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 146 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 147 | =head2 from_asn($href) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 149 | To read a message from a file, use the following: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 151 | my $href = $msg->read("msg_03.shipped.ber"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 152 | $msg = $msg->from_asn($href); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 154 | The from_asn() method turns the hash returned from read() into | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 155 | a proper message-type object. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 156 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 157 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 158 | 0 | ▶ | sub from_asn { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
from_asn: not called CC=18 SCAR=58.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 159 | 0 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 160 | 0 | my $href = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 161 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 162 | 0 | foreach my $k (keys %$href) { | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 164 | 0 | ▶ | if ($k =~ /^protocol-version-num$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 13 branches
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 165 | 0 | $self->{$k} = new Biblio::ILL::ISO::ProtocolVersionNum(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 166 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 167 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 168 | } elsif ($k =~ /^transaction-id$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 169 | 0 | $self->{$k} = new Biblio::ILL::ISO::TransactionId(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 170 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 171 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 172 | } elsif ($k =~ /^service-date-time$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 173 | 0 | $self->{$k} = new Biblio::ILL::ISO::ServiceDateTime(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 174 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 175 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 176 | ▶ | } elsif (($k =~ /^requester-id$/) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/9
$k =~ /^requester-id$/ or $k =~ /^responder-id$/ or $k =~ /^intermediary-id$/ or $k =~ /^supplier-id$/
$k =~ /^requester-id$/ or $k =~ /^responder-id$/ or $k =~ /^intermediary-id$/
$k =~ /^requester-id$/ or $k =~ /^responder-id$/
MC/DC0%0/4
$k =~ /^requester-id$/ or $k =~ /^responder-id$/ or $k =~ /^intermediary-id$/ or $k =~ /^supplier-id$/
$k =~ /^requester-id$/
$k =~ /^responder-id$/
$k =~ /^intermediary-id$/
$k =~ /^supplier-id$/
Truth table0%0/5
A or B or C or D
A= $k =~ /^requester-id$/B= $k =~ /^responder-id$/C= $k =~ /^intermediary-id$/D= $k =~ /^supplier-id$/
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 177 | || ($k =~ /^responder-id$/) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 178 | || ($k =~ /^intermediary-id$/) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 179 | || ($k =~ /^supplier-id$/) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 180 | ) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 181 | 0 | $self->{$k} = new Biblio::ILL::ISO::SystemId(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 182 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 183 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 184 | } elsif ($k =~ /^responder-address$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 185 | 0 | $self->{$k} = new Biblio::ILL::ISO::SystemAddress(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 186 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 187 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 188 | } elsif ($k =~ /^client-id$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 189 | 0 | $self->{$k} = new Biblio::ILL::ISO::ClientId(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 190 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 191 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 192 | } elsif ($k =~ /^transaction-type$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 193 | 0 | $self->{$k} = new Biblio::ILL::ISO::TransactionType(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 194 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 195 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 196 | } elsif ($k =~ /^shipped-service-type$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 197 | 0 | $self->{$k} = new Biblio::ILL::ISO::ShippedServiceType(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 198 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 199 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 200 | } elsif ($k =~ /^responder-optional-messages$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 201 | 0 | $self->{$k} = new Biblio::ILL::ISO::ResponderOptionMessageType(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 202 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 203 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 204 | } elsif ($k =~ /^supply-details$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 205 | 0 | $self->{$k} = new Biblio::ILL::ISO::SupplyDetails(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 206 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 207 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 208 | } elsif ($k =~ /^return-to-address$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 209 | 0 | $self->{$k} = new Biblio::ILL::ISO::PostalAddress(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 210 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 211 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 212 | } elsif ($k =~ /^responder-note$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 213 | 0 | $self->{$k} = new Biblio::ILL::ISO::ILLString(); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 214 | 0 | $self->{$k}->from_asn($href->{$k}); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 216 | } elsif ($k =~ /^shipped-extensions$/) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 217 | #$self->{$k} = new Biblio::ILL::ISO::Extension(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 218 | #$self->{$k}->from_asn($href->{$k}); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 219 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 220 | } else { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 221 | 0 | croak "invalid " . ref($self) . " element: [$k]"; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 222 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 223 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 224 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 225 | 0 | return $self; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 226 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 227 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 228 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 229 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 230 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 231 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 232 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 233 | =head2 set_protocol_version_num($pvn) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 234 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 235 | Sets the protocol version number. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 236 | Acceptable parameter values are the strings: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 237 | version-1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 238 | version-2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 239 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 240 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 241 | 1 | ▶ | sub set_protocol_version_num { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_protocol_version_num: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 242 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 243 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 245 | 1 | ▶ | croak "missing protocol-version-num" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 246 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 247 | 1 | $self->{"protocol-version-num"} = new Biblio::ILL::ISO::ProtocolVersionNum($parm); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 248 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 249 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 250 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 251 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 252 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 253 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 254 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 255 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 256 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 257 | =head2 set_transaction_id($tid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 258 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 259 | Sets the message's transaction-id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 260 | Expects a valid Biblio::ILL::ISO::TransactionId. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 261 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 262 | my $tid = new Biblio::ILL::ISO::TransactionId("PLS","001","", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 263 | new Biblio::ILL::ISO::SystemId("MWPL")); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 264 | $msg->set_transaction_id($tid); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 265 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 266 | This is a mandatory field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 267 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 268 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 269 | 1 | ▶ | sub set_transaction_id { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_transaction_id: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 270 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 271 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 272 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 273 | 1 | ▶ | croak "missing transaction-id" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 274 | 1 | ▶ | croak "invalid transaction-id" unless (ref($parm) eq "Biblio::ILL::ISO::TransactionId"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 275 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 276 | 1 | $self->{"transaction-id"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 277 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 278 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 279 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 280 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 281 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 282 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 283 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 284 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 286 | =head2 set_service_date_time($sdt) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 287 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 288 | Sets the message's service-date-time. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 289 | Expects a valid Biblio::ILL::ISO::ServiceDateTime. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 290 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 291 | my $dt_this = new Biblio::ILL::ISO::DateTime("20030623","114400"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 292 | my $dt_orig = new Biblio::ILL::ISO::DateTime("20030623","114015") | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 293 | my $sdt = new Biblio::ILL::ISO::ServiceDateTime( $dt_this, $dt_orig); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 294 | $msg->set_service_date_time($sdt); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 295 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 296 | This is a mandatory field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 297 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 298 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 299 | 1 | ▶ | sub set_service_date_time { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_service_date_time: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 300 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 301 | 1 | my ($sdt) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 302 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 303 | 1 | ▶ | croak "missing service-date-time" unless $sdt; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 304 | 1 | ▶ | croak "invalid service-date-time" unless (ref($sdt) eq "Biblio::ILL::ISO::ServiceDateTime"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 305 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 306 | 1 | $self->{"service-date-time"} = $sdt; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 307 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 308 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 309 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 310 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 311 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 312 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 313 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 314 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 315 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 316 | =head2 set_requester_id($reqid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 317 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 318 | Sets the message's requester-id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 319 | Expects a valid Biblio::ILL::ISO::SystemId. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 320 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 321 | my $reqid = new Biblio::ILL::ISO::SystemId(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 322 | $reqid->set_person_name("David A. Christensen"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 323 | $msg->set_requester_id($reqid); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 324 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 325 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 326 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 327 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 328 | 1 | ▶ | sub set_requester_id { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_requester_id: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 329 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 330 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 331 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 332 | 1 | ▶ | croak "missing requester-id" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 333 | 1 | ▶ | croak "invalid requester-id" unless (ref($parm) eq "Biblio::ILL::ISO::SystemId"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 335 | 1 | $self->{"requester-id"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 336 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 337 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 338 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 339 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 340 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 341 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 342 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 343 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 344 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 345 | =head2 set_responder_id($resid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 346 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 347 | Sets the message's responder-id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 348 | Expects a valid Biblio::ILL::ISO::SystemId. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 349 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 350 | my $resid = new Biblio::ILL::ISO::SystemId("MWPL"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 351 | $msg->set_responder_id($resid); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 352 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 353 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 354 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 355 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 356 | 1 | ▶ | sub set_responder_id { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_responder_id: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 357 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 358 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 359 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 360 | 1 | ▶ | croak "missing responder-id" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 361 | 1 | ▶ | croak "invalid responder-id" unless (ref($parm) eq "Biblio::ILL::ISO::SystemId"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 362 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 363 | 1 | $self->{"responder-id"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 364 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 365 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 366 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 367 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 368 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 369 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 370 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 371 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 372 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 373 | =head2 set_responder_address($rad) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 374 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 375 | Sets the message's responder-address. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 376 | Expects a valid Biblio::ILL::ISO::SystemAddress. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 377 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 378 | my $rad = new Biblio::ILL::ISO::SystemAddress("SMTP","pls\@gov.mb.ca"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 379 | $msg->set_responder_address($rad); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 380 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 381 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 382 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 383 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 384 | 1 | ▶ | sub set_responder_address { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_responder_address: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 385 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 386 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 387 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 388 | 1 | ▶ | croak "missing responder-address" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 389 | 1 | ▶ | croak "invalid responder-address" unless (ref($parm) eq "Biblio::ILL::ISO::SystemAddress"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 390 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 391 | 1 | $self->{"responder-address"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 392 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 393 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 394 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 395 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 396 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 397 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 398 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 399 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 400 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 401 | =head2 set_intermediary_id($iid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 402 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 403 | Sets the message's intermediary-id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 404 | Expects a valid Biblio::ILL::ISO::SystemAddress. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 405 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 406 | my $iid = new Biblio::ILL::ISO::SystemId(); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 407 | $iid->set_institution_name("The Great Library of Alexandria"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 408 | $msg->set_intermediary_id($iid); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 409 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 410 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 411 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 412 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 413 | 1 | ▶ | sub set_intermediary_id { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_intermediary_id: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 414 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 415 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 416 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 417 | 1 | ▶ | croak "missing intermediary-id" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 418 | 1 | ▶ | croak "invalid intermediary-id" unless (ref($parm) eq "Biblio::ILL::ISO::SystemId"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 419 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 420 | 1 | $self->{"intermediary-id"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 421 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 422 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 423 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 424 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 425 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 426 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 427 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 428 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 429 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 430 | =head2 set_supplier_id($sid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 431 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 432 | Sets the message's supplier-id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 433 | Expects a valid Biblio::ILL::ISO::SystemId. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 434 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 435 | my $sid = new Biblio::ILL::ISO::SystemId("MWPL"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 436 | $msg->set_supplier_id($sid); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 437 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 438 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 439 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 440 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 441 | 1 | ▶ | sub set_supplier_id { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_supplier_id: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 442 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 443 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 444 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 445 | 1 | ▶ | croak "missing supplier-id" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 446 | 1 | ▶ | croak "invalid supplier-id" unless (ref($parm) eq "Biblio::ILL::ISO::SystemId"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 447 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 448 | 1 | $self->{"supplier-id"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 449 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 450 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 451 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 452 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 453 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 454 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 455 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 456 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 457 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 458 | =head2 set_client_id($cid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 459 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 460 | Sets the message's client-id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 461 | Expects a valid Biblio::ILL::ISO::ClientId. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 462 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 463 | my $cid = new Biblio::ILL::ISO::ClientId("David Christensen", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 464 | "Most excellent", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 465 | "007" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 466 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 467 | $msg->set_client_id($cid) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 468 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 469 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 470 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 471 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 472 | 1 | ▶ | sub set_client_id { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_client_id: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 473 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 474 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 475 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 476 | 1 | ▶ | croak "missing client-id" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 477 | 1 | ▶ | croak "invalid client-id" unless (ref($parm) eq "Biblio::ILL::ISO::ClientId"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 478 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 479 | 1 | $self->{"client-id"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 480 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 481 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 482 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 483 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 484 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 485 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 486 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 487 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 488 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 489 | =head2 set_transaction_type($tt) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 490 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 491 | Sets the message's transaction-type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 492 | Expects a valid Biblio::ILL::ISO::TransactionType. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 493 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 494 | my $tt = new Biblio::ILL::ISO::TransactionType("simple"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 495 | $msg->set_transaction_type($tt); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 496 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 497 | This is a mandatory field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 498 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 499 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 500 | 1 | ▶ | sub set_transaction_type { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_transaction_type: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 501 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 502 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 503 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 504 | 1 | ▶ | croak "missing transaction-type" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 505 | 1 | ▶ | croak "invalid transaction-type" unless (ref($parm) eq "Biblio::ILL::ISO::TransactionType"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 506 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 507 | 1 | $self->{"transaction-type"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 508 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 509 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 510 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 511 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 512 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 513 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 514 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 515 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 516 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 517 | =head2 set_shipped_service_type($sst) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 518 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 519 | Sets the message's shipped-service-type. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 520 | Expects a valid Biblio::ILL::ISO::ShippedServiceType. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 521 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 522 | my $sst = new Biblio::ILL::ISO::ShippedServiceType("loan"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 523 | $msg->set_shipped_service_type($sst); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 524 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 525 | This is a mandatory field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 526 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 527 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 528 | 1 | ▶ | sub set_shipped_service_type { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_shipped_service_type: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 529 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 530 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 531 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 532 | 1 | ▶ | croak "missing shipped-service-type" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 533 | 1 | ▶ | croak "invalid shipped-service-type" unless (ref($parm) eq "Biblio::ILL::ISO::ShippedServiceType"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 534 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 535 | 1 | $self->{"shipped-service-type"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 536 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 537 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 538 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 539 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 540 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 541 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 542 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 543 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 544 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 545 | =head2 set_responder_optional_messages($rom) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 546 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 547 | Sets the message's responder-optional-messages. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 548 | Expects a valid Biblio::ILL::ISO::ResponderOptionalMessageType. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 549 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 550 | my $rom = new Biblio::ILL::ISO::ResponderOptionalMessageType(1,1, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 551 | "desires", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 552 | "requires" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 553 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 554 | $msg->set_responder_optional_messages($rom); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 555 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 556 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 557 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 558 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 559 | 0 | ▶ | sub set_responder_optional_messages { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_responder_optional_messages: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 560 | 0 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 561 | 0 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 562 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 563 | 0 | ▶ | croak "missing responder-optional-messages" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 564 | 0 | ▶ | croak "invalid responder-optional-messages" unless (ref($parm) eq "Biblio::ILL::ISO::ResponderOptionalMessageType"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 565 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 566 | 0 | $self->{"responder-optional-messages"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 567 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 568 | 0 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 569 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 570 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 571 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 572 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 573 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 574 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 575 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 576 | =head2 set_supply_details($sd) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 577 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 578 | Sets the message's supply-details. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 579 | Expects a valid Biblio::ILL::ISO::SupplyDetails. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 580 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 581 | my $smt = new Biblio::ILL::ISO::SupplyMediumType("audio-recording"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 582 | my $upmt = new Biblio::ILL::ISO::UnitsPerMediumType( $smt, 3); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 583 | my $upmts = new Biblio::ILL::ISO::UnitsPerMediumTypeSequence( $upmt ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 584 | my $sc = new Biblio::ILL::ISO::ShippedConditions("no-reproduction"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 585 | my $tm = new Biblio::ILL::ISO::TransportationMode("Canada Post"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 586 | my $sv = new Biblio::ILL::ISO::ShippedVia( $tm ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 587 | my $sd = new Biblio::ILL::ISO::SupplyDetails("20030813", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 588 | "20030920", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 589 | 123, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 590 | "45.67", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 591 | $sc, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 592 | $sv, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 593 | new Biblio::ILL::ISO::Amount("50.00"), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 594 | "50.00", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 595 | $upmts | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 596 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 597 | $msg->set_supply_details($sd); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 598 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 599 | This is a mandatory field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 600 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 601 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 602 | 1 | ▶ | sub set_supply_details { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_supply_details: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 603 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 604 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 605 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 606 | 1 | ▶ | croak "missing supply-details" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 607 | 1 | ▶ | croak "invalid supply-details" unless (ref($parm) eq "Biblio::ILL::ISO::SupplyDetails"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 608 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 609 | 1 | $self->{"supply-details"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 610 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 611 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 612 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 613 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 614 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 615 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 616 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 617 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 618 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 619 | =head2 set_return_to_address($rta) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 620 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 621 | Sets the message's return-to-address. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 622 | Expects a valid Biblio::ILL::ISO::PostalAddress. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 623 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 624 | my $rta = new Biblio::ILL::ISO::PostalAddress("Manitoba Public Library Services", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 625 | "", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 626 | "Unit 200", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 627 | "1525 First Street South", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 628 | "", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 629 | "Brandon", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 630 | "MB", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 631 | "CANADA", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 632 | "R7A 7A1" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 633 | ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 634 | $msg->set_return_to_address($rta); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 635 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 636 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 637 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 638 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 639 | 1 | ▶ | sub set_return_to_address { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_return_to_address: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 640 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 641 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 642 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 643 | 1 | ▶ | croak "missing return-to-address" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 644 | 1 | ▶ | croak "invalid return-to-address" unless (ref($parm) eq "Biblio::ILL::ISO::PostalAddress"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 645 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 646 | 1 | $self->{"return-to-address"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 647 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 648 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 649 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 650 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 651 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 652 | # | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 653 | #--------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 654 | =head1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 655 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 656 | =head2 set_responder_note($note) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 657 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 658 | Sets the message's responder-note. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 659 | Expects a simple text string. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 660 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 661 | $msg->set_responder_note("This is a responder note"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 662 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 663 | This is an optional field. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 664 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 665 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 666 | 1 | ▶ | sub set_responder_note { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
set_responder_note: called CC=3 SCAR=11.2
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 667 | 1 | my $self = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 668 | 1 | my ($parm) = shift; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 669 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 670 | 1 | ▶ | croak "missing responder-note" unless $parm; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 671 | 1 | ▶ | croak "invalid responder-note" unless (ref($parm) eq "Biblio::ILL::ISO::ILLString"); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 672 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 673 | 1 | $self->{"responder-note"} = $parm; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 674 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 675 | 1 | return; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 676 | } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 677 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 678 | =head1 RELATED MODULES | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 679 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 680 | Biblio::ILL::ISO::ISO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 681 | Biblio::ILL::ISO::Request | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 682 | Biblio::ILL::ISO::ForwardNotification | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 683 | Biblio::ILL::ISO::Shipped | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 684 | Biblio::ILL::ISO::Answer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 685 | Biblio::ILL::ISO::ConditionalReply | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 686 | Biblio::ILL::ISO::Cancel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 687 | Biblio::ILL::ISO::CancelReply | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 688 | Biblio::ILL::ISO::Received | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 689 | Biblio::ILL::ISO::Recall | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 690 | Biblio::ILL::ISO::Returned | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 691 | Biblio::ILL::ISO::CheckedIn | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 692 | Biblio::ILL::ISO::Overdue | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 693 | Biblio::ILL::ISO::Renew | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 694 | Biblio::ILL::ISO::RenewAnswer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 695 | Biblio::ILL::ISO::Lost | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 696 | Biblio::ILL::ISO::Damaged | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 697 | Biblio::ILL::ISO::Message | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 698 | Biblio::ILL::ISO::StatusQuery | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 699 | Biblio::ILL::ISO::StatusOrErrorReport | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 700 | Biblio::ILL::ISO::Expired | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 701 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 702 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 703 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 704 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 705 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 706 | See the README for system design notes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 707 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 708 | For more information on Interlibrary Loan standards (ISO 10160/10161), | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 709 | a good place to start is: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 710 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 711 | http://www.nlc-bnc.ca/iso/ill/main.htm | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 712 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 713 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 714 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 715 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 716 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 717 | David Christensen, <DChristensenSPAMLESS@westman.wave.ca> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 718 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 719 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 720 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 721 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 722 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 723 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 724 | Copyright 2003 by David Christensen | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 725 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 726 | This library is free software; you can redistribute it and/or modify it | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 727 | under the same terms as Perl itself. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 728 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 729 | =cut | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 730 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 731 | 2 | 1; | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||