From 22f2dee1cc097426664276f9d4cc2f17f822731c Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 31 May 2022 10:40:30 -0400 Subject: [PATCH] LP1901930 handle SIP End Patron Session Signed-off-by: Jason Etheridge Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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; -- 2.11.0