[open-ils-commits] r15251 - in trunk/Open-ILS: web/opac/locale/en-US xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 30 14:05:10 EST 2009


Author: phasefx
Date: 2009-12-30 14:05:05 -0500 (Wed, 30 Dec 2009)
New Revision: 15251

Modified:
   trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
   trunk/Open-ILS/xul/staff_client/server/patron/display.js
   trunk/Open-ILS/xul/staff_client/server/patron/summary.js
   trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul
Log:
entry-point for Group Member interface from Group Member summary

Modified: trunk/Open-ILS/web/opac/locale/en-US/lang.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2009-12-30 18:46:15 UTC (rev 15250)
+++ trunk/Open-ILS/web/opac/locale/en-US/lang.dtd	2009-12-30 19:05:05 UTC (rev 15251)
@@ -2770,7 +2770,7 @@
 <!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">

Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js	2009-12-30 18:46:15 UTC (rev 15250)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js	2009-12-30 19:05:05 UTC (rev 15251)
@@ -353,16 +353,7 @@
                     '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 @@
                     '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 @@
                 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');

Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.js	2009-12-30 18:46:15 UTC (rev 15250)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js	2009-12-30 19:05:05 UTC (rev 15251)
@@ -157,6 +157,16 @@
                             }
                         }
                     ],
+                    '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() {

Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul	2009-12-30 18:46:15 UTC (rev 15250)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul	2009-12-30 19:05:05 UTC (rev 15251)
@@ -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;" />



More information about the open-ils-commits mailing list