https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34326

--- Comment #7 from Marion Durand <[email protected]> ---
Created attachment 180741
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=180741&action=edit
Bug 34326: (follow-up) Add forbidden notforloan status option

Add a SIP option to prevent the checkin of items if they have a special status.

The follow-up fixes a bug where SIP reported a failed checkin even if the
checkin was correctly done by Koha.

Test plan (assuming ktd)
1- checkout 4 items to a single patron
In the following example I used barcode 3999900000017, 3999900000018,
3999900000019 and 3999900000020 and the patron cardnumber 23529000035676

2- Update these items notforloan value ($7 in marc21, $o in unimarc) with 3
different not for loan status and an empty not for loan status

In the following example I used
3999900000017 notforloan = 1 "Not for loan"
3999900000018 notforloan = 2 "Staff collection"
3999900000019 notforloan = 3 "Added to bundle"
3999900000020 notforloan is empty

3- Edit file /etc/koha/sites/kohadev/SIPconfig.xml
Add to one of the login the parameter "forbidden_notforloan_status"" with two
different notforloan status previously used

In the following example I used
<login id="term1" password="term1" delimiter="|" error-detect="enabled"
institution="CPL" encoding="ascii" checked_in_ok="1"
forbidden_notforloan_status="1,2" />

4- restart sip (in KTD "sudo koha-sip --stop kohadev" then "sudo koha-sip
--start kohadev")

5- checkin the first two items with sip_cli_emulator (the ones with the
forbidden notforloan status). The checkin should fail (response starts with
100), a screen message (AF field) is added to explain and these items should
still be checked out to the patron in the interface

/kohadevbox/koha/misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su=term1
-sp=term1 -l=CPL -m=checkin --patron=23529000035676 --item=3999900000017

/kohadevbox/koha/misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su=term1
-sp=term1 -l=CPL -m=checkin --patron=23529000035676 --item=3999900000018

6- checkin the last two items with sip_cli_emulator (the one with the allowed
notforloan status and the one without any notforloan status). The checkin
should succeed (response starts with 101) and these items should not appear in
the checked out items to the patron in the interface.

/kohadevbox/koha/misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su=term1
-sp=term1 -l=CPL -m=checkin --patron=23529000035676 --item=3999900000019

/kohadevbox/koha/misc/sip_cli_emulator.pl -a 127.0.0.1 -p 6001 -su=term1
-sp=term1 -l=CPL -m=checkin --patron=23529000035676 --item=3999900000020

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to