TPAC: Escape single quotes in MFHD record location
[transitory.git] / Open-ILS / src / templates / opac / parts / js.tt2
index b4a775d..d6cacbe 100644 (file)
@@ -23,7 +23,7 @@
                 [% FOR summary IN ctx.mfhd_summaries %]
                 {
                     'id' : '[% summary.sre_id %]', 
-                    'label' : '[% summary.location %]',
+                    'label' : '[% summary.location | replace("'", "\\'") %]',
                     'entryNum' : '[% loop.index %]',
                     'owning_lib' : '[% summary.owning_lib %]'
                 },