From: Jason Etheridge Date: Tue, 31 May 2011 19:46:50 +0000 (-0400) Subject: Specify the display field for linked objects with fm_columns X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bbf03b1937f4a60758f0538f145a1a08921eda78;p=evergreen%2Ftadl.git 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 --- 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 },