lib/Biblio/ILL/ISO/UnitsPerMediumTypeSequence.pm

filter: Statementstmt 62.5% 15 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 67.7% 21 / 31 CC 2 SCAR 8.9
CC
2
Cov
62%
from_asn
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.4
« lib/Biblio/ILL/ISO/SupplyMediumInfoTypeSequence.pm ↑ Summary lib/Biblio/ILL/ISO/AlreadyTriedListType.pm »
1 package Biblio::ILL::ISO::UnitsPerMediumTypeSequence;
2  
3 =head1 NAME
4  
5 Biblio::ILL::ISO::UnitsPerMediumTypeSequence
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::SEQUENCE_OF;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 4 ▶use Biblio::ILL::ISO::UnitsPerMediumType;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 4 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 =head1 VERSION
16  
17 Version 0.01
18  
19 =cut
20  
21 4 our $VERSION = '0.01';
22 #---------------------------------------------------------------------------
23 # Mods
24 # 0.01 - 2003.08.14 - original version
25 #---------------------------------------------------------------------------
26  
27 =head1 DESCRIPTION
28  
29 Biblio::ILL::ISO::UnitsPerMediumTypeSequence is a derivation of Biblio::ILL::ISO::SEQUENCE_OF.
30  
31 =head1 USES
32  
33 Biblio::ILL::ISO::UnitsPerMediumType
34  
35 =head1 USED IN
36  
37 Biblio::ILL::ISO::SupplyDetails
38  
39 =cut
40  
41 4 ▶BEGIN{@ISA = qw ( Biblio::ILL::ISO::SEQUENCE_OF
Subroutine BEGIN: called CC=1 SCAR=0.0
42 Biblio::ILL::ISO::ILLASNtype );} # inherit from ILLASNtype
43  
44 =head1 FROM THE ASN DEFINITION
45
46 (part of Supply-Details)
47  
48 no-of-units-per-medium [8] IMPLICIT SEQUENCE OF Units-Per-Medium-Type OPTIONAL
49  
50 =cut
51  
52 =head1 METHODS
53  
54 =cut
55  
56 #---------------------------------------------------------------
57 #
58 #---------------------------------------------------------------
59 =head1
60  
61 =head2 from_asn($href)
62  
63 Given a properly formatted hash, builds the object.
64  
65 =cut
66 0 ▶sub from_asn {
Subroutine from_asn: not called CC=2 SCAR=17.9
Pod documented
67 0 my $self = shift;
68 0 my $aref = shift;
69  
70 0 foreach my $elem (@$aref) {
71 0 print ref($self) . "...$k\n";
72  
73 0 my $objref = new Biblio::ILL::ISO::UnitsPerMediumType();
74 0 $objref->from_asn( $aref[$elem] );
75 0 push @{ $self->{"SEQUENCE"} }, $objref;
76  
77 }
78 0 return $self;
79 }
80  
81 =head1 SEE ALSO
82  
83 See the README for system design notes.
84 See the parent class(es) for other available methods.
85  
86 For more information on Interlibrary Loan standards (ISO 10160/10161),
87 a good place to start is:
88  
89 http://www.nlc-bnc.ca/iso/ill/main.htm
90  
91 =cut
92  
93 =head1 AUTHOR
94  
95 David Christensen, <DChristensenSPAMLESS@westman.wave.ca>
96  
97 =cut
98  
99  
100 =head1 COPYRIGHT AND LICENSE
101  
102 Copyright 2003 by David Christensen
103  
104 This library is free software; you can redistribute it and/or modify it
105 under the same terms as Perl itself.
106  
107 =cut
108  
109 4 1;
110  
111  
112  
« lib/Biblio/ILL/ISO/SupplyMediumInfoTypeSequence.pm ↑ Summary lib/Biblio/ILL/ISO/AlreadyTriedListType.pm »