From 9cf33d72ecfaa020779c5cafa1918c89ca491bd9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 31 May 2013 09:52:05 -0400 Subject: [PATCH] LP1182519 Per-Hold Behind Desk UI Signed-off-by: Bill Erickson --- .../xul/staff_client/server/locale/en-US/patron.properties | 4 ++++ Open-ILS/xul/staff_client/server/patron/summary.js | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) 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 cee408d123..3672e95e9f 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 @@ -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 + diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 48185e2da6..8cfd2cce75 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -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); } -- 2.11.0