[Koha-patches] [PATCH] Bug 5819 - No toolbar in record view when quotes present in title - fix
Janusz Kaczmarek
januszop at gmail.com
Wed Mar 2 00:07:53 CET 2011
>> ---
>> C4/Search.pm | 6 ++++--
>> 1 files changed, 4 insertions(+), 2 deletions(-)
>I fixed something like this yesterday (patch not submitted yet) : a
>TMPL_VAR name="title" ESCAPE="HTML" in the template solves the problem
>better than this code.
>
>--
>Paul POULAIN
>http://www.biblibre.com
>Expert en Logiciels Libres pour l'info-doc
>Tel : (33) 4 91 81 35 08
Something like this perpaps? Would be more general than just a title...
Janusz Kaczmarek
---
.../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc
index 8d4e02e..1c5b20f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc
@@ -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;
}
--
1.7.2.3
More information about the Koha-patches
mailing list