From f859b21b7d8e77097832606b4838e59034b26236 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 --- 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 ca7c84437a..906f4364f8 100644 --- a/C4/SIP/ILS/Item.pm +++ b/C4/SIP/ILS/Item.pm @@ -280,6 +280,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