File Coverage

blib/lib/Biblio/ILL/ISO/SendToListTypeSequence.pm
Criterion Covered Total %
statement 13 21 61.9
branch n/a
condition n/a
subroutine 5 6 83.3
pod 1 1 100.0
total 19 28 67.8


line stmt bran cond sub pod time code
1             package Biblio::ILL::ISO::SendToListTypeSequence;
2              
3             =head1 NAME
4              
5             Biblio::ILL::ISO::SendToListTypeSequence
6              
7             =cut
8              
9 4     4   635 use Biblio::ILL::ISO::ILLASNtype;
  4         7  
  4         118  
10 4     4   23 use Biblio::ILL::ISO::SEQUENCE_OF;
  4         9  
  4         88  
11 4     4   21 use Biblio::ILL::ISO::SendToListType;
  4         7  
  4         94  
12              
13 4     4   44 use Carp;
  4         8  
  4         674  
14              
15             =head1 VERSION
16              
17             Version 0.01
18              
19             =cut
20              
21             our $VERSION = '0.01';
22             #---------------------------------------------------------------------------
23             # Mods
24             # 0.01 - 2003.07.15 - original version
25             #---------------------------------------------------------------------------
26              
27             =head1 DESCRIPTION
28              
29             Biblio::ILL::ISO::SendToListTypeSequence is a derivation of Biblio::ILL::ISO::SEQUENCE_OF.
30              
31             =head1 USES
32              
33             Biblio::ILL::ISO::SendToListType
34              
35             =head1 USED IN
36              
37             Biblio::ILL::ISO::ThirdPartyInfoType
38              
39             =cut
40              
41 4     4   614 BEGIN{@ISA = qw ( Biblio::ILL::ISO::SEQUENCE_OF
42             Biblio::ILL::ISO::ILLASNtype );} # inherit from ILLASNtype
43              
44             =head1 FROM THE ASN DEFINITION
45            
46             Send-To-List-Type ::= SEQUENCE OF SEQUENCE {
47             system-id [0] IMPLICIT System-Id,
48             account-number [1] Account-Number OPTIONAL,
49             system-address [2] IMPLICIT System-Address OPTIONAL
50             }
51              
52             =cut
53              
54             =head1 METHODS
55              
56             =cut
57              
58             #---------------------------------------------------------------
59             #
60             #---------------------------------------------------------------
61             =head1
62              
63             =head2 from_asn($href)
64              
65             Given a properly formatted hash, builds the object.
66              
67             =cut
68             sub from_asn {
69 0     0 1   my $self = shift;
70 0           my $aref = shift;
71              
72 0           foreach my $elem (@$aref) {
73             #print ref($self) . "...$k\n";
74              
75 0           my $objref = new Biblio::ILL::ISO::SendToListType();
76             #$objref->from_asn( $aref[$elem] );
77 0           $objref->from_asn( $elem );
78 0           push @{ $self->{"SEQUENCE"} }, $objref;
  0            
79              
80             }
81 0           return $self;
82             }
83              
84             =head1 SEE ALSO
85              
86             See the README for system design notes.
87             See the parent class(es) for other available methods.
88              
89             For more information on Interlibrary Loan standards (ISO 10160/10161),
90             a good place to start is:
91              
92             http://www.nlc-bnc.ca/iso/ill/main.htm
93              
94             =cut
95              
96             =head1 AUTHOR
97              
98             David Christensen,
99              
100             =cut
101              
102              
103             =head1 COPYRIGHT AND LICENSE
104              
105             Copyright 2003 by David Christensen
106              
107             This library is free software; you can redistribute it and/or modify it
108             under the same terms as Perl itself.
109              
110             =cut
111              
112             1;