From b844a3c1fbda7fc66193e5c3f400ba0b3e35d7de Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 1 Oct 2012 16:49:04 -0400 Subject: [PATCH] LP#1010027: tweak patron columns in patron search interface specifically, remove the Mailing Address and Billing Address columns that come off the actor table, since they are redundant with the Mailing Addr: Address ID and Billing Addr: Address ID columns that come off the address table. Also, alphabetize the columns coming directly off of the user table. The columns coming off the library card and address tables remain unsorted; I believe their order is as listed in the fm_IDL.xml file for their corresponding fieldmapper definitions. Signed-off-by: Jason Etheridge Signed-off-by: Jennifer Pringle Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/patron/search_result.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.js b/Open-ILS/xul/staff_client/server/patron/search_result.js index 49c452228e..4e95573c0a 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.js +++ b/Open-ILS/xul/staff_client/server/patron/search_result.js @@ -37,7 +37,7 @@ patron.search_result.prototype = { JSAN.use('patron.util'); var columns = obj.list.fm_columns('au',{ - '*' : { 'remove_virtual' : true, 'expanded_label' : false, 'hidden' : true }, + '*' : { 'remove_virtual' : true, 'expanded_label' : false, 'hidden' : true, 'sort_headers' : true }, 'au_barcode' : { 'hidden' : false }, 'au_barred' : { 'hidden' : false }, 'au_family_name' : { 'hidden' : false }, @@ -47,6 +47,8 @@ patron.search_result.prototype = { 'au_profile' : { 'fleshed_display_field' : 'name' }, 'au_ident_type' : { 'fleshed_display_field' : 'name' }, 'au_ident_type2' : { 'fleshed_display_field' : 'name' }, + 'au_mailing_address' : { 'remove_me' : true }, + 'au_billing_address' : { 'remove_me' : true }, 'au_net_access_level' : { 'fleshed_display_field' : 'name' } }).concat( obj.list.fm_columns('ac',{ -- 2.43.2