Bug 21184: (follow-up) Fix adding barcode to waiting hold item in SIP
authorJosef Moravec <josef.moravec@gmail.com>
Fri, 17 Aug 2018 05:26:57 +0000 (05:26 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 31 Aug 2018 10:15:23 +0000 (10:15 +0000)
commita42af283176f652a330db54711c64b97ad8faefc
treeee948d647adda6b98f781ed3ad3cc9a15f758896
parentff1557fef4fe8d8b458151c1c55a3d23d957b91a
Bug 21184: (follow-up) Fix adding barcode to waiting hold item in SIP

Test plan:
1) Set up your SIP: https://wiki.koha-community.org/wiki/Koha_SIP2_server_setup
2) Run:
misc/sip_cli_emulator.pl -a localhost -p 6001 -su <login> -sp <passsword> -l <library_code> --patron <borrowernumber> -s "Y         " -m patron_information

the -s parameter says what kind of additional information you want to see

3) Check the response: if the requested patron has waiting hold, there
is field "AS" with the barcode of waiting item

The right response looks like this:
64              00120180817
052434000100000000000000000000AOCPL|AA1|AEKoha Admin|BLY|CC5|AS39999000004410|PCS|PIY|AFGreetings from Koha. |

More reading ;)
http://multimedia.3m.com/mws/media/355361O/sip2-protocol.pdf

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/SIP/ILS/Patron.pm