From: phasefx Date: Thu, 19 Feb 2009 18:23:57 +0000 (+0000) Subject: embed catalog in patron display for Place Hold action X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bdaea4b809e76566c055bf6ec794d7f50ee9b3be;p=Evergreen.git embed catalog in patron display for Place Hold action git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12236 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 496eff243a..316cade8cf 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2344,6 +2344,8 @@ + + diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index e141dc28d4..a32b46b402 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -316,6 +316,7 @@ patron.display.prototype = { //+ '?patron_id=' + window.escape( obj.patron.id() ), {}, { + 'display_window' : window, 'patron_id' : obj.patron.id(), 'on_list_change' : function(h) { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 61c38e7053..73301326f9 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -901,6 +901,20 @@ patron.holds.prototype = { obj.clear_and_retrieve(); ev.target.setAttribute('checked',ev.target.checked); } + ], + 'cmd_search_opac' : [ + ['command'], + function(ev) { + var content_params = { 'session' : ses(), 'authtime' : ses('authtime'), 'patron_id' : obj.patron_id }; + content_params.new_tab = xulG.new_tab; + content_params.set_tab = xulG.set_tab; + content_params.set_tab_name = xulG.set_tab_name; + content_params.open_chrome_window = xulG.open_chrome_window; + content_params.url_prefix = xulG.url_prefix; + content_params.network_meter = xulG.network_meter; + content_params.chrome_xulG = xulG.chrome_xulG; + xulG.display_window.g.patron.right_deck.set_iframe( urls.XUL_OPAC_WRAPPER, {}, content_params); + } ] } } @@ -929,6 +943,7 @@ patron.holds.prototype = { if (x_lib_menu_placeholder) x_lib_menu_placeholder.hidden = false; break; default: + if (obj.controller.view.cmd_search_opac) obj.controller.view.cmd_search_opac.setAttribute('hidden', false); if (x_fetch_more) x_fetch_more.hidden = true; if (x_lib_type_menu) x_lib_type_menu.hidden = true; if (x_lib_menu_placeholder) x_lib_menu_placeholder.hidden = true; diff --git a/Open-ILS/xul/staff_client/server/patron/holds.xul b/Open-ILS/xul/staff_client/server/patron/holds.xul index 4d530c0f5a..f449a65a6d 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.xul +++ b/Open-ILS/xul/staff_client/server/patron/holds.xul @@ -99,6 +99,7 @@