return 1;
}
=head3 trim_form_params
my $params = trim_form_params($params);
Trims $params. Needed to ensure submitted data is not saved with leading or trailing white spaces:
This:
{
'doi' => ' 123',
};
Becomes:
'doi' => '123',
=cut
sub trim_form_params {
my ( $self, $params ) = @_;
return { map { $_ => $params->{$_} =~ s/^\s+|\s+$//gr } keys %$params };
=head3 get_history_check_requests
$self->get_history_check_requests();
# Load the ILL backend
my $request = Koha::ILL::Request->new->load_backend( $params->{backend} );
$params = $request->trim_form_params($params);
# Before request creation operations - Preparation
my $history_check = Koha::ILL::Request::Workflow::HistoryCheck->new( $params, 'staff' );
-