]> git.evergreen-ils.org Git - working/SIPServer.git/commit
LP 1463943: More Encoding Improvements.
authorJason Stephenson <jason@sigio.com>
Mon, 2 Jan 2017 15:20:59 +0000 (10:20 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 11 Aug 2017 15:51:36 +0000 (11:51 -0400)
commit9b2690bb3ef1290b7048ebbdcd0e5e41478936e3
tree3553c3b9d29a80fda3001397d3eb57f2b6600430
parentcca8575a5849b376e6df57b6be6833a8f1b399ef
LP 1463943: More Encoding Improvements.

First, we improve the encoding search by looking in the institution
config proper.  The search order for an encoding is now:

1. An encoding attribute specified in the account tag.

2. An encoding tag in the institution tag.

3. An encoding tag in the implementation_config tag of the institution
tag as a last resort.

4. Use ASCII if none is set.  (The SIP2 specification practially
requires this.)

The last is done for backward compatibility with existing Evergreen
oils_sip.xml files.  This should be deprecated in the near future and
only the account tag and institution tag proper should be supported.

Second, we improve the handling of ASCII output by stealing a code
chunk from Evergreen's OILS::SIP->clean_text routine to remove
combining characters on strings.

Third, we remove the encoding attribute from the sample SIPconfig.xml
account tag for lpl-sc, and put an encoding tag in the institution
tags for LPL and UWOLS.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Martha Driscoll <driscoll@noblenet.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
SIPconfig.xml
Sip.pm
Sip/MsgType.pm