|
Lines 2298-2303
sub can_patron_place_ill_in_opac {
Link Here
|
| 2298 |
return 1; |
2298 |
return 1; |
| 2299 |
} |
2299 |
} |
| 2300 |
|
2300 |
|
|
|
2301 |
=head3 trim_form_params |
| 2302 |
|
| 2303 |
my $params = trim_form_params($params); |
| 2304 |
|
| 2305 |
Trims $params. Needed to ensure submitted data is not saved with leading or trailing white spaces: |
| 2306 |
|
| 2307 |
This: |
| 2308 |
{ |
| 2309 |
'doi' => ' 123', |
| 2310 |
}; |
| 2311 |
|
| 2312 |
Becomes: |
| 2313 |
{ |
| 2314 |
'doi' => '123', |
| 2315 |
}; |
| 2316 |
|
| 2317 |
=cut |
| 2318 |
|
| 2319 |
sub trim_form_params { |
| 2320 |
my ( $self, $params ) = @_; |
| 2321 |
|
| 2322 |
return { map { $_ => $params->{$_} =~ s/^\s+|\s+$//gr } keys %$params }; |
| 2323 |
} |
| 2324 |
|
| 2301 |
=head3 get_history_check_requests |
2325 |
=head3 get_history_check_requests |
| 2302 |
|
2326 |
|
| 2303 |
$self->get_history_check_requests(); |
2327 |
$self->get_history_check_requests(); |