Koha/koha-tmpl
Fridolyn SOMERS f694ed6ba1 Bug 9554: single quote in didyoumean
When using "url" or "uri" template toolkit filters, I noticed that double quotes are escaped (%22), but not single quotes.
This causes sometimes a problem when URL is written in JavaScript code, in a string delimited by single quotes.

This patch corrects by using double quotes for js strings.
Also, adds a test for "didyoumean" feature : when feature is not activated, do not add corresponding javascript.

Test plan :
- activate OpacHighlightedWords syspref
- activate "didyoumean" feature for OPAC
- perform a search begining with a  single quote (ie "'sport")
=> look for javascript errors (you may use firebug)

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-03-19 21:01:51 -04:00
..
intranet-tmpl Bug 9841 - Improve the link from the "logged in as mysql-user"-warning 2013-03-19 20:53:42 -04:00
opac-tmpl Bug 9554: single quote in didyoumean 2013-03-19 21:01:51 -04:00
favicon.ico
index.html
intranet.html
opac.html
templates.readme