When the patron search interface is spawned from the patron registration interface...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Mar 2010 15:27:56 +0000 (15:27 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 4 Mar 2010 15:27:56 +0000 (15:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15690 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/server/patron/display.js

index 35df5ca..2b09355 100644 (file)
@@ -1122,10 +1122,7 @@ main.menu.prototype = {
     'spawn_search' : function(s) {
         var obj = this;
         obj.error.sdump('D_TRACE', offlineStrings.getFormattedString('menu.spawn_search.msg', [js2JSON(s)]) ); 
-        obj.data.stash_retrieve();
-        var loc = obj.url_prefix(urls.XUL_PATRON_DISPLAY);
-        loc += '?doit=1&query=' + window.escape(js2JSON(s));
-        obj.new_tab( loc, {}, {} );
+        obj.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON(s) } );
     },
 
     'init_tab_focus_handlers' : function() {
index 8981404..04308bf 100644 (file)
@@ -220,7 +220,7 @@ patron.display.prototype = {
                                 function spawn_search(s) {
                                     obj.error.sdump('D_TRACE', $("commonStrings").getFormattedString('staff.patron.display.cmd_patron_edit.edit_search', [js2JSON(s)]) ); 
                                     obj.OpenILS.data.stash_retrieve();
-                                    xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : s } );
+                                    xulG.new_patron_tab( {}, { 'doit' : 1, 'query' : js2JSON(s) } );
                                 }
 
                                 function spawn_editor(p) {