<<

NAME

Koha::ILL::Request::TypeDisclaimer - Koha ILL TypeDisclaimer

SYNOPSIS

Object-oriented class that provides the ILL request type disclaimer

DESCRIPTION

This class provides the ability to verify if it should render type disclaimer and handle the template params accordingly

API

Class Methods

show_type_disclaimer

    my $show_type_disclaimer =
    Koha::ILL::Request::TypeDisclaimer->show_type_disclaimer($params);

Given $params, return true if type disclaimer should be shown

type_disclaimer_template_params

    my $type_disclaimer_template_params =
    Koha::ILL::Request::TypeDisclaimer->type_disclaimer_template_params(
        $params);

Given $params, return true if type disclaimer should be rendered

after_request_created

    $type_disclaimer->after_request_created($params, $request);

Actions that need to be done after the request has been created

_get_type_disclaimer_info

    my $type_disclaimer_info =
      $self->_get_type_disclaimer_info( $type_disclaimer_sys_pref, $request_type );

Given ILLModuleDisclaimerByType sys pref and type, returns the respective type disclaimer info Returns undef if sys pref is empty or malformed

_get_type_disclaimer_sys_pref

    my $disc_sys_pref = $self->_get_type_disclaimer_sys_pref;

Returns YAML from ILLModuleDisclaimerByType syspref Returns empty if empty or YAML error

AUTHOR

Pedro Amorim <pedro.amorim@ptfs-europe.com>

<<