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)
committerJason Stephenson <jason@sigio.com>
Thu, 22 Sep 2016 13:41:43 +0000 (09:41 -0400)
port to alt patron summary ui -- phasefx

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>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/xul/staff_client/server/patron/display.xul
Open-ILS/xul/staff_client/server/patron/patron.js

index 4000857..9a47b56 100644 (file)
@@ -42,6 +42,7 @@
         <command id="cmd_holds" />
         <command id="cmd_items_out" />
         <command id="cmd_messages" />
+        <command id="cmd_message_center" />
         <command id="cmd_notes" />
         <command id="cmd_perms" />
         <command id="cmd_reservation" />
                         label="Messages"
                         accesskey="M"
                         command="cmd_messages"/>
+                    <button id="message_center"
+                        label="Message Center"
+                        accesskey="M"
+                        command="cmd_message_center"/>
                     <button id="notes"
                         label="Notes"
                         accesskey="N"
index 7753832..4c6f741 100644 (file)
@@ -111,6 +111,9 @@ function get_tab_name(p_interface) {
             case 'messages':
                 tab_name = 'Messages Patron#' + patron_id;
             break;
+            case 'message_center':
+                tab_name = 'Message Center Patron#' + patron_id;
+            break;
             case 'notes':
                 tab_name = 'Notes Patron#' + patron_id;
             break;
@@ -468,6 +471,7 @@ function patron_ui_setup() {
             "holds",
             "items_out",
             "messages",
+            "message_center",
             "notes",
             "perms",
             "requests",
@@ -548,6 +552,9 @@ function patron_ui_populate() {
                     patron_id
                 );
             break;
+            case 'message_center':
+                src = urls.EG_PATRON_MESSAGE_CENTER + "/" + patron_id;
+            break;
             case 'group':
                 src = urls.XUL_PATRON_INFO_GROUP;
             break;
@@ -644,6 +651,8 @@ function patron_ui_populate() {
                 cw.xulG.patron = patron_object_for_some_interfaces;
                 cw.xulG.reset_summary = reset_summary;
             break;
+            case 'message_center':
+            break;
             case 'group':
             break;
             case 'bills':