Specify the display field for linked objects with fm_columns
authorJason Etheridge <jason@esilibrary.com>
Tue, 31 May 2011 19:46:50 +0000 (15:46 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 24 Jun 2011 23:15:43 +0000 (19:15 -0400)
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 <jason@esilibrary.com>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/xul/staff_client/server/patron/search_result.js

index fadbb68..5099ce8 100644 (file)
@@ -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 },