Koha/koha-tmpl/opac-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
..
ccsr Bug 8979 - simple addition of news to CCSR theme 2013-03-19 08:46:30 -04:00
lib Bug 8793 - Fix materialTypeCode/typeOf008 icons for NORMARC XSLT 2012-10-12 22:28:16 +02:00
prog Bug 9554: single quote in didyoumean 2013-03-19 21:01:51 -04:00