From 5fcf1e87c9412d6d7552b4cea699a358a267e496 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Mon, 7 Nov 2016 07:40:24 -0500 Subject: [PATCH] LP#1639782 - Add Active Date to Item Status Column Picker Circ and Cataloging staff need a quick way to view the Active Date of an item in the "Item Status" (F5) interface. This makes that column available for selection. Signed-off-by: Chris Sharp Signed-off-by: Kathy Lussier --- Open-ILS/xul/staff_client/server/circ/util.js | 17 +++++++++++++++++ .../staff_client/server/locale/en-US/circ.properties | 1 + 2 files changed, 18 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/util.js b/Open-ILS/xul/staff_client/server/circ/util.js index 346a4252c8..c9b557e29d 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1229,6 +1229,23 @@ circ.util.columns = function(modify,params) { }, { 'fm_class' : 'acp', + 'id' : 'acp_active_date', + 'label' : document.getElementById('circStrings').getString('staff.circ.utils.active_date'), + 'flex' : 1, + 'sort_type' : 'date', + 'primary' : false, + 'hidden' : true, + 'editable' : false, 'render' : function(my) { return util.date.formatted_date( my.acp.active_date(), '%{localized}' ); } + ,'sort_value' : function(my) { + return util.date.db_date2Date( + my.acp + ? my.acp.active_date() + : null + ).getTime(); + } + }, + { + 'fm_class' : 'acp', 'id' : 'acp_edit_date', 'label' : document.getElementById('circStrings').getString('staff.circ.utils.edit_date'), 'flex' : 1, diff --git a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties index 926e3a21f6..7f3798c74e 100644 --- a/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties +++ b/Open-ILS/xul/staff_client/server/locale/en-US/circ.properties @@ -281,6 +281,7 @@ staff.circ.utils.xact_finish=Transaction Finished staff.circ.utils.checkin_scan_time=Checkin Scan Date staff.circ.utils.checkin_workstation=Checkin Workstation staff.circ.utils.create_date=Date Created +staff.circ.utils.active_date=Date Active staff.circ.utils.edit_date=Date Last Edited staff.circ.utils.bre.create_date=Date Record Created staff.circ.utils.bre.edit_date=Date Record Last Edited -- 2.11.0