LP#1410369: hook up patron message center to XUL staff client
authorGalen Charlton <gmc@esilibrary.com>
Wed, 18 Feb 2015 23:42:22 +0000 (23:42 +0000)
committerBill Erickson <berickxx@gmail.com>
Fri, 20 Feb 2015 21:58:18 +0000 (16:58 -0500)
This adds a new "Message Center" item in the "Other" menu
on the patron display.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
LP#1410369: typo fix

(feel free to squash when merging)

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/main/constants.js
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_horiz.xul
Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul
Open-ILS/xul/staff_client/server/patron/display_overlay.xul

index 2da48ef..e4e07df 100644 (file)
 <!ENTITY staff.patron.info.notes.accesskey "N">
 <!ENTITY staff.patron.info.triggered_events.label "Triggered Events">
 <!ENTITY staff.patron.info.triggered_events.accesskey "v">
+<!ENTITY staff.patron.message_center.label "Message Center">
+<!ENTITY staff.patron.message_center.accesskey "r">
 <!ENTITY staff.patron.info.stat_cats.label "Statistical Categories">
 <!ENTITY staff.patron.info.stat_cats.accesskey "S">
 <!ENTITY staff.patron.info.surveys.label "Surveys">
index 8c48bed..d435afb 100644 (file)
@@ -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'
 }
index 87b50e2..8fd0847 100644 (file)
@@ -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) {
index 65a1a74..3b70f7a 100644 (file)
         <command id="cmd_patron_edit" />
         <command id="cmd_patron_info_notes" />
         <command id="cmd_patron_info_triggered_events" />
+        <command id="cmd_patron_message_center" />
         <command id="cmd_patron_info_stats" />
         <command id="cmd_patron_info_surveys" />
         <command id="cmd_patron_info_acq_requests" />
index 9876065..8e3e353 100644 (file)
         <command id="cmd_patron_edit" />
         <command id="cmd_patron_info_notes" />
         <command id="cmd_patron_info_triggered_events" />
+        <command id="cmd_patron_message_center" />
         <command id="cmd_patron_info_stats" />
         <command id="cmd_patron_info_surveys" />
         <command id="cmd_patron_info_acq_requests" />
index a73aa46..f148e29 100644 (file)
@@ -96,6 +96,7 @@
                                     <menuitem label="&staff.patron_navbar.alert;" accesskey="&staff.patron_navbar.alert.accesskey;" command="cmd_patron_alert"/>
                                     <menuitem label="&staff.patron.info.notes.label;" accesskey="&staff.patron.info.notes.accesskey;" command="cmd_patron_info_notes"/>
                                     <menuitem label="&staff.patron.info.triggered_events.label;" accesskey="&staff.patron.info.triggered_events.accesskey;" command="cmd_patron_info_triggered_events"/>
+                                    <menuitem label="&staff.patron.message_center.label;" accesskey="&staff.patron.message_center.accesskey;" command="cmd_patron_message_center"/>
                                     <menuitem label="&staff.patron.info.stat_cats.label;" accesskey="&staff.patron.info.stat_cats.accesskey;" command="cmd_patron_info_stats"/>
                                     <menu id="PatronNavBar_other_booking" label="&staff.main.menu.booking.label;" accesskey="&staff.main.menu.booking.accesskey;">
                                         <menupopup id="PatronNavBar_other_booking_popup">
index 7437b76..13b527a 100644 (file)
@@ -96,6 +96,7 @@
                                     <menuitem label="&staff.patron_navbar.alert;" accesskey="&staff.patron_navbar.alert.accesskey;" command="cmd_patron_alert"/>
                                     <menuitem label="&staff.patron.info.notes.label;" accesskey="&staff.patron.info.notes.accesskey;" command="cmd_patron_info_notes"/>
                                     <menuitem label="&staff.patron.info.triggered_events.label;" accesskey="&staff.patron.info.triggered_events.accesskey;" command="cmd_patron_info_triggered_events"/>
+                                    <menuitem label="&staff.patron.message_center.label;" accesskey="&staff.patron.message_center.accesskey;" command="cmd_patron_message_center"/>
                                     <menuitem label="&staff.patron.info.stat_cats.label;" accesskey="&staff.patron.info.stat_cats.accesskey;" command="cmd_patron_info_stats"/>
                                     <menu id="PatronNavBar_other_booking" label="&staff.main.menu.booking.label;" accesskey="&staff.main.menu.booking.accesskey;">
                                         <menupopup id="PatronNavBar_other_booking_popup">