Bug 9252 - Add option to send patron's home branch in AF field
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 10 Dec 2012 13:54:24 +0000 (08:54 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 8 Sep 2013 06:07:38 +0000 (06:07 +0000)
commite1de36fbb94c8e4046f564b200a1e8180df5bfcf
treedfbafc9d04b4d7dbae2a18a7e199b32d830d6f36
parent6f5eef782cea307da809dfac7a2506a11c2bfda2
Bug 9252 - Add option to send patron's home branch in AF field

This patch gives you the option of sending a patrons home branch code
in an AF field for patron status requests. It is controlled at the account
login level, so it can be enable on a per-sip-login basis.

Test Plan:
1) Apply patch
2) Edit SIPconfig.xml, add the parameter 'send_patron_home_library_in_af="1"'
   to the login you will be using to test.
3) Start your SIP2 server.
4) Connect to it via telnet ( something like: '9300CNterm1|COterm1|CPCPL|' )
5) Send a patron status request ( like: '2300120121110    82925AOCPL|AA23529000035676|ACterm1|ADletmein' )
6) Examine reponse you should see something like this:
      "24              00120121210    085332AEHenry Acevedo|AA23529000035676|BLY|CQN|AFGreetings from Koha. |AFMPL|AO|"
   Note the second AF field with the value MPL.

Signed-off-by: George Williams <georgew@latahlibrary.org>
Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
C4/SIP/Sip/MsgType.pm
etc/SIPconfig.xml