Bug 5819 : No toolbar in record view when quotes present in title - fix
authorJanusz Kaczmarek <januszop@gmail.com>
Mon, 14 Mar 2011 06:21:47 +0000 (07:21 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 14 Mar 2011 07:57:15 +0000 (20:57 +1300)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Was able to reproduce problem by surrounding 245$a with "".
Patch fixed the problem.
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc

index 8d4e02e..1c5b20f 100644 (file)
@@ -15,7 +15,7 @@
        function GetZ3950Terms(){
                var strQuery="&frameworkcode=";
                <!-- TMPL_LOOP NAME='z3950_search_params' -->
-                       strQuery += "&" + "<!-- TMPL_VAR NAME="name" -->" + "=" + "<!-- TMPL_VAR NAME="encvalue" -->";
+                       strQuery += "&" + "<!-- TMPL_VAR NAME="name" ESCAPE=HTML -->" + "=" + "<!-- TMPL_VAR NAME="encvalue" ESCAPE=HTML -->";
                <!-- /TMPL_LOOP -->
                return strQuery;
        }