The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Biblio::ILL::ISO::PostalAddress

VERSION

Version 0.01

DESCRIPTION

Biblio::ILL::ISO::PostalAddress is a derivation of Biblio::ILL::ISO::ILLASNtype.

USES

 Biblio::ILL::ISO::ILLString
 Biblio::ILL::ISO::NameOfPersonOrInstitution

USED IN

 Biblio::ILL::ISO::DeliveryAddress
 Biblio::ILL::ISO::WillSupplyResults

FROM THE ASN DEFINITION

 Postal-Address ::= SEQUENCE {
        name-of-person-or-institution    [0]    Name-Of-Person-Or-Institution OPTIONAL,
        extended-postal-delivery-address [1]    ILL-String OPTIONAL,
        street-and-number                [2]    ILL-String OPTIONAL,
        post-office-box                  [3]    ILL-String OPTIONAL,
        city                             [4]    ILL-String OPTIONAL,
        region                           [5]    ILL-String OPTIONAL,
        country                          [6]    ILL-String OPTIONAL,
        postal-code                      [7]    ILL-String OPTIONAL
        }

METHODS

new( [$iname] [,[$pname] [,[$extended] [,[$street] [,[$box] [,[$city] [,[$region] [,[$country] [,$postcode]]]]]]]] )

Creates a new PostalAddress object. Expects either no paramaters, or any of the following: an institution name (text string), a person name (text string), an extended-postal-delivery-address (text string), a street-and-number (text string), a post-office-box (text string), a city (text string), a region (text string), a country (text string), and/or a postal-code (text string).

 Pass empty strings ("") as placeholders.

set( [$iname] [,[$pname] [,[$extended] [,[$street] [,[$box] [,[$city] [,[$region] [,[$country] [,$postcode]]]]]]]] )

Sets the object's institution name (text string) or person name (text string), extended-postal-delivery-address (text string), street-and-number (text string), post-office-box (text string), city (text string), region (text string), country (text string), and/or postal-code (text string).

 Pass empty strings ("") as placeholders.

set_person_name( $s )

 Sets the object's name-of-person-or-institution.
 Expects a text string.

set_institution_name( $s )

 Sets the object's name-of-person-or-institution.
 Expects a text string.

set_extended_address( $s )

 Sets the object's extended-postal-delivery-address.
 Expects a text string.

set_street( $s )

 Sets the object's street-and-number.
 Expects a text string.

set_pobox( $s )

 Sets the object's post-office-box.
 Expects a text string.

set_city( $s )

 Sets the object's city.
 Expects a text string.

set_region( $s )

 Sets the object's region.
 Expects a text string.

set_country( $s )

 Sets the object's country.
 Expects a text string.

set_postal_code( $s )

 Sets the object's postal-code.
 Expects a text string.

from_asn($href)

Given a properly formatted hash, builds the object.

SEE ALSO

See the README for system design notes. See the parent class(es) for other available methods.

For more information on Interlibrary Loan standards (ISO 10160/10161), a good place to start is:

http://www.nlc-bnc.ca/iso/ill/main.htm

AUTHOR

David Christensen, <DChristensenSPAMLESS@westman.wave.ca>

COPYRIGHT AND LICENSE

Copyright 2003 by David Christensen

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.