<<

NAME

Koha::Library - Koha Library Object class

API

Class methods

stockrotationstages

  my $stages = Koha::Library->stockrotationstages;

Returns the stockrotation stages associated with this Library.

get_effective_marcorgcode

    my $marcorgcode = Koha::Libraries->find( $library_id )->get_effective_marcorgcode();

Returns the effective MARC organization code of the library. It falls back to the value from the MARCOrgCode syspref if undefined for the library.

smtp_server

    my $smtp_server = $library->smtp_server;
    $library->smtp_server({ smtp_server => $smtp_server });
    $library->smtp_server({ smtp_server => undef });

Accessor for getting and setting the library's SMTP server.

Returns the effective SMTP server configuration to be used on the library. The returned value is always a Koha::SMTP::Server object.

Setting it to undef will remove the link to a specific SMTP server and effectively make the library use the default setting

inbound_email_address

  my $to_email = Koha::Library->inbound_email_address;

Returns an effective email address which should be accessible to librarians at the branch.

inbound_ill_address

  my $to_email = Koha::Library->inbound_ill_address;

Returns an effective email address which should be accessible to librarians at the branch for inter library loans communication.

library_groups

Return the Library groups of this library

cash_registers

Return Cash::Registers associated with this Library

to_api_mapping

This method returns the mapping for representing a Koha::Library object on the API.

get_hold_libraries

Return all libraries (including self) that belong to the same hold groups

validate_hold_sibling

Return if given library is a valid hold group member

Internal methods

_type

<<