From ec6120eabb80648ebc6b5c1e1e7c3f0b1b4f1d3b Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 19 Feb 2009 06:56:08 +0000 Subject: [PATCH] option to re-display the "stop sign" page 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 | 2 ++ .../xul/staff_client/server/locale/en-US/patron.properties | 1 + Open-ILS/xul/staff_client/server/patron/display.js | 11 +++++++++++ Open-ILS/xul/staff_client/server/patron/display.xul | 1 + Open-ILS/xul/staff_client/server/patron/display_overlay.xul | 1 + 5 files changed, 16 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 78c9492a8c..496eff243a 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -1186,6 +1186,8 @@ + + diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties index a60b6412eb..21090546b7 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/patron.properties @@ -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 diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index a229182e00..e12deb0497 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -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,

' + $("patronStrings").getString('staff.patron.display.no_alerts_or_messages') + '

',{},{}); + } + } + ], 'cmd_patron_exit' : [ ['command'], function(ev) { @@ -535,6 +545,7 @@ patron.display.prototype = { + $("patronStrings").getString('staff.patron.display.init.network_request.window_message') + ''); 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])); } diff --git a/Open-ILS/xul/staff_client/server/patron/display.xul b/Open-ILS/xul/staff_client/server/patron/display.xul index 8a929262fe..d06ba2dee3 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.xul +++ b/Open-ILS/xul/staff_client/server/patron/display.xul @@ -96,6 +96,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul index 276e49d28e..93b8a1bdb1 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul @@ -89,6 +89,7 @@ label="&staff.patron_navbar.edit;" accesskey="&staff.patron_navbar.edit.accesskey;"/>