[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. d74561fcec404d3840fb9c1606a8f319833f4855

Evergreen Git git at git.evergreen-ils.org
Fri May 31 12:54:57 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_2 has been updated
       via  d74561fcec404d3840fb9c1606a8f319833f4855 (commit)
      from  7275e2097570b9aa4a3523538f3d46fb4406cc63 (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 d74561fcec404d3840fb9c1606a8f319833f4855
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>
    
    Conflicts:
    	Open-ILS/xul/staff_client/server/index.xhtml

diff --git a/Open-ILS/xul/staff_client/server/index.xhtml b/Open-ILS/xul/staff_client/server/index.xhtml
index 15d77c2e..5fe7ef0 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(urls.opac_rresult) + "?rt=keyword&tp=keyword&l=" + home_ou_id + "&d=" + search_depth +"&f=&t=" + escape(textbox.value);
+                var opac_url =  xulG.url_prefix(urls.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(urls.opac_rresult) + "?query=" + escape(textbox.value);
+                    opac_url =  xulG.url_prefix(urls.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