From: Ben Shum Date: Thu, 23 May 2013 20:32:49 +0000 (-0400) Subject: LP1081576 - fix utf8 characters in searches using portal page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6bd6690173be01bb9700e3cca731dec64ce046c7;p=evergreen%2Fequinox.git LP1081576 - fix utf8 characters in searches using portal page Replace escape() with encodeURIComponent() on the portal page to allow utf8 characters to be passed more appropriately to the subsequent search in catalog. Thanks Dan Scott for pointing this out. Signed-off-by: Ben Shum Signed-off-by: Pasi Kallinen --- diff --git a/Open-ILS/xul/staff_client/server/index.xhtml b/Open-ILS/xul/staff_client/server/index.xhtml index 8fb7f1da21..fb638cd38c 100644 --- a/Open-ILS/xul/staff_client/server/index.xhtml +++ b/Open-ILS/xul/staff_client/server/index.xhtml @@ -41,9 +41,9 @@ var search_depth = 0; // 0 = consortium, 1 = system, 2 = library, 3 = sub-library, etc. if(textbox && textbox.value != "") { - var opac_url = xulG.url_prefix('opac_rresult') + "?rt=keyword&tp=keyword&l=" + home_ou_id + "&d=" + search_depth +"&f=&t=" + escape(textbox.value); + var opac_url = xulG.url_prefix('opac_rresult') + "?rt=keyword&tp=keyword&l=" + home_ou_id + "&d=" + search_depth +"&f=&t=" + encodeURIComponent(textbox.value); if (urls.opac_rresult.match(/\/eg\/opac\/results/)) { - opac_url = xulG.url_prefix('opac_rresult') + "?query=" + escape(textbox.value); + opac_url = xulG.url_prefix('opac_rresult') + "?query=" + encodeURIComponent(textbox.value); } var params = {'tab_name':'Catalog'}; var content_params = { 'session' : ses(), 'authtime' : ses('authtime'), 'opac_url' : opac_url };