From 071352b86391c1513a09eed79e25e3a4055aadd5 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. --- 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.24.1 (Apple Git-126)