Bug 27907: Add support for circulation status 2 ( on order )
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 10 Mar 2021 15:33:28 +0000 (10:33 -0500)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:33 +0000 (15:47 +0200)
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 <ckellermeyer@altadenalibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/SIP/ILS/Item.pm

index ca7c844..906f436 100644 (file)
@@ -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.