From fbb0dad604089c7b724039c63c4c76b9d647c52a 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 --- 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 32bfabfffd..7da79c13f5 100644 --- a/Open-ILS/xul/staff_client/server/circ/util.js +++ b/Open-ILS/xul/staff_client/server/circ/util.js @@ -1183,6 +1183,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 415eb979d8..16763c17b3 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 @@ -278,6 +278,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