SIP sends the configured institution ID in the AO field, but nearly every SIP-using vendor I've worked with assumes that the AO field will contain the patron's home branch code instead. We've dealt with this by creating custom fields, but it would be simpler and easier if we had the option of sending the patron's home branchcode in the AO field for patron status and patron information requests. The SIP2 spec lists is simply as "The library's institution ID" leaving pretty much everything about it up to interpretation.
Created attachment 189974 [details] [review] Bug 41311 - Add ability for SIP to send patron home library ( branchcode ) in AO field
Created attachment 189975 [details] [review] Bug 41311: Update DBIC [DO NOT PUSH]
Created attachment 190080 [details] [review] Bug 41311 - Add ability for SIP to send patron home library ( branchcode ) in AO field Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Created attachment 190081 [details] [review] Bug 41311: Update DBIC [DO NOT PUSH] Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Created attachment 190083 [details] [review] Bug 41311: Add ability for SIP to send patron home library ( branchcode ) in AO field Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Created attachment 190084 [details] [review] Bug 41311: Update DBIC [DO NOT PUSH] Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Can you please add a test plan?
Test Plan: 1) Apply this patch 2) Ensure the patron you use for testing has a different home branch than the institution code set for the SIP account you will be testing with 3) Run a patron information request for the patron you have chosen 4) Note the AO field in the response contains the institution code you've chosen 5) Enable the "Send patron home library in AO" option for the SIP account you are using 6) Repeat step 3 7) Note the AO field now has the patron's home library in the AO field!