From f3341a0da8c0e17564a394f2a0aec6409e1df881 Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 30 Dec 2009 19:05:05 +0000 Subject: [PATCH] entry-point for Group Member interface from Group Member summary git-svn-id: svn://svn.open-ils.org/ILS/trunk@15251 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/locale/en-US/lang.dtd | 2 +- Open-ILS/xul/staff_client/server/patron/display.js | 31 +++++++++++++++------- Open-ILS/xul/staff_client/server/patron/summary.js | 10 +++++++ .../server/patron/summary_overlay_horiz.xul | 4 +++ 4 files changed, 36 insertions(+), 11 deletions(-) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index dcaa36e067..25e1748bb7 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -2770,7 +2770,7 @@ - + diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index d6d652f44e..42865bb4be 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -353,16 +353,7 @@ patron.display.prototype = { 'cmd_patron_info_groups' : [ ['command'], function(ev) { - obj.right_deck.set_iframe( - urls.XUL_PATRON_INFO_GROUP, - {}, - { - 'patron_id' : obj.patron.id(), - 'url_prefix' : xulG.url_prefix, - 'new_tab' : xulG.new_tab, - 'new_patron_tab' : xulG.new_patron_tab - } - ); + obj.spawn_group_interface(); } ], 'cmd_patron_alert' : [ @@ -567,6 +558,7 @@ patron.display.prototype = { 'refresh' : function() { obj.refresh_all(); }, 'on_finished' : obj.gen_patron_summary_finish_func(), 'stop_sign_page' : obj.gen_patron_stop_sign_page_func(), + 'spawn_group_interface' : function() { obj.spawn_group_interface(); }, 'new_patron_tab' : xulG.new_patron_tab, 'new_tab' : xulG.new_tab, 'set_tab' : xulG.set_tab, @@ -899,7 +891,26 @@ patron.display.prototype = { alert('Error in patron_stop_sign_page_func(): ' + E); } }; + }, + + 'spawn_group_interface' : function() { + var obj = this; + try { + obj.right_deck.set_iframe( + urls.XUL_PATRON_INFO_GROUP, + {}, + { + 'patron_id' : obj.patron.id(), + 'url_prefix' : xulG.url_prefix, + 'new_tab' : xulG.new_tab, + 'new_patron_tab' : xulG.new_patron_tab + } + ); + } catch(E) { + alert('Error in display.js, spawn_group_interface(): ' + E); + } } + } dump('exiting patron/display.js\n'); diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 0bd464df35..f868266da3 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -157,6 +157,16 @@ patron.summary.prototype = { } } ], + 'spawn_group_interface' : [ + ['command'], + function() { + try { + window.xulG.spawn_group_interface(); + } catch(E) { + alert('Error in summary.js, spawn_group_interface: ' + E); + } + } + ], 'group_tab_retrieve_patron' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul index 7bd07bacc2..8ddd04ce82 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul @@ -9,6 +9,7 @@ + @@ -47,6 +48,9 @@ +