I add a new property "Languages" to user profiles. This is a managed metadata property (type String (Multi Value))
Users select 2-3 languages they speak
In people search results I want to display the spoken languages along with other default info (Name, Job title etc.). I modify the people search core results webpart xsl accordingly so that languages information is included.
On searching the language field is included but only the first chosen language shows up in the person's details card. If a user speaks more than 1 language only the first one is displayed.
When I configure the XSL to display all properties (see http://msdn.microsoft.com/en-us/library/ms546985.aspx) the following relevant info is returned:
<languages>Polish</languages> <department>IT</department> <hithighlightedsummary>IT <ddd /> PolishPortugueseEnglish <ddd /No</hithighlightedsummary> <hithighlightedproperties>
As seen in the above example (I'm searching for a user who speaks Polish, Portuguese and english) using the troubleshooting string returns "Polish" as value for the language parameter (partial info). However, the highlightedsummary field displays the full information - there are actually 3 values (Polish, Portuguese, English).
- Even though only the first value displays for a user search refinements show all the values
I initially spent lots of time thinking the XSL in my people results web part is to blame. However, it doesn't seem to be the case - the search returns only the first option for the language parameter before the result is transformed via the XSL.
Any idea if it's possible to display all values for a multi-valued managed metadata property in the user search result?
Thanks in advance, Greg