entry-point for Group Member interface from Group Member summary
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Dec 2009 19:05:05 +0000 (19:05 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Dec 2009 19:05:05 +0000 (19:05 +0000)
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
Open-ILS/xul/staff_client/server/patron/display.js
Open-ILS/xul/staff_client/server/patron/summary.js
Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul

index dcaa36e..25e1748 100644 (file)
 <!ENTITY staff.patron.info.stat_cats.accesskey "S">
 <!ENTITY staff.patron.info.surveys.label "Surveys">
 <!ENTITY staff.patron.info.surveys.accesskey "y">
-<!ENTITY staff.patron.info.group.label "Group">
+<!ENTITY staff.patron.info.group.label "Group Member Details">
 <!ENTITY staff.patron.info.group.accesskey "G">
 <!ENTITY staff.patron.search_form_overlay.inactive.value "Include inactive patrons?">
 <!ENTITY staff.patron.search_form_overlay.inactive.accesskey "I">
index d6d652f..42865bb 100644 (file)
@@ -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');
index 0bd464d..f868266 100644 (file)
@@ -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() {
index 7bd07ba..8ddd04c 100644 (file)
@@ -9,6 +9,7 @@
 
 <commandset id="patron_summary_cmds">
     <command id="group_tab_retrieve_patron"/>
+    <command id="spawn_group_interface"/>
 </commandset>
 
 <popupset id="patron_summary_popups">
@@ -47,6 +48,9 @@
                     <hbox>
                         <hbox id="group_list_actions" />
                         <spacer flex="1" />
+                        <button command="spawn_group_interface"
+                            label="&staff.patron.info.group.label;"
+                            accesskey="&staff.patron.info.group.accesskey;" />
                         <button command="group_tab_retrieve_patron"
                             label="&staff.patron.summary_overlay.group_tab.retrieve_patron.label;" 
                             accesskey="&staff.patron.summary_overlay.group_tab.retrieve_patron.accesskey;" />