<<

NAME

Koha::Z3950Responder - Main class for interfacing with Net::Z3950::SimpleServer

SYNOPSIS

    use Koha::Z3950Responder;

    my $z = Koha::Z3950Responder->new( {
        add_item_status_subfield => 1,
        add_status_multi_subfield => 1,
        debug => 0,
        num_to_prefetch => 20,
        config_dir => '/home/koha/etc',
        yaz_options => [ ],
    } );

    $z->start();

DESCRIPTION

A daemon class that interfaces with Net::Z3950::SimpleServer to provider Z39.50/SRU service. Uses a Session class for the actual functionality.

METHODS

INSTANCE METHODS

new

    $self->new({
        add_item_status_subfield => 1
    });

start

    $z->start();

Start the daemon and begin serving requests. Does not return unless initialization fails or a fatal error occurs.

CALLBACKS

These methods are SimpleServer callbacks bound to this Z3950Responder object. It's worth noting that these callbacks don't return anything; they both receive and return data in the $args hashref.

init_handler

Callback that is called when a new connection is initialized

search_handler

Callback that is called when a new search is performed

fetch_handler

Callback that is called when records are requested

close_handler

Callback that is called when a session is terminated

<<