@@ -, +, @@ - This patch adds display of the new status_alias value, when set, in - It also allows the user to set a status_alias for an existing request. --- ill/ill-requests.pl | 11 +- .../prog/en/modules/ill/ill-requests.tt | 535 ++++++++++++++++++++- 2 files changed, 542 insertions(+), 4 deletions(-) --- a/ill/ill-requests.pl +++ a/ill/ill-requests.pl @@ -129,8 +129,11 @@ if ( $backends_available ) { value => {} }; $template->param( - whole => $backend_result, - request => $request + whole => $backend_result, + request => $request, + status_aliases => scalar Koha::AuthorisedValues->search( + { category => 'ILLSTATUS' } + ) ); } else { # Commit: @@ -141,6 +144,10 @@ if ( $backends_available ) { $request->price_paid($params->{price_paid}); $request->notesopac($params->{notesopac}); $request->notesstaff($params->{notesstaff}); + my $alias = ($params->{status_alias} =~ /\d/) ? + $params->{status_alias} : + undef; + $request->status_alias($alias); $request->store; my $backend_result = { error => 0, --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -445,7 +445,25 @@