<<

NAME

C4::Bookseller::Contact - object class for contacts associated with vendors

SYNPOSIS

This class provides an object-oriented interface for handling vendor contacts. It uses Class::Accessor to provide access to the following fields:

FIELDS

id

ID of the contact. This is not used initially, since contacts are actually stored in the aqbooksellers table.

name

Contact name.

position

Contact's position.

phone

Contact's primary phone number.

altphone

Contact's alternate phone number.

fax

Contact's fax number.

email

Contact's e-mail address.

notes

Notes about contact.

claimacquisition

Whether the contact should receive acquisitions claims.

claimissues

Whether the contact should receive serials claims.

acqprimary

Whether the contact is the primary contact for acquisitions.

serialsprimary

Whether the contact is the primary contact for serials.

bookseller

ID of the bookseller the contact is associated with.

METHODS

get_from_bookseller

    my @contacts = @{C4::Bookseller::Contact->get_from_bookseller($booksellerid)};

Returns a reference to an array of C4::Bookseller::Contact objects for the specified bookseller. This will always return at least one item, though that one item may be an empty contact.

fetch

    my $contact = C4::Bookseller::Contact->fetch($contactid);

Retrieves the specified contact from the database. Currently commented out because there is no separate table from which contacts can be fetched.

save

    $contact->save();

Save a contact to the database.

AUTHOR

Jared Camins-Esakov <jcamins@cpbibliography.com>

<<