From c99de2de3e75383c3d4199b4f8e147dbcdee24c2 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 14 Mar 2012 16:19:31 -0400 Subject: [PATCH] make the org full name available in the patron messages interface for each penalty/message Signed-off-by: Jason Etheridge Signed-off-by: Michael Peters --- .../xul/staff_client/server/locale/en-US/common.properties | 1 + Open-ILS/xul/staff_client/server/patron/util.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties index ce0ac8e692..4cac73a199 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/common.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/common.properties @@ -95,6 +95,7 @@ staff.ausp_staff_label=Applied By staff.ausp_set_date_label=Applied On staff.ausp_note_label=Note staff.ausp_org_unit_label=Library +staff.ausp_org_unit_full_label=Library (Full Name) staff.mbts_id_label=Bill # staff.mbts_xact_start_label=Start staff.mbts_xact_finish_label=Finish diff --git a/Open-ILS/xul/staff_client/server/patron/util.js b/Open-ILS/xul/staff_client/server/patron/util.js index 02e074e115..ce41bd655d 100644 --- a/Open-ILS/xul/staff_client/server/patron/util.js +++ b/Open-ILS/xul/staff_client/server/patron/util.js @@ -388,7 +388,14 @@ patron.util.ausp_columns = function(modify,params) { 'primary' : false, 'hidden' : false, 'editable' : false, 'render' : function(my) { return my.ausp ? data.hash.aou[ my.ausp.org_unit() ].shortname() : ''; } + }, + { + 'persist' : 'hidden width ordinal', 'id' : 'ausp_org_unit_full', 'label' : commonStrings.getString('staff.ausp_org_unit_full_label'), 'flex' : 1, + 'primary' : false, 'hidden' : true, 'editable' : false, 'render' : function(my) { + return my.ausp ? data.hash.aou[ my.ausp.org_unit() ].name() : ''; + } } + ]; for (var i = 0; i < c.length; i++) { if (modify[ c[i].id ]) { -- 2.43.2