Bug 9419: The highlight feature can cause a browser freeze
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 17 Jan 2013 15:52:18 +0000 (16:52 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 30 Mar 2013 12:03:07 +0000 (08:03 -0400)
commit3e413c5491edca64b65f7f2a63cf5497bd6682e9
tree84efebbb7b150a08fa183d07431eec310ff05bcd
parent9867d3c64d23f314db53a8751cb4cc240f4c8e9a
Bug 9419: The highlight feature can cause a browser freeze

Test plan:
- switch on the OpacHighlightedWords syspref
- search at the opac and intranet a string with a space (e.g.
  au,wrdl:"Shakespeare,  William" note the double space after the comma)
- without the patch your browser will be frozen during a few seconds,
  after applying it, the highlight works better.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tt