From 943e6730a600f7f02b64666553359c55826cfe42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Fri, 14 Apr 2017 23:02:05 +0200 Subject: [PATCH] Bug 18436: SIP: Add home library to the SIP2 patron info response 64 This patch adds the patron's home library code as AQ segment to response 64 (patron information) To test: - Set up Koha SIP2 server ( https://wiki.koha-community.org/wiki/Koha_SIP2_server_setup ) - Test without patch, verify that AQ segement does not appear in response 64 - Apply patch, stop / start SIP2 server (maybe restart plack and memcached as well) - Verify that AQ segment with patron's home library code appears in response 64 --- C4/SIP/Sip/MsgType.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/SIP/Sip/MsgType.pm b/C4/SIP/Sip/MsgType.pm index 4e406e2..cac1d18 100644 --- a/C4/SIP/Sip/MsgType.pm +++ b/C4/SIP/Sip/MsgType.pm @@ -957,6 +957,7 @@ sub handle_patron_info { # use the one returned from the ILS, just in case... $resp .= add_field( FID_PATRON_ID, $patron->id ); $resp .= add_field( FID_PERSONAL_NAME, $patron->name ); + $resp .= add_field( FID_PERM_LOCN, $patron->{branchcode} ); # TODO: add code for the fields # hold items limit -- 2.1.4