LP 1984114: Use Patron Preferred Name in SIP2 responses
authorJason Stephenson <jason@sigio.com>
Tue, 9 Aug 2022 17:09:33 +0000 (13:09 -0400)
committerJason Stephenson <jason@sigio.com>
Tue, 21 Feb 2023 14:45:09 +0000 (09:45 -0500)
commit7462d942c71fcd310d1b04a940eb4985472ab9e0
treea997e1534a4f7360657b2ab75b062452e45ef417
parentf1092d181d52ffb9dd6b55d97944a131065e6453
LP 1984114: Use Patron Preferred Name in SIP2 responses

Use a patron's preferred first name, preferred second name, or
preferred family name in SIP2 responses.  If a preferred name field
has no value, then the corresponding regular name field will be used.

To test this patch, you can find a patron with a preferred name field
set and look them up using a Patron Status Request message (23) via
your favorite SIP2 client.  Before applying the patch, the name field
(AE) in the Patron Status Response message (24) will NOT use the
patron's preferred name(s).  After applying the patch and restarting
Evergreen on the server, you repeat the previous Patron Status
Request, and the response will now use the patron's preferred
name(s) in the name field.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm