From 569bb4d27e1e29ed4f04563a3d8d83ecaa0e2a57 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 10 Mar 2021 10:33:28 -0500 Subject: [PATCH] Bug 27907: Add support for circulation status 2 ( on order ) In Koha, we represent on order items by giving those items a notforloan value less then zero. We can use this to implement circ status 02 ( on order ) in for SIP. Signed-off-by: Christopher Kellermeyer - Altadena Library District Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 19721bd6711fc9524b7711c7f4d871c7cb0d9ca5) Signed-off-by: Fridolin Somers --- C4/SIP/ILS/Item.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/SIP/ILS/Item.pm b/C4/SIP/ILS/Item.pm index f0b1794b0e..0226556d70 100644 --- a/C4/SIP/ILS/Item.pm +++ b/C4/SIP/ILS/Item.pm @@ -281,6 +281,9 @@ sub sip_circulation_status { elsif ( $self->{location} eq 'CART' ) { return '09'; # waiting to be re-shelved } + elsif ( $self->{notforloan} < 0 ) { + return '02'; # on order + } else { return '03'; # available } # FIXME: 01-13 enumerated in spec. -- 2.39.5