]> git.evergreen-ils.org Git - Evergreen.git/commit
TPAC: Escape single quotes in MFHD record location
authorDan Scott <dscott@laurentian.ca>
Thu, 6 Sep 2012 16:25:01 +0000 (12:25 -0400)
committerBen Shum <bshum@biblio.org>
Tue, 12 Mar 2013 00:02:35 +0000 (20:02 -0400)
commitf40d901d7e95d710c9814740af12120c5641eadb
tree7c75913597dad04875303e785e6d6581e00123ca
parentc5019e4ef98378a2f63b770959c7ca29c233825f
TPAC: Escape single quotes in MFHD record location

If an MFHD record contains an 852 field with a subfield containing a
single quote, the unescaped single quote is introduced directly into the
value of the JavaScript hash that uses single quotes as delimiters -
thereby generating a JS exception and preventing the staff client from
properly populating the MFHD Editor menu.

This commit escapes incoming single quotes from the MFHD location field
to prevent that from happening. The other fields in the JS hash are
numeric and therefore should not need escaping.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/js.tt2