option to re-display the "stop sign" page
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Feb 2009 06:56:08 +0000 (06:56 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 19 Feb 2009 06:56:08 +0000 (06:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12231 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
Open-ILS/xul/staff_client/server/patron/display.js
Open-ILS/xul/staff_client/server/patron/display.xul
Open-ILS/xul/staff_client/server/patron/display_overlay.xul

index 78c9492..496eff2 100644 (file)
 <!ENTITY staff.patron_navbar.holds.accesskey 'H'>
 <!ENTITY staff.patron_navbar.info 'Display Info'>
 <!ENTITY staff.patron_navbar.info.accesskey 'o'>
+<!ENTITY staff.patron_navbar.alert 'Display Alert and Messages'>
+<!ENTITY staff.patron_navbar.alert.accesskey 'A'>
 <!ENTITY staff.patron_navbar.other 'Other'>
 <!ENTITY staff.patron_navbar.other.accesskey 'o'>
 <!ENTITY staff.patron_navbar.items 'Items Out'>
index a60b641..2109054 100644 (file)
@@ -70,6 +70,7 @@ staff.patron.display.init.network_request.dump_error_message=Not re-displaying t
 staff.patron.display.init.network_request.error_showing_alert=Error showing patron alert and holds availability.
 staff.patron.display.render_search_form.patron_search=Patron Search
 staff.patron.display.tab_name=Patron:
+staff.patron.display.no_alerts_or_messages=No Alerts, Blocks, or Messages
 staff.patron.hold_notices.tooltiptext=ID: %1$s Hold ID: %2$s Notifying Staff ID: %3$s
 staff.patron.hold_notices.new_notification_record=New Notification Record
 staff.patron.hold_notices.method=Method
index a229182..e12deb0 100644 (file)
@@ -282,6 +282,16 @@ patron.display.prototype = {
                                                        );
                                                }
                                        ],
+                    'cmd_patron_alert' : [
+                        ['command'],
+                        function(ev) {
+                            if (obj.msg_url) {
+                                obj.right_deck.set_iframe('data:text/html,'+obj.msg_url,{},{});
+                            } else {
+                                obj.right_deck.set_iframe('data:text/html,<h1>' + $("patronStrings").getString('staff.patron.display.no_alerts_or_messages') + '</h1>',{},{});
+                            }
+                        }
+                    ],
                                        'cmd_patron_exit' : [
                                                ['command'],
                                                function(ev) {
@@ -535,6 +545,7 @@ patron.display.prototype = {
                                                                                                + $("patronStrings").getString('staff.patron.display.init.network_request.window_message') + '</pre></blockquote>');
                                                                                        obj.right_deck.set_iframe('data:text/html,'+data_url,{},{});
                                                                                        obj.old_msg = msg;
+                                            obj.msg_url = data_url;
                                                                                } else {
                                                                                        obj.error.sdump('D_TRACE',$("patronStrings").getFormattedString('staff.patron.display.init.network_request.dump_error_message', [msg]));
                                                                                }
index 8a92926..d06ba2d 100644 (file)
@@ -96,6 +96,7 @@
                <command id="cmd_patron_bills" />
                <command id="cmd_patron_edit" />
                <command id="cmd_patron_info" />
+               <command id="cmd_patron_alert" />
                <command id="cmd_patron_exit" />
                <command id="cmd_patron_retrieve" />
                <command id="cmd_patron_merge" />
index 276e49d..93b8a1b 100644 (file)
@@ -89,6 +89,7 @@
                                 label="&staff.patron_navbar.edit;" accesskey="&staff.patron_navbar.edit.accesskey;"/>
                             <button id="PatronNavBar_info" class="nav" label="&staff.patron_navbar.other;" accesskey="&staff.patron_navbar.other.accesskey;" type="menu">
                                 <menupopup>
+                                    <menuitem label="&staff.patron_navbar.alert;" accesskey="&staff.patron_navbar.alert.accesskey;" command="cmd_patron_alert"/>
                                     <menuitem label="&staff.patron_navbar.info;" accesskey="&staff.patron_navbar.info.accesskey;" command="cmd_patron_info"/>
                                     <menuitem label="&staff.patron_display.verify_password.label;" accesskey="&staff.patron_display.verify_password.accesskey;" command="cmd_verify_credentials"/>
                                     <menuitem label="&staff.main.menu.admin.user_edit.label;" accesskey="&staff.main.menu.admin.user_edit.accesskey;" command="cmd_perm_editor"/>