From 7e1b5a0a45d5476ac24d006a9ba4de0dd33132ab Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 18 Feb 2015 23:42:22 +0000 Subject: [PATCH] LP#1410369: hook up patron message center to XUL staff client This adds a new "Message Center" item in the "Other" menu on the patron display. Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier LP#1410369: typo fix (feel free to squash when merging) Signed-off-by: Galen Charlton Signed-off-by: Kathy Lussier --- Open-ILS/web/opac/locale/en-US/lang.dtd | 2 ++ .../staff_client/chrome/content/main/constants.js | 1 + Open-ILS/xul/staff_client/server/patron/display.js | 14 ++++++++++++++ .../xul/staff_client/server/patron/display.xul | 1 + .../staff_client/server/patron/display_horiz.xul | 1 + .../server/patron/display_horiz_overlay.xul | 1 + .../staff_client/server/patron/display_overlay.xul | 1 + 7 files changed, 21 insertions(+) diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 2da48ef065..e4e07df2a5 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -3507,6 +3507,8 @@ + + diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index 8c48bedae2..d435afb51b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -520,6 +520,7 @@ var urls = { 'SERIAL_PRINT_ROUTING_LIST_USERS' : 'oils://remote/eg/serial/print_routing_list_users', 'XUL_SERIAL_BATCH_RECEIVE': 'oils://remote/xul/server/serial/batch_receive.xul', 'EG_TRIGGER_EVENTS' : 'oils://remote/eg/actor/user/event_log', + 'EG_PATRON_MESSAGE_CENTER' : 'oils://remote/eg/actor/user/message', 'XUL_SEARCH_PREFS' : 'chrome://open_ils_staff_client/content/main/search_prefs.xul', 'XUL_SERVER_ADDONS' : 'oils://remote/xul/server/addon/addons.xul' } diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 87b50e2ec6..8fd0847d68 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -346,6 +346,20 @@ patron.display.prototype = { ); } ], + 'cmd_patron_message_center' : [ + ['command'], + function(ev) { + obj.right_deck.set_iframe( + xulG.url_prefix(urls.XUL_REMOTE_BROWSER), + {}, + { + 'url': urls.EG_PATRON_MESSAGE_CENTER + "/" + obj.patron.id(), + 'show_print_button': false, + 'show_nav_buttons': false + } + ); + } + ], 'cmd_patron_info_stats' : [ ['command'], function(ev) { diff --git a/Open-ILS/xul/staff_client/server/patron/display.xul b/Open-ILS/xul/staff_client/server/patron/display.xul index 65a1a740a4..3b70f7abf1 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.xul +++ b/Open-ILS/xul/staff_client/server/patron/display.xul @@ -107,6 +107,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/display_horiz.xul b/Open-ILS/xul/staff_client/server/patron/display_horiz.xul index 9876065a04..8e3e353df8 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_horiz.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_horiz.xul @@ -107,6 +107,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul b/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul index a73aa4681e..f148e29516 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.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 7437b76041..13b527a0ad 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul @@ -96,6 +96,7 @@ + -- 2.43.2