]> 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)
committerDan Wells <dbw2@calvin.edu>
Fri, 7 Sep 2012 18:00:09 +0000 (14:00 -0400)
commit2843eb6c81f0d330f7eac7da43369538437531dc
treeeb65afd2b1595239c93844667b5d72c74c06e89d
parent4ecaab1de92e01221d223ebd9784d9d3921400d1
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>
Open-ILS/src/templates/opac/parts/js.tt2