[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 6bd6690173be01bb9700e3cca731dec64ce046c7

Evergreen Git git at git.evergreen-ils.org
Fri May 31 12:54:58 EDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_3 has been updated
       via  6bd6690173be01bb9700e3cca731dec64ce046c7 (commit)
      from  bcd1986bcbc8c60efe56120cc0030c66484bbb74 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6bd6690173be01bb9700e3cca731dec64ce046c7
Author: Ben Shum <bshum at biblio.org>
Date:   Thu May 23 16:32:49 2013 -0400

    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 <bshum at biblio.org>
    Signed-off-by: Pasi Kallinen <pasi.kallinen at pttk.fi>

diff --git a/Open-ILS/xul/staff_client/server/index.xhtml b/Open-ILS/xul/staff_client/server/index.xhtml
index 8fb7f1d..fb638cd 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 };

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/xul/staff_client/server/index.xhtml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list