[open-ils-commits] [GIT] Evergreen ILS branch rel_2_4 updated. 272e138b2231c94d5dfd474cf80cea9fcfb63279

Evergreen Git git at git.evergreen-ils.org
Fri May 31 12:54:59 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_4 has been updated
       via  272e138b2231c94d5dfd474cf80cea9fcfb63279 (commit)
      from  8924b886b16f86c82edf02f2afbc4845f22d31fc (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 272e138b2231c94d5dfd474cf80cea9fcfb63279
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 fafe2a1..dabaa56 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