LP#1338761: add support for Relais extensions to message 24 user/gmcharlt/relais_extensions
authorGalen Charlton <gmc@esilibrary.com>
Mon, 7 Jul 2014 19:55:05 +0000 (12:55 -0700)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 7 Jul 2014 19:55:05 +0000 (12:55 -0700)
commit14eb352895f6b01ecd09d7b17d1b50391a1b2510
treef5079eebbcc0934e08736cbd5b94543799b5b2e2
parenta9e1e4dc9a733afd1135bf7562018422da44204b
LP#1338761: add support for Relais extensions to message 24

The Relais SIP2 client expects that the Patron Status Response
(msg 24) will contain certain non-standard fields that are more
properly included in the patron information response:

- patron home address
- patron email
- patron home phone

In addition, and contrary to the specification, Relais expects that
the variable fields in the response will be given in the order that
they appear in the spec.

This patch ensures that the Patron Status repsonse emits the
institution ID, patron ID, and personal name in that order.  It also
adds a new institution option, relais_extensions_to_msg24, to make
the response includes the additional fields.  For example:

  <relais_extensions_to_msg24 enabled="true" />

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
SIPconfig.xml
Sip/Configuration/Institution.pm
Sip/MsgType.pm