Bug 13411: Koha's SIP server returns not ok for checking in items that are not checke...
commitb4aa4fcb2c43a45b0b35a62bf9ed40c8bd03d65b
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 27 Aug 2015 14:56:22 +0000 (27 10:56 -0400)
committerLiz Rea <wizzyrea@gmail.com>
Fri, 11 Dec 2015 01:30:57 +0000 (11 14:30 +1300)
tree6228d384b3c552dcebeeb38eadf118b68977fd7d
parent28834f0e9ab2220e5576b3497df23d66f7ceaca9
Bug 13411: Koha's SIP server returns not ok for checking in items that are not checked out

If an item is not checked out when a checkin via SIP2 is attempted,
Koha's SIP server sends back an "ok" of 0, and the AF message "Item
not checked out". I am not entirely sure this is good and correct
behavior by the SIP2 protocol.

In particular, this will cause SIP2 book sorting devices to fail on
all items that are not checked out, causing them all to be put into
the "special handling" been that should be reserved for things like
items checked in at the wrong library and items on hold.

Test Plan:
1) Apply the patch for bug 13159 so you can use the new enhanced
   SIP2 command line emulator
2) Use a command similar to the following to check in an item:
   sip_cli_emulator.pl -a localhost -su <sip user> -sp <sip password> -l <instituation id> --item <barcode> -m checkin
3) Note the 3rd character is 0, and there is an AF field saying the item is not checked out
4) Apply this patch
5) Restart the SIP server
6) Repeat steps 2-3, note that nothing has changed
7) In the SIP config file, Add the parameter checked_in_ok="1" to the SIP account you are using.
8) Restart the SIP server
9) Repeat steps 2-3, note that this time the 3rd character is 1, and you do not recieve the item not checked out message.

Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 181d3aa56de8377c67247db26932c4e5a7cb83d9)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit c87520d90a99c06a7f6194643ead55c1ebd3a867)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
C4/SIP/ILS.pm
C4/SIP/Sip/MsgType.pm
etc/SIPconfig.xml