handle SIP End Patron Session
authorJason Etheridge <jason@EquinoxOLI.org>
Tue, 31 May 2022 14:40:30 +0000 (10:40 -0400)
committerJason Etheridge <jason@EquinoxOLI.org>
Mon, 24 Oct 2022 17:05:30 +0000 (13:05 -0400)
Signed-off-by: Jason Etheridge <jason@EquinoxOLI.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm

index 119de4d..a36b040 100644 (file)
@@ -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;