<!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">
'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' : [
'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,
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');
<commandset id="patron_summary_cmds">
<command id="group_tab_retrieve_patron"/>
+ <command id="spawn_group_interface"/>
</commandset>
<popupset id="patron_summary_popups">
<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;" />