From bbf03b1937f4a60758f0538f145a1a08921eda78 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Tue, 31 May 2011 15:46:50 -0400 Subject: [PATCH] Specify the display field for linked objects with fm_columns If a display field isn't specified, it defaults to the key field, which is essentially the same as not fleshing the object in the first place. Let me know if fieldmapper has or gains a way of specifying such "display" fields, and we can augment fm_columns to use it as well. Signed-off-by: Jason Etheridge Signed-off-by: Dan Scott --- Open-ILS/xul/staff_client/server/patron/search_result.js | 5 ++++- 1 file changed, 4 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 fadbb684ff..5099ce803f 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.js +++ b/Open-ILS/xul/staff_client/server/patron/search_result.js @@ -36,7 +36,10 @@ patron.search_result.prototype = { 'au_family_name' : { 'hidden' : false }, 'au_first_given_name' : { 'hidden' : false }, 'au_second_given_name' : { 'hidden' : false }, - 'au_dob' : { 'hidden' : false } + 'au_dob' : { 'hidden' : false }, + 'au_profile' : { 'fleshed_display_field' : 'name' }, + 'au_ident_type' : { 'fleshed_display_field' : 'name' }, + 'au_ident_type2' : { 'fleshed_display_field' : 'name' } }).concat( obj.list.fm_columns('ac',{ '*' : { 'remove_virtual' : true, 'expanded_label' : true, 'hidden' : true }, -- 2.43.2