From: Jason Etheridge Date: Tue, 31 May 2022 14:40:30 +0000 (-0400) Subject: handle SIP End Patron Session X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b9022d97efef11dbd82eb801906527fee4427dad;p=working%2FEvergreen.git handle SIP End Patron Session Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm index 119de4d5db..a36b040bcd 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm @@ -75,6 +75,7 @@ sub dispatch_sip2_request { '17' => \&handle_item_info, '23' => \&handle_patron_status, '29' => \&handle_renew, + '35' => \&handle_end_patron_session, '37' => \&handle_payment, '63' => \&handle_patron_info, '65' => \&handle_renew_all, @@ -848,5 +849,23 @@ sub handle_payment { } } +sub handle_end_patron_session { + my ($session, $message) = @_; + my $config = $session->config; + + # we don't actually do anything real with this :-) + + return { + code => '36', + fixed_fields => [ + $SC->sipbool(1) + ], + fields => [ + {AO => $config->{institution}}, + {AA => ''} # SIP required field, but do we actually have this--the patron barcode--as state information? + ] + } +} + 1;