Bug 12571 - Add ability to customize SIP2 screen messages
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 14 Jul 2014 13:50:32 +0000 (09:50 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 28 Oct 2014 12:26:47 +0000 (09:26 -0300)
commitc95a4b0f84bd110c386b9f08bfe96ecc420fe070
tree23dbc669a5f9edbab9006c38abb7294f863a00bd
parent76c904a735736ec70edb19201d23efa6982df3ba
Bug 12571 - Add ability to customize SIP2 screen messages

We should add the ability to apply a regular expression to screen
messages for the SIP2 server. This would allow libraries to not only
customize the screen messages the patron sees, but can also allow screen
messages to be translated.

Test Plan:
1) Apply this patch
2) Inspect etc/SIPconfig.xml, note the new screen_msg_regex tags
   that can be nested inside a given login tag.
3) Add one or more screen_msg_regex tags to your own SIP config
   Recommendation: s/Greetings from Koha./Welcome to your library!/g
4) Restart your SIP2 server
5) Test with a SIP2 machine, or use /misc/sip_cli_emulator.pl
6) Note your new AF fields!

Signed-off-by: Jason Burds <jburds@dubuque.lib.ia.us>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/SIP/Sip.pm
C4/SIP/Sip/MsgType.pm
etc/SIPconfig.xml