From ceacbf848ab0e31759bd365edd22fea358bc0a8c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 5 Mar 2024 17:01:34 +0000 Subject: [PATCH] Bug 36197: Add UNAUTH Standard request status Assign this new UNAUTH status for unauthenticated requests Signed-off-by: David Nind --- Koha/ILL/Backend/Standard.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index 6d14d4023d..c63f75df51 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -186,7 +186,15 @@ sub status_graph { next_actions => [], ui_method_icon => 'fa-edit', }, - + UNAUTH => { + prev_actions => [], + id => 'UNAUTH', + name => 'Unauthenticated', + ui_method_name => 0, + method => 0, + next_actions => [ 'REQ', 'GENREQ', 'KILL' ], + ui_method_icon => 0, + }, }; } @@ -984,7 +992,7 @@ sub add_request { $request->biblio_id($biblionumber) unless $biblionumber == 0; $request->borrowernumber( $brw->borrowernumber ); $request->branchcode( $params->{other}->{branchcode} ); - $request->status('NEW'); + $request->status( $unauthenticated_request ? 'UNAUTH' : 'NEW'); $request->backend( $params->{other}->{backend} ); $request->placed( dt_from_string() ); $request->updated( dt_from_string() ); -- 2.39.5