Koha::ILL::Request::TypeDisclaimer - Koha ILL TypeDisclaimer
Object-oriented class that provides the ILL request type disclaimer
This class provides the ability to verify if it should render type disclaimer and handle the template params accordingly
my $show_type_disclaimer = Koha::ILL::Request::TypeDisclaimer->show_type_disclaimer($params);
Given $params, return true if type disclaimer should be shown
my $type_disclaimer_template_params = Koha::ILL::Request::TypeDisclaimer->type_disclaimer_template_params( $params);
Given $params, return true if type disclaimer should be rendered
$type_disclaimer->after_request_created($params, $request);
Actions that need to be done after the request has been created
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
my $disc_sys_pref = $self->_get_type_disclaimer_sys_pref;
Returns YAML from ILLModuleDisclaimerByType syspref Returns empty if empty or YAML error
Pedro Amorim <pedro.amorim@ptfs-europe.com>