LP1182519 Per-Hold Behind Desk UI
authorBill Erickson <berick@esilibrary.com>
Fri, 31 May 2013 13:52:05 +0000 (09:52 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 31 May 2013 13:52:05 +0000 (09:52 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
Open-ILS/xul/staff_client/server/patron/summary.js

index cee408d..3672e95 100644 (file)
@@ -436,3 +436,7 @@ staff.item.batch.hold.retry_btn_label=Retry
 staff.item.batch.hold.override_btn_label=Override
 staff.item.batch.hold.user_not_found=User Not Found
 
+# hold count tooltip labels
+staff.patron.summary.hold_counts_behind_desk=Available / Total (Behind Desk)
+staff.patron.summary.hold_counts=Available / Total
+
index 48185e2..8cfd2cc 100644 (file)
@@ -458,7 +458,6 @@ patron.summary.prototype = {
                                         }
                                         if (e3) {
                                             if (robj.behind_desk) {
-                                                alert(e3);
                                                 removeCSSClass(e3.parentNode, 'hideme');
                                                 util.widgets.set_text(e3, robj.behind_desk);
                                             } else {
@@ -469,8 +468,15 @@ patron.summary.prototype = {
                                             var str = robj.ready + '/' + robj.total;
                                             if (robj.behind_desk) {
                                                 str += ' (' + robj.behind_desk + ')';
-                                                under_btn.setAttribute('tooltiptext', 
-                                                    'Ready / Total (Behind Desk)'); // I18N
+                                                under_btn.setAttribute(
+                                                    'tooltiptext', patronStrings.getString(
+                                                        'staff.patron.summary.hold_counts_behind_desk')
+                                                );
+                                            } else {
+                                                under_btn.setAttribute(
+                                                    'tooltiptext', patronStrings.getString(
+                                                        'staff.patron.summary.hold_counts')
+                                                );
                                             }
                                             util.widgets.set_text(under_btn, str);
                                         }