lp996776: Patch to fix the response if no configured status is detected.
authorSteven Callender <stevecallender@esilibrary.com>
Tue, 8 May 2012 21:15:14 +0000 (17:15 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 8 May 2012 21:30:18 +0000 (17:30 -0400)
SIP response messages that use circulation_status where defaulting to just 1
rather than 01 if the status was not detected. Since SIP needs a 2 character
response, this was causing issues in some 3rd party devices. Added quoting
around the 01 to force the 2 characters.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>

Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm

index 35d9ee4..71a823d 100644 (file)
@@ -356,7 +356,7 @@ sub sip_circulation_status {
     return '12' if $stat == OILS_COPY_STATUS_LOST;
     return '13' if $stat == OILS_COPY_STATUS_MISSING;
         
-    return 01;
+    return '01';
 }
 
 sub sip_security_marker {