[Koha-bugs] [Bug 12071] javascript broken for a search with double quotes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 11 11:04:31 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12071

--- Comment #1 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 26997
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26997&action=edit
Bug 12071 - javascript broken for a search with double quotes

In staff interface, when performing a simple search with a double quote (ie
"histoire algerie"), the javascript is broken in results page because of :

function GetZ3950Terms(){
  var strQuery="&frameworkcode=";
  strQuery += "&" + "title" + "=" + ""histoire%20algerie"";

This patch moves URI escaping from perl to template with uri TT filter.

Test plan :
- In staff interface, perform a search with double quotes that will return no
result, ie "aaa xxx"
=> Without patch, javascript is broken
=> With patch, javascript is not broken
- Click on Z3950 button on results page
=> Without patch, the Title input is empty
=> With patch, the Title input contains the search terms

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list