From d73ba54cd4e32bfd52553e44c8025f3e114f72b5 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 4 Mar 2010 15:27:56 +0000 Subject: [PATCH] When the patron search interface is spawned from the patron registration interface for listing potential duplicate patrons, correctly handle the horizontal patron summary setting. 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 | 5 +---- Open-ILS/xul/staff_client/server/patron/display.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 35df5ca23c..2b09355b9c 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -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() { diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 8981404e32..04308bf303 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -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) { -- 2.11.0