From 69a25d5e65516519d04bf092aa4facbbbc49d7ba Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 25 May 2022 08:30:34 -0400 Subject: [PATCH] LP1901930 stub details for stub patron Signed-off-by: Jason Etheridge Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm index 6b2610216c..680dd51cf1 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SIP2.pm @@ -274,7 +274,20 @@ sub handle_patron_info { $response->{code} = '64'; - return $response unless $details; + #return $response unless $details; + unless ($details) { + push( + @{$response->{fixed_fields}}, + $SC->count4(0), # holds_count + $SC->count4(0), # overdue_count + $SC->count4(0), # out_count + $SC->count4(0), # fine_count + $SC->count4(0), # recall_count + $SC->count4(0), # unavail_holds_count + ); + return $response; + }; + my $patron = $details->{patron}; push( -- 2.11.0