From 1492479f314b3ff12539be54ef097a550c099746 Mon Sep 17 00:00:00 2001
From: Steven Callender <stevecallender@esilibrary.com>
Date: Tue, 8 May 2012 17:15:14 -0400
Subject: [PATCH] lp996776: Patch to fix the response if no configured status
 is detected.

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm
index 35d9ee4b83..71a823d4de 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm
@@ -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 {
-- 
2.11.0