From bf325156572bd2a3cbe05f75cde1a9a48149986f Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 8 Nov 2011 15:01:43 -0500 Subject: [PATCH] Show the patron account Create Date in both horizontal and vertical patron summary panes Signed-off-by: Jason Etheridge Signed-off-by: Mike Rylander --- .../xul/staff_client/server/locale/en-US/patron.properties | 1 + Open-ILS/xul/staff_client/server/patron/summary.js | 11 +++++++++++ Open-ILS/xul/staff_client/server/patron/summary_overlay.xul | 3 +++ .../xul/staff_client/server/patron/summary_overlay_horiz.xul | 3 +++ 4 files changed, 18 insertions(+) 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 d4996b7e1e..4f0ced6a83 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 @@ -348,6 +348,7 @@ staff.patron.search_result.billing_address_column_label_prefix=Billing Addr: staff.patron.summary.patron_bill.money=$ %1$s staff.patron.summary.retrieve.no_barcode=summary: No barcode or ID staff.patron.summary.patron_net_access=Internet +staff.patron.summary.create_date=Account created on staff.patron.summary.expires_on=Expires on staff.patron.summary.updated_on=Last updated on staff.patron.summary.standing_penalty.remove=Remove diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 03f9e44b94..fd6b91a0b2 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -531,6 +531,17 @@ patron.summary.prototype = { }; } ], + 'patron_account_create_date' : [ + ['render'], + function(e) { + return function() { + util.widgets.set_text(e, + patronStrings.getString('staff.patron.summary.create_date') + ' ' + + util.date.formatted_date( obj.patron.create_date(), '%{localized_date}' ) + ); + }; + } + ], 'patron_date_of_exp' : [ ['render'], function(e) { diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul index f341d42c08..b93cd38000 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -44,6 +44,9 @@ + + + diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul index 3687fff4a4..544b3a41c0 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul @@ -84,6 +84,9 @@ + + + -- 2.11.0