Adding Office in the People Search Item_Person.html

I created Staff Directory with People Search layout. I was able to add Phone# but can not seem to get Office to display.
I know it is mapped since when I click "about me" for in the upper right where my login name is I see Office.
Within the Item_Person.html I have added this.
'BaseOfficeLocation':'BaseOfficeLocation'
<mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkId':'WorkId','WorkPhone':'WorkPhone','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
var has_Office = !$isEmptyString(ctx.CurrentItem.BaseOfficeLocation);
<!--#_ if(has_Office == true) {
_#-->
<div id="BaseOfficeLocation">
<!--#_ var encodedOffice = $htmlEncode(ctx.CurrentItem.BaseOfficeLocation);
var displayOffice = Srch.U.getSingleHHXMLNodeValue(hhProps, "BaseOfficeLocation");
if ($isEmptyString(displayOffice)) { displayOffice = encodedOffice }
_#-->
<div id="BaseOfficeLocation" class="ms-srch-ellipsis" title="_#= encodedOffice =#_"> _#= displayOffice =#_ </div>
</div>
<!--#_ }
_#-->

Here is what you need to do to get the work phone and office in people search results-
<mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName','OfficeNumber':'OfficeNumber','WorkPhone':'WorkPhone'</mso:ManagedPropertyMapping>
before closing tag add 'OfficeNumber':'OfficeNumber','WorkPhone':'WorkPhone'
Now add these two lines for ref-
                        var has_wphone = !$isEmptyString(ctx.CurrentItem.WorkPhone);
                        var has_Office = !$isEmptyString(ctx.CurrentItem.OfficeNumber); 
and finally add this -
   <!--#_                                         if(has_wphone == true) {
_#-->
                                            <div id="WorkPhone">
<!--#_                                         var encodedwphone = $htmlEncode(ctx.CurrentItem.WorkPhone);
                                                var displaywphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkPhone");
                                               if ($isEmptyString(displaywphone)) { displaywphone = encodedwphone }
_#-->
                                                <div id="WorkPhoneValue" class="ms-srch-ellipsis" title="_#= encodedwphone =#_"> _#=
displaywphone =#_ </div>
                                            </div>
<!--#_                                         }
_#-->
<!--#_                                         if(has_Office == true) {
_#-->
                                            <div id="OfficeNumberField">
<!--#_                                         var encodedOffice = $htmlEncode(ctx.CurrentItem.OfficeNumber);
                                                var displayOffice = Srch.U.getSingleHHXMLNodeValue(hhProps, "OfficeNumber");
                                               if ($isEmptyString(displayOffice)) { displayOffice = encodedOffice }
_#--> 
                                                <div id="OfficeNumberValue" class="ms-srch-ellipsis" title="_#= encodedOffice =#_">Office:
 _#= displayOffice =#_ </div>
                                            </div>
<!--#_                                         }
_#-->
VERY VERY IMPORTANT: after saving the display template make sure you point results from People Search Core webpart to saved display template. You can do that by going to  ‘peopleresults.aspx’ page and in edit mode go to edit people search core result
web part and then in Display Template section select [Use a single template to display items] and chose saved display template from the list.
For more info you can reach me at [email protected]

Similar Messages

  • Adding Fields to People Search Results Page

    Hi
    Working in SharePoint Online, I've been able to add a few fields to the People Search results page successfully:
    Organization
    Office Locator
    Office Location
    Work Phone
    Mobile Phone
    Home Phone
    Work Email
    All of the above fields are working and display on the People search results page.
    I tried to add these and they simply do not display.  There is no error:
    University Email
    Assistant
    Calendar/Scheduling
    I set them up the same way.  I created the Property in the User Profile area.  I then populated the data for each user.  I then added the property as a Managed property (search schema) linked to the Crawled property from the People category.
    Made sure that they were query able, retrievable, searchable, etc.  Then I edited the People Search code and then I waited over the weekend for the search to pick them up.  I came into work this morning and they still do not display.  Here is
    my code, just in case I missed something.  Thanks.
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
    <head>
    <title>UIF People Item with Work Phone</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">Displays a result tailored for a person.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','Organization':'Organization','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','UniversityEmail':'UniversityEmail','OfficeNumber':'OfficeNumber','OfficeLocator':'OfficeLocator','WorkPhone':'WorkPhone','MobilePhone':'MobilePhone','HomePhone':'HomePhone','Assistant':'Assistant','CalendarScheduling':'CalendarScheduling','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    <mso:HtmlDesignStatusAndPreview msdt:dt="string">https://uif.sharepoint.com/search/_catalogs/masterpage/Display Templates/Search/UIF_Item_Person.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
    <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
    <mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
    <div id="Item_Person">
    <!--#_
    if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
    var id = ctx.ClientControl.get_nextUniqueId();
    var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    $setResultItem(itemId, ctx.CurrentItem);
    var container_id = id + "_peopleContainer";
    var hhProps = Srch.U.createXMLDocument("<root>" + ctx.CurrentItem.HitHighlightedProperties + "</root>");
    var encodedPath = $urlHtmlEncode(ctx.CurrentItem.Path);
    var has_pn = !$isEmptyString(ctx.CurrentItem.PreferredName);
    var has_sip = !$isEmptyString(ctx.CurrentItem.SipAddress);
    var has_email = !$isEmptyString(ctx.CurrentItem.WorkEmail);
    var has_universityemail = !$isEmptyString(ctx.CurrentItem.UniversityEmail);
    var has_onumber = !$isEmptyString(ctx.CurrentItem.OfficeNumber);
    var has_bolocation = !$isEmptyString(ctx.CurrentItem.BaseOfficeLocation);
    var has_olocator = !$isEmptyString(ctx.CurrentItem.OfficeLocator);
    var has_wphone = !$isEmptyString(ctx.CurrentItem.WorkPhone);
    var has_mphone = !$isEmptyString(ctx.CurrentItem.MobilePhone);
    var has_hphone = !$isEmptyString(ctx.CurrentItem.HomePhone);
    var has_assistant = !$isEmptyString(ctx.CurrentItem.Assistant);
    var has_calendarscheduling = !$isEmptyString(ctx.CurrentItem.CalendarScheduling);
    var has_jt = !$isEmptyString(ctx.CurrentItem.JobTitle);
    var has_dp = !$isEmptyString(ctx.CurrentItem.Department);
    var has_org = !$isEmptyString(ctx.CurrentItem.Organization);
    var has_abme = !$isEmptyString(ctx.CurrentItem.AboutMe);
    var has_resp = !$isEmptyString(ctx.CurrentItem.Responsibilities);
    var has_pp = !$isEmptyString(ctx.CurrentItem.PastProjects);
    var has_ski = !$isEmptyString(ctx.CurrentItem.Skills);
    var has_sch = !$isEmptyString(ctx.CurrentItem.Schools);
    var has_int = !$isEmptyString(ctx.CurrentItem.Interests);
    var has_vlm = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastMonth);
    var has_vlw = !$isEmptyString(ctx.CurrentItem.ProfileViewsLastWeek);
    var has_query = !$isEmptyString(ctx.CurrentItem.ProfileQueriesFoundYou);
    var isSelfSrch = (has_vlm == true || has_vlw == true || has_query == true);
    var delimiter = "";
    var userPersonaId = $htmlEncode(id) + "_peopleUserPersona";
    var uSip = ctx.CurrentItem.SipAddress;
    var uEmail = ctx.CurrentItem.WorkEmail;
    var uName = ctx.CurrentItem.PreferredName;
    var uPicUrl = ctx.CurrentItem.PictureURL;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Person_HoverPanel.js";
    _#-->
    <div id="_#= $htmlEncode(container_id) =#_" class="ms-srch-people-outerContainer ms-srch-resultHover">
    <div id="_#= $htmlEncode(itemId) =#_" name="Item" class="ms-srch-people-item" onmouseover="EnsureScriptParams('SearchUI.js', 'HP.Init', event, '_#=$scriptEncode(itemId) =#_', '_#=$scriptEncode(hoverId) =#_', '_#=$scriptEncode(hoverUrl) =#_');" onmouseout="EnsureScriptParams('SearchUI.js', 'HP.Hide');">
    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <div id="UserPersonaContainer">
    <div id="UserPersona">
    <div id="_#= userPersonaId =#_"></div>
    </div>
    </div>
    <div id="UserInfoContainer">
    <div id="ContactInfo">
    <div id="NameField">
    <!--#_
    var encodedName = (has_pn == true) ? $htmlEncode(ctx.CurrentItem.PreferredName) : $htmlEncode(ctx.CurrentItem.YomiDisplayName);
    var displayName = Srch.U.getSingleHHXMLNodeValue(hhProps, "preferredname");
    if ($isEmptyString(displayName)) { displayName = encodedName }
    _#-->
    <div id="NameValue" class="ms-srch-ellipsis ms-textLarge">
    <a clicktype="Result" id="NameFieldLink" href="_#= encodedPath =#_" title="_#= encodedName =#_">_#= displayName =#_</a>
    </div>
    </div>
    <!--#_
    if(has_jt == true) {
    _#-->
    <div id="JobTitleField">
    <!--#_
    var encodedJtitle = $htmlEncode(ctx.CurrentItem.JobTitle);
    var displayJtitle = Srch.U.getSingleHHXMLNodeValue(hhProps, "jobtitle");
    if ($isEmptyString(displayJtitle)) { displayJtitle = encodedJtitle }
    _#-->
    <div id="JobTitleValue" class="ms-srch-ellipsis" title="_#= encodedJtitle =#_"> _#= displayJtitle =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_dp == true) {
    _#-->
    <div id="DepartmentField">
    <!--#_
    var encodedDept = $htmlEncode(ctx.CurrentItem.Department);
    var displayDept = Srch.U.getSingleHHXMLNodeValue(hhProps, "department");
    if ($isEmptyString(displayDept)) { displayDept = encodedDept }
    _#-->
    <div id="DepartmentValue" class="ms-srch-ellipsis" title="_#= encodedDept =#_"> <b>_#= displayDept =#_</b> </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_org == true) {
    _#-->
    <div id="Organization">
    <!--#_
    var encodedorg = $htmlEncode(ctx.CurrentItem.Organization);
    var displayorg = Srch.U.getSingleHHXMLNodeValue(hhProps, "Organization");
    if ($isEmptyString(displayorg)) { displayorg = encodedorg }
    _#-->
    <div id="OrganizationValue" class="ms-srch-ellipsis" title="_#= encodedorg =#_"> _#= displayorg =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    <!--#_
    if(has_olocator == true) {
    _#-->
    <div id="OfficeLocator">
    <!--#_
    var encodedolocator = $htmlEncode(ctx.CurrentItem.OfficeLocator);
    var displayolocator = Srch.U.getSingleHHXMLNodeValue(hhProps, "OfficeLocator");
    if ($isEmptyString(displayolocator)) { displayolocator = encodedolocator }
    _#-->
    <div id="OfficeLocatorValue" class="ms-srch-ellipsis" title="_#= encodedolocator =#_"> <b>Office Locator:</b> <a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a></div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_bolocation == true) {
    _#-->
    <div id="OfficeBaseLocation">
    <!--#_
    var encodedbolocation = $htmlEncode(ctx.CurrentItem.BaseOfficeLocation);
    var displaybolocation = Srch.U.getSingleHHXMLNodeValue(hhProps, "BaseOfficeLocation");
    if ($isEmptyString(displaybolocation)) { displaybolocation = encodedbolocation }
    _#-->
    <div id="BaseOfficeLocationValue" class="ms-srch-ellipsis" title="_#= encodedbolocation =#_"> <b>Office Location:</b> _#= displaybolocation =#_ </div>
    </div>
    <hr>
    <!--#_
    _#-->
    <!--#_
    if(has_wphone == true) {
    _#-->
    <div id="WorkPhone">
    <!--#_
    var encodedwphone = $htmlEncode(ctx.CurrentItem.WorkPhone);
    var displaywphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkPhone");
    if ($isEmptyString(displaywphone)) { displaywphone = encodedwphone }
    _#-->
    <div id="WorkPhoneValue" class="ms-srch-ellipsis" title="_#= encodedwphone =#_"> <b>Office Phone:</b> _#= displaywphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_mphone == true) {
    _#-->
    <div id="MobilePhone">
    <!--#_
    var encodedmphone = $htmlEncode(ctx.CurrentItem.MobilePhone);
    var displaymphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
    if ($isEmptyString(displaymphone)) { displaymphone = encodedmphone }
    _#-->
    <div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedmphone =#_"> <b>Mobile Phone:</b> _#= displaymphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_hphone == true) {
    _#-->
    <div id="HomePhone">
    <!--#_
    var encodedhphone = $htmlEncode(ctx.CurrentItem.HomePhone);
    var displayhphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "HomePhone");
    if ($isEmptyString(displayhphone)) { displayhphone = encodedhphone }
    _#-->
    <div id="HomePhoneValue" class="ms-srch-ellipsis" title="_#= encodedhphone =#_"> <b>Home Phone:</b> _#= displayhphone =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    <!--#_
    if(has_email == true) {
    _#-->
    <div id="WorkEmail">
    <!--#_
    var encodedemail = $htmlEncode(ctx.CurrentItem.WorkEmail);
    var displayemail = Srch.U.getSingleHHXMLNodeValue(hhProps, "WorkEmail");
    if ($isEmptyString(displayemail)) { displayemail = encodedemail }
    _#-->
    <div id="WorkEmailValue" class="ms-srch-ellipsis" title="_#= encodedemail =#_"> <b>Foundation Email:</b> _#= displayemail =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_universityemail == true) {
    _#-->
    <div id="UniversityEmail">
    <!--#_
    var encodeduniversityemail = $htmlEncode(ctx.CurrentItem.UniversityEmail);
    var displayuniversityemail = Srch.U.getSingleHHXMLNodeValue(hhProps, "UniversityEmail");
    if ($isEmptyString(displayuniversityemail)) { displayuniversityemail = encodeduniversityemail }
    _#-->
    <div id="UniversityEmailValue" class="ms-srch-ellipsis" title="_#= encodeduniversityemail =#_"> <b>University Email:</b> _#= displayuniversityemail =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    <!--#_
    if(has_assistant == true) {
    _#-->
    <div id="Assistant">
    <!--#_
    var encodedassistant = $htmlEncode(ctx.CurrentItem.Assistant);
    var displayassistant = Srch.U.getSingleHHXMLNodeValue(hhProps, "Assistant");
    if ($isEmptyString(displayassistant)) { displayassistant = encodedassistant }
    _#-->
    <div id="AssistantValue" class="ms-srch-ellipsis" title="_#= encodedassistant =#_"> <b>Assistant:</b> _#= displayassistant =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_calendarscheduling == true) {
    _#-->
    <div id="CalendarScheduling">
    <!--#_
    var encodedcalendarscheduling = $htmlEncode(ctx.CurrentItem.CalendarScheduling);
    var displaycalendarscheduling = Srch.U.getSingleHHXMLNodeValue(hhProps, "CalendarScheduling");
    if ($isEmptyString(displaycalendarscheduling)) { displaycalendarscheduling = encodedcalendarscheduling }
    _#-->
    <div id="CalendarSchedulingValue" class="ms-srch-ellipsis" title="_#= encodedcalendarscheduling =#_"> <b>Calendar/Scheduling:</b> _#= displaycalendarscheduling =#_ </div>
    </div>
    <!--#_
    _#-->
    <hr>
    </div>
    <!--#_
    if(has_resp == true || has_ski == true || has_pp == true || has_int == true || has_sch == true) {
    _#-->
    <div id="MoreInfoShort">
    <!--#_
    if(has_resp == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "responsibilities", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Responsibilities, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="ResponsibilitiesValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Responsibilities) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_ski == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="SkillsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_pp == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="PastProjectsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_int == true) {
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="InterestsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    } else if(has_sch == true){
    var encodedVal = Srch.U.getMultipleHHXMLNodeValues(hhProps, "schools", 3, delimiter);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Schools, 3, delimiter))}
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <div id="SchoolsValue" class="ms-srch-ellipsis">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Schools) =#_ </span>
    _#= encodedVal =#_
    </div>
    <!--#_
    _#-->
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(has_abme == true || has_ski == true || has_pp == true || has_int == true) {
    _#-->
    <div id="MoreInfoLong">
    <!--#_
    if(has_abme == true) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getSingleHHXMLNodeValue(hhProps, "aboutme"), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(ctx.CurrentItem.AboutMe, 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_ski == true && has_resp == true) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "skills", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Skills, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Skills) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_pp == true && (has_ski == true || has_resp == true)) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "pastprojects", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.PastProjects, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_PastProjects) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    } else if(has_int == true && (has_pp == true || has_ski == true || has_resp == true)) {
    var encodedVal = Srch.U.getTrimmedProcessedHHXMLString(Srch.U.getMultipleHHXMLNodeValues(hhProps, "interests", 3, delimiter), 125);
    if (Srch.U.e(encodedVal)) { encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.Interests, 3, delimiter), 125)) }
    if (!Srch.U.e(encodedVal)) {
    _#-->
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_Interests) =#_ </span>
    _#= encodedVal =#_
    <!--#_
    _#-->
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(isSelfSrch == true) {
    _#-->
    <hr class="ms-srch-people-item-separator" />
    <div id="SelfSearchInfo">
    <div id="Heading">
    <a id="EditProfileLink" href="_#= $urlHtmlEncode(ctx.CurrentItem.EditProfileUrl) =#_"> _#= $htmlEncode(Srch.Res.item_People_EditProfileLink) =#_ </a>
    </div>
    <div id="Frequency">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchFrequency) =#_ </span>
    <ul id="FrequencyCard">
    <li id="MonthlyViews">
    <!--#_
    var encodedVal = (ctx.CurrentItem.ProfileViewsLastMonth == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Singular, ctx.CurrentItem.ProfileViewsLastMonth)) :
    $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsMonths_Plural, ctx.CurrentItem.ProfileViewsLastMonth));
    _#-->
    _#= encodedVal =#_
    </li>
    <li id="DailyViews">
    <!--#_
    var encodedVal = (ctx.CurrentItem.ProfileViewsLastWeek == 1) ? $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Singular, ctx.CurrentItem.ProfileViewsLastWeek)) :
    $htmlEncode(String.format(Srch.Res.item_People_SelfSearchFrequency_ViewsWeeks_Plural, ctx.CurrentItem.ProfileViewsLastWeek));
    _#-->
    _#= encodedVal =#_
    </li>
    </ul>
    </div>
    <!--#_
    if(has_query == true) {
    _#-->
    <div id="Keywords">
    <span id="FieldTitle" class="ms-soften"> _#= $htmlEncode(Srch.Res.item_People_SelfSearchKeywords) =#_ </span>
    <!--#_
    var encodedVal = $htmlEncode(Srch.U.getTrimmedString(Srch.U.getUnEncodedMultiValuedResults(ctx.CurrentItem.ProfileQueriesFoundYou, 5, delimiter), 84));
    if (!Srch.U.e(encodedVal)) {
    _#-->
    _#= encodedVal =#_
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    <!--#_
    if(!Srch.U.n(ctx.CurrentItem.LastModifiedTime))
    var lastModifiedTime = ctx.CurrentItem.LastModifiedTime;
    var encodedLastModifiedTimeId = $htmlEncode(id + "_lastModifiedTime");
    AddPostRenderCallback(ctx, function()
    Srch.U.renderFriendlyTimeIntervalString(lastModifiedTime, encodedLastModifiedTimeId);
    _#-->
    <div id="LastModifiedTime">
    <span class="ms-textSmall">_#= $htmlEncode(Srch.Res.item_People_LastModified) =#_</span>
    <span id="_#= encodedLastModifiedTimeId =#_" class="ms-textSmall ms-srch-ellipsis"></span>
    </div>
    <!--#_
    _#-->
    </div>
    <!--#_
    _#-->
    </div>
    </div>
    </div>
    <!--#_
    AddPostRenderCallback(ctx, function(){
    EnsureScriptFunc("clienttemplates.js", "RenderUserFieldWorker", function() {
    var getUserPersona = function() {
    var renderCtx = new ContextInfo();
    renderCtx.Templates = {};
    renderCtx.Templates["Fields"] = {};
    var fieldSchemaData = { "PictureOnly":"1", "PictureSize": "Size_72px"};
    var listSchema = {"EffectivePresenceEnabled": "1", "PresenceAlt": Srch.Res.item_People_NoPresenceAvailable};
    var userData = {"title": uName, "email": uEmail, "picture": uPicUrl, "sip": uSip};
    var personaControlElement = document.getElementById(userPersonaId);
    if (!Srch.U.n(personaControlElement))
    personaControlElement.innerHTML = RenderUserFieldWorker(renderCtx, fieldSchemaData, userData, listSchema);
    if(typeof(ctx.EnqueueImnRequest) == "undefined") { ctx.EnqueueImnRequest = false; }
    if (ctx.EnqueueImnRequest == false) {
    ctx.ClientControl.add_oneTimeResultRendered(function(){ if (typeof(ProcessImn) != "undefined") { ProcessImn(); } });
    ctx.EnqueueImnRequest = true;
    getUserPersona();
    _#-->
    <!--#_
    _#-->
    </div>
    </body>
    </html>

    Hi,
    According to your post, my understanding is that you have an issue about adding fields in people search results page.
    Per my knowledge, there is no issue in your steps, and the issue may be related to the search crawl in SharePoint online.
    For SharePoint server on-premise, we can start the search full crawl, however, for SharePoint online, we could not start the search full crawl manually.
    You can wait for some time to complete the search full crawl in SharePoint online, then check whether it works.
    As this is the forum for SharePoint server on-premise, I’m not familiar with the SharePoint online search crawl, for this issue, I recommend you can post a new question in the forum for Office 365/SharePoint online.
    http://community.office365.com/en-us/forums/154.aspx
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • People Search CellPhone - Office 365

    Hello,
    This is happens in our clients Office 365 SharePoint.
    We've been trying to add the User's Mobile phone number to the People Search Results.
    This is what we've done so far:
    1. From Search Schema, Managed Properties, Mapped RefinableString99 to People:CellPhone, ows_CellPhone
    2. After that we created a new People Search Item Template by copying the original.
    3. There we altered:
    Altered this line to add RefinableString99
    <mso:ManagedP msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName', ..... .... .... 'RefinableString99':'RefinableString99'
    Added variable:
    var has_cphone = !$isEmptyString(ctx.CurrentItem.RefinableString99);
    Added this html block:
    <!--#_
                                            if(has_cphone == true)
    _#-->
    <div id="RefinableString99">
    <!--#_
    var encodedcphone = $htmlEncode(ctx.CurrentItem.RefinableString99);
    var displaycphone = Srch.U.getSingleHHXMLNodeValue(hhProps, "RefinableString99");
    if ($isEmptyString(displaycphone)) { displaywphone = encodedcphone }
    _#-->
    <div id="RefinableString99Value" class="ms-srch-ellipsis" title="_#= encodedcphone =#_"> _#= displaycphone =#_ </div>
    </div>
    <!--#_                                             
                                            else
    _#-->
                                                <div style="display:none">no RefinableString99</div>
    <!--#_
    _#-->
    4. Changed the people search results webpart to use the new display template
    Now when we do a people search we still can't see the mobile phone and as we look at the html-source of the page we can see the "no RefinableString99.
    So it seems the search item doesn't have the RefinableString99 in it, or it is empty. The users have the mobile phone numbers in their profiles.
    Should this work or are we doing something wrong?

    In Office 365's SharePoint we cannot start crawls. They are scheduled By Microsoft.
    I've read somewhere that the full crawl is done once a week and the managed property mapping has been done more than a week ago.

  • SharePoint 2013 Search Display Template People Search Mobile Phone

    Hello,
    I'd like to customize the people search result page. I already added some custom profile properties without any problem. But, when adding the MobilePhone field nothing is display.
    I've created a new display template based on the "Item_Person.html" file. 
    Added the "MobilePhone" field in the ManagedPropertyMapping section
    <mso:ManagedPropertyMapping msdt:dt="string">&#39;WorkPhone&#39;:&#39;WorkPhone&#39;,&#39;MobilePhone&#39;:&#39;MobilePhone&#39;,&#39;Room&#39;:&#39;Room&#39;,&#39;Werkgebieden&#39;:&#39;Werkgebieden&#39;,&#39;AboutMe&#39;:&#39;AboutMe&#39;,&#39;AccountName&#39;:&#39;AccountName&#39;,&#39;BaseOfficeLocation&#39;:&#39;BaseOfficeLocation&#39;,&#39;Department&#39;:&#39;Department&#39;,&#39;HitHighlightedProperties&#39;:&#39;HitHighlightedProperties&#39;,&#39;Interests&#39;:&#39;Interests&#39;,&#39;JobTitle&#39;:&#39;JobTitle&#39;,&#39;LastModifiedTime&#39;:&#39;LastModifiedTime&#39;,&#39;Memberships&#39;:&#39;Memberships&#39;,&#39;PastProjects&#39;:&#39;PastProjects&#39;,&#39;Path&#39;:&#39;Path&#39;,&#39;PictureURL&#39;:&#39;PictureURL&#39;,&#39;PreferredName&#39;:&#39;PreferredName&#39;,&#39;Responsibilities&#39;:&#39;Responsibilities&#39;,&#39;Schools&#39;:&#39;Schools&#39;,&#39;ServiceApplicationID&#39;:&#39;ServiceApplicationID&#39;,&#39;SipAddress&#39;:&#39;SipAddress&#39;,&#39;Skills&#39;:&#39;Skills&#39;,&#39;UserProfile_GUID&#39;:&#39;UserProfile_GUID&#39;,&#39;WorkEmail&#39;:&#39;WorkEmail&#39;,&#39;WorkId&#39;:&#39;WorkId&#39;,&#39;YomiDisplayName&#39;:&#39;YomiDisplayName&#39;</mso:ManagedPropertyMapping>
    3. Added a variable:
    var has_MobilePhone = !$isEmptyString(ctx.CurrentItem.MobilePhone)
    4. Copied the "WorkPhone" display section and changed the values to MobilePhone
    <!--#_
    if(has_MobilePhone == true) {
    _#-->
    <div id="MobilePhoneField">
    <!--#_
    var encodedMobilePhone = ctx.CurrentItem.MobilePhone;
    var displayMobilePhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
    if ($isEmptyString(displayMobilePhone)) { displayMobilePhone = encodedMobilePhone }
    _#-->
    <div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedMobilePhone =#_">MobilePhone: _#= displayMobilePhone =#_ </div>
    </div>
    <!--#_
    _#-->
    Unfortunally the mobilephone does not appear in my search results. 
    What did I missed?

    First of all thank you for this quick reply.
    I changed all the properties from MobilePhone to CellPhone, but without result.
    <mso:ManagedPropertyMapping msdt:dt="string">&#39;WorkPhone&#39;:&#39;WorkPhone&#39;,&#39;CellPhone&#39;:&#39;CellPhone&#39;,&#39;Room&#39;:&#39;Room&#39;,&#39;Werkgebieden&#39;:&#39;Werkgebieden&#39;,&#39;AboutMe&#39;:&#39;AboutMe&#39;,&#39;AccountName&#39;:&#39;AccountName&#39;,&#39;BaseOfficeLocation&#39;:&#39;BaseOfficeLocation&#39;,&#39;Department&#39;:&#39;Department&#39;,&#39;HitHighlightedProperties&#39;:&#39;HitHighlightedProperties&#39;,&#39;Interests&#39;:&#39;Interests&#39;,&#39;JobTitle&#39;:&#39;JobTitle&#39;,&#39;LastModifiedTime&#39;:&#39;LastModifiedTime&#39;,&#39;Memberships&#39;:&#39;Memberships&#39;,&#39;PastProjects&#39;:&#39;PastProjects&#39;,&#39;Path&#39;:&#39;Path&#39;,&#39;PictureURL&#39;:&#39;PictureURL&#39;,&#39;PreferredName&#39;:&#39;PreferredName&#39;,&#39;Responsibilities&#39;:&#39;Responsibilities&#39;,&#39;Schools&#39;:&#39;Schools&#39;,&#39;ServiceApplicationID&#39;:&#39;ServiceApplicationID&#39;,&#39;SipAddress&#39;:&#39;SipAddress&#39;,&#39;Skills&#39;:&#39;Skills&#39;,&#39;UserProfile_GUID&#39;:&#39;UserProfile_GUID&#39;,&#39;WorkEmail&#39;:&#39;WorkEmail&#39;,&#39;WorkId&#39;:&#39;WorkId&#39;,&#39;YomiDisplayName&#39;:&#39;YomiDisplayName&#39;</mso:ManagedPropertyMapping>
    var has_CellPhone = !$isEmptyString(ctx.CurrentItem.CellPhone)
    <!--#_
    if(has_CellPhone == true) {
    _#-->
    <div id="CellPhoneField">
    <!--#_
    var encodedCellPhone = ctx.CurrentItem.CellPhone;
    var displayCellPhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "CellPhone");
    if ($isEmptyString(displayCellPhone)) { displayCellPhone = encodedCellPhone }
    _#-->
    <div id="CellPhoneValue" class="ms-srch-ellipsis" title="_#= encodedCellPhone =#_">CellPhone: _#= displayCellPhone =#_ </div>
    </div>
    <!--#_
    _#-->
    Can you please tell me what I need to change?

  • How to create a Display template for people search results

    Hi,
    I've just installed Sharepoint 2013 and started to play around with it. Seems to be many improvements - among these are the ability to create Display templates.
    On my publishing page there is a default "employee lookup" app which returns prefferred name, title and department as default when I try to search.
    I would love to return mobile number aswell so I have tried to do the following:
    I made a copy of Display _Catalogs/Masterpages/Display Templates/Search/Item_Person.html
    Edited that one with the following:
    1. Added 'MobilePhone':'MobilePhone' to the "Managed Property mapping" in the top of the html   document:
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','MobilePhone':'MobilePhone','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    2. Set a var in the <body> with:
    var has_MobilePhone = !$isEmptyString(ctx.CurrentItem.MobilePhone);
    Created the following based on "DepartmentField":
    if(has_MobilePhone == true) {
    _#-->
    <div id="MobilephoneField">
    <!--#_
    var encodedMobilePhone = $htmlEncode(ctx.CurrentItem.MobilePhone);
    var displayMobilePhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "MobilePhone");
    if ($isEmptyString(displayMobilePhone)) { displayMobilePhone = encodedMobilePhone}
    _#-->
    <div id="MobilePhoneValue" class="ms-srch-ellipsis" title="_#= encodedMobilePhone =#_"> _#= displayMobilePhone =#_ </div>
    </div>
    <!--#_
    Saved the document to the masterpage galary and edited the search result page to (people search core results webpart) to "use a single template to display items" and selected my display template.
    Now the search result is still working but I get no mobile numbers to show up in the user info (only in the details which is default).
    Anyone has some bright ideas of what i'm missing?. I'm not used to code (which might be the cause :-)). If you also have an idea on how to make the value of the number = Mobile: <mobilenumber>. So the "Mobile:" static text is displayed
    aswell.
    Thanks a lot for your time.

    Hello,
    I did the same with my new SharePoint 2013 (I would like to display the mobile phone too) but without any chance. Have you done anything else ?
    This is my User Property "CellPhone" :
    http://www.cladstrife.com/CellPhone_Prop.png
    The ManagedPropertyMapping :
    <mso:ManagedPropertyMapping msdt:dt="string">'AboutMe':'AboutMe','AccountName':'AccountName','BaseOfficeLocation':'BaseOfficeLocation','Department':'Department','HitHighlightedProperties':'HitHighlightedProperties','Interests':'Interests','JobTitle':'JobTitle','LastModifiedTime':'LastModifiedTime','Memberships':'Memberships','PastProjects':'PastProjects','Path':'Path','PictureURL':'PictureURL','PreferredName':'PreferredName','Responsibilities':'Responsibilities','Schools':'Schools','ServiceApplicationID':'ServiceApplicationID','SipAddress':'SipAddress','Skills':'Skills','UserProfile_GUID':'UserProfile_GUID','WorkEmail':'WorkEmail','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName','CellPhone':'CellPhone','HomePhone':'HomePhone'</mso:ManagedPropertyMapping>
    The "if_exist" variable :
    var has_cphone = !$isEmptyString(ctx.CurrentItem.CellPhone);
    And the "display" code :
    <!--#_
    if(has_cphone == true) {
    _#-->
    <div id="CPhoneField">
    <!--#_
    var encodedCPhone = $htmlEncode(ctx.CurrentItem.CellPhone);
    var displayCPhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "CellPhone");
    if ($isEmptyString(displayCPhone)) { displayCPhone = encodedCPhone}
    _#-->
    <div id="CPhoneValue" class="ms-srch-ellipsis" title="_#= encodedCPhone =#_"> Mobile: _#= displayCPhone =#_ </div>
    </div>
    <!--#_
    _#-->
    If I delete the test lines in the display code (if(has_cphone == true) it show "Mobile:" but without any mobile number.
    Thanks for your help if any idea :)
    Best regards
    Gabriel

  • People Search on list items - not working on metadata property 'OrgNames'

    Hi all,
    To be able to search AD Contact in people search (NOT AD Accounts, AD Contacts), I've exported this AD contacts into a SharePoint list and added this list to the scope used by my people search and finally configured the metadata properties. I've followed
    this article : http://johnliu.net/blog/2012/9/25/sharepoint-showing-contacts-in-people-search-results.html
    All is working fine, except when I want to search on the company name of the contacts. I've edited the property name OrgNames to link it to my list column. I can see this company name into the search result, but when I want to perform a search based on the
    company name, I got no result. The search is working fine on the name or on the jobtitle.
    Does anyone have an idea about the mistake ?
    Thanks & Regards,
    Steve

    Hi Steve,
    I recommend to check the things below:
    Check the Advanced settings of the contact list, make sure that Allow items from this list to appear in search results is Yes.
    Check the Content Source that the Start Address is including the contact list in Search Service Application.
    Click Index Reset and then do a full crawl in Search Service Application to see if the issue still occurs.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • People search with initials

    I’m having problems getting "initials" shown in a "People Search Core Results". they are showed on
    the Person.aspx
    so they are pulled from the AD
    but trying to customize the XML i get errors every time 
    tried to follow:
    sharepoint-2010-adding-a-field-to-the-people-search-results
    and
    how-to-show-the-fax-number-in-people-search-results-in-sharepoint-2010
    my xml:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:SEARCHWC="http://schemas.microsoft.com/searchserver/"><xsl:output
    method="xml" indent="no"/><xsl:param name="SortBy" /><xsl:param name="DropDownOption" /><xsl:param name="RelevanceSortUrl" /><xsl:param name="RelevanceSortLabel" /><xsl:param
    name="SocialDistanceSortUrl" /><xsl:param name="SocialDistanceSortLabel" /><xsl:param name="NameSortUrl" /><xsl:param name="NameSortLabel" /><xsl:param name="IsNoKeyword" /><xsl:param
    name="IsFixedQuery" /><xsl:param name="ShowMoreLink" /><xsl:param name="MoreLinkLabel" /><xsl:param name="MoreLink" /><xsl:param name="AlertMeLink" /><xsl:param name="AlertMeText"
    /><xsl:param name="SrchRSSText" /><xsl:param name="SrchRSSLink" /><xsl:param name="ShowMessage" /><xsl:param name="ShowActionLinks" /><xsl:param name="SearchProviderText" /><xsl:param
    name="SearchProviderLink" /><xsl:param name="IsPeopleCoreResultsWebPart" /><xsl:param name="NoFixedQuery" /><xsl:param name="NoKeyword" /><xsl:param name="NoPeopleResults" /><xsl:param
    name="NoPeopleResults1" /><xsl:param name="NoPeopleResults2" /><xsl:param name="NoPeopleResults3" /><xsl:param name="NoPeopleResults4" /><xsl:param name="ParentOrgsLabel" /><xsl:param
    name="ViewHiearchyLabel" /><xsl:param name="RecentContentLabel" /><xsl:param name="ResponsibilitiesLabel" /><xsl:param name="SkillsLabel" /><xsl:param name="InterestsLabel" /><xsl:param
    name="PastProjectsLabel" /><xsl:param name="SchoolLabel" /><xsl:param name="MembershipLabel" /><xsl:param name="AboutMeLabel" /><xsl:param name="BaseOfficeLabel" /><xsl:param name="SummaryLabel"
    /><xsl:param name="ProfileViewLabel" /><xsl:param name="UpdateProfileLabel" /><xsl:param name="QueriesFoundYouLabel" /><xsl:param name="UpdateProfileKeywordLabel" /><xsl:param name="SelfSearchLabel"
    /><xsl:param name="NoKeywordLabel" /><xsl:param name="AddToMyColleaguesText" /><xsl:param name="PopupFetcingResultLabel" /><xsl:param name="IdPrefix" /><xsl:param name="LangPickerHeading"
    /><xsl:param name="LangPickerNodeSet" /><xsl:param name="FilterNodeSet" /><xsl:param name="ShowPeopleSortDropdown" /><xsl:param name="RecentUpdateTabLabel" /><!--
    When there is no keywory to issue the search --><xsl:template name="dvt_1.noKeyword">  <span>    <xsl:choose>   
      <xsl:when test="$IsFixedQuery">        <xsl:value-of select="$NoFixedQuery" />      </xsl:when>      <xsl:otherwise>        <xsl:value-of
    select="$NoKeyword" />      </xsl:otherwise>    </xsl:choose>  </span>       </xsl:template><!-- When empty result set is returned from search --><xsl:template
    name="dvt_1.empty">    <div>    <xsl:if test="$ShowActionLinks">      <xsl:call-template name="ActionBarTemplate" />    </xsl:if>  </div> 
    <span id="CSR_NO_RESULTS">    <xsl:value-of select="$NoPeopleResults"/>    <ol>      <li><xsl:value-of select="$NoPeopleResults1"/></li>     
    <li><xsl:value-of select="$NoPeopleResults2"/></li>      <li><xsl:value-of select="$NoPeopleResults3"/></li>      <li><xsl:value-of select="$NoPeopleResults4"/></li> 
      </ol>  </span></xsl:template><!-- Main body template--><xsl:template name="dvt_1.body">  <div>    <xsl:if test="$ShowActionLinks">      <div>  
          <xsl:if test="$LangPickerNodeSet and count($LangPickerNodeSet) &gt; 0">          <label for="langpickerdd" id="langpickerddlabel"><xsl:value-of select="$LangPickerHeading"/></label> 
            <select title="{$LangPickerHeading}" onchange="window.location.href=this.value" id="langpickerdd">            <xsl:for-each select="$LangPickerNodeSet"> 
                <xsl:element name="option">                <xsl:attribute name="value"><xsl:value-of select="@url"/></xsl:attribute> 
                  <xsl:if test="@selected = 'true'">                  <xsl:attribute name="selected">selected</xsl:attribute>     
              </xsl:if>                <xsl:value-of select="@title"/>              </xsl:element>         
      </xsl:for-each>                  </select>          <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>        </xsl:if> 
          <xsl:if test="$ShowPeopleSortDropdown">          <label for="sortbydd" id="sortbyddlabel"><xsl:value-of select="$SortBy" /></label>    
          <select title="{$SortBy}" name="dropdown" onchange="window.location.href=this.value" id="sortbydd">            <xsl:element name="option">  
                <xsl:attribute name="value"><xsl:value-of select="ddwrt:EnsureAllowedProtocol(string($RelevanceSortUrl))"/></xsl:attribute>              <xsl:if
    test="$DropDownOption = '0'">                <xsl:attribute name="selected">selected</xsl:attribute>              </xsl:if>     
            <xsl:value-of select="$RelevanceSortLabel"/>            </xsl:element>            <xsl:if test="string-length($SocialDistanceSortUrl) &gt;
    0 and string-length($SocialDistanceSortLabel) &gt; 0">              <xsl:element name="option">                 <xsl:attribute name="value"><xsl:value-of
    select="ddwrt:EnsureAllowedProtocol(string($SocialDistanceSortUrl))"/></xsl:attribute>                <xsl:if test="$DropDownOption = '1'">           
          <xsl:attribute name="selected">selected</xsl:attribute>                </xsl:if>                <xsl:value-of select="$SocialDistanceSortLabel"/> 
                </xsl:element>            </xsl:if>            <xsl:element name="option">              
    <xsl:attribute name="value"><xsl:value-of select="ddwrt:EnsureAllowedProtocol(string($NameSortUrl))"/></xsl:attribute>              <xsl:if test="$DropDownOption = '2'"> 
                  <xsl:attribute name="selected">selected</xsl:attribute>              </xsl:if>              <xsl:value-of
    select="$NameSortLabel"/>            </xsl:element>          </select>            <xsl:text disable-output-escaping="yes">&#8195;</xsl:text> 
          </xsl:if>        <xsl:call-template name="ActionBarTemplate" />      </div>    </xsl:if>    <xsl:for-each select="All_Results/Result"> 
        <xsl:call-template name="SingleResult"/>    </xsl:for-each>        <xsl:call-template name="MoreLinkTemplate" />  </div>  </xsl:template><!-- This template
    is called for each result --><xsl:template name="SingleResult">    <xsl:element name="div">     <xsl:attribute name="id">      <xsl:value-of select="concat('Container',
    id)"/>    </xsl:attribute>    <xsl:choose>      <xsl:when test="id = 1">        <xsl:attribute name="class">psrch-FirstFullResult</xsl:attribute> 
        </xsl:when>      <xsl:otherwise>        <xsl:attribute name="class">psrch-FullResult</xsl:attribute>      </xsl:otherwise>    </xsl:choose> 
      <xsl:call-template name="SingleResultInternal" />  </xsl:element></xsl:template><xsl:template name="SingleResultInternal">  <xsl:variable name="id" select="id"/>  <xsl:variable
    name="currentId" select="concat($IdPrefix,$id)"/>  <xsl:variable name="url" select="url"/>  <xsl:variable name="email" select="workemail"/>  <xsl:variable name="sip"
    select="sipaddress"/>  <xsl:variable name="prefix">IMNRC('</xsl:variable>  <xsl:variable name="suffix">')</xsl:variable>  <xsl:variable name="hassip"      
    select="string-length($sip) &gt; 0"/>  <xsl:variable name="hasemail"     select="string-length($email) &gt; 0"/>  <xsl:variable name="haspn"        select="string-length(preferredname)
    &gt; 0"/>  <xsl:variable name="hasydn"       select="string-length(yomidisplayname) &gt; 0"/>  <xsl:variable name="hasjt"        select="string-length(jobtitle)
    &gt; 0"/>  <xsl:variable name="hasdp"        select="string-length(department) &gt; 0"/>  <xsl:variable name="hasorg"       select="string-length(orgnames)
    &gt; 0"/>  <xsl:variable name="haswph"       select="string-length(workphone) &gt; 0"/>   <xsl:variable name="hasinitials" select="string-length(initials) &gt; 0"/> 
    <xsl:variable name="hasonum"      select="string-length(officenumber) &gt; 0"/>  <xsl:variable name="hascol"       select="string-length(colleaguecategory) &gt; 0"/> 
    <xsl:variable name="hasacu"       select="string-length(addtomycolleaguesurl) &gt; 0"/>  <xsl:variable name="hashier"      select="string-length(hierarchyurl) &gt; 0"/> 
    <xsl:variable name="hasabme"      select="string-length(aboutme) &gt; 0"/>  <xsl:variable name="hasresp"      select="string-length(responsibility) &gt; 0"/> 
    <xsl:variable name="hassk"        select="($FilterNodeSet and $FilterNodeSet/@title='SPShSkills') or hithighlightedproperties/skills/@hashh &gt; 0"/>  <xsl:variable name="hasint"    
      select="($FilterNodeSet and $FilterNodeSet/@title='SPShInterests') or hithighlightedproperties/interests/@hashh &gt; 0"/>  <xsl:variable name="hasorgparent" select="($FilterNodeSet and $FilterNodeSet/@title='OrgParentNames')
    or hithighlightedproperties/orgparentnames/@hashh &gt; 0"/>  <xsl:variable name="hasmem"       select="($FilterNodeSet and $FilterNodeSet/@title='Memberships') or hithighlightedproperties/memberships/@hashh
    &gt; 0"/>  <xsl:variable name="haspp"        select="($FilterNodeSet and $FilterNodeSet/@title='SPShPastProjects') or hithighlightedproperties/pastprojects/@hashh &gt; 0"/>  <xsl:variable
    name="hasbol"       select="($FilterNodeSet and $FilterNodeSet/@title='SPShLocation') or hithighlightedproperties/baseofficelocation/@hashh &gt; 0"/>  <xsl:variable name="hassch"      
    select="($FilterNodeSet and $FilterNodeSet/@title='SPShSchool') or hithighlightedproperties/schools/@hashh &gt; 0"/>  <xsl:variable name="hassum"       select="count(hithighlightedsummary/c0) &gt;
    0"/>  <xsl:variable name="hasvlm"       select="string-length(profileviewlastmonth) &gt; 0"/>  <xsl:variable name="hasvlw"       select="string-length(profileviewlastweek)
    &gt; 0"/>  <xsl:variable name="hasquery"     select="string-length(queriesfoundyou) &gt; 0"/>      <div id="UserPhoto">    <a href="{ddwrt:EnsureAllowedProtocol(string($url))}"
    id="{concat($currentId, '_CSR_IMGL')}" title="{preferredname}">      <xsl:variable name="imgid" select="concat('CSR_IMG_',$id)"/>      <xsl:variable name="purl"> 
          <xsl:call-template name="GetPicUrl">          <xsl:with-param name="PicUrl" select="pictureurl"/>          <xsl:with-param name="PlaceHolderUrl"
    select="'/_layouts/images/o14_person_placeholder_96.png'"/>        </xsl:call-template>      </xsl:variable>      <img id="{$imgid}" src="{ddwrt:EnsureAllowedProtocol(string($purl))}"
    alt="{preferredname}" border="0"></img>    </a>    <xsl:if test="$hascol">      <div id="ColleagueField">        <xsl:value-of select="colleaguecategory"/> 
        </div>    </xsl:if>  </div>  <span id="JBean">    <xsl:choose>      <xsl:when test="$hassip">        <img alt=""
    border="0" height="12" width="12" src="/_layouts/images/imnhdr.gif" onload="{concat($prefix, $sip, $suffix)}" ShowOfflinePawn="1" id="{concat('CSRP_',$id,',type=sip')}" />   
      </xsl:when>      <xsl:otherwise>        <img alt="" border="0" height="12" width="12" src="/_layouts/images/imnhdr.gif" onload="{concat($prefix,
    $email, $suffix)}" ShowOfflinePawn="1" id="{concat('CSRP_',$id,',type=smtp')}" />      </xsl:otherwise>    </xsl:choose>  </span>  <div id="ContactInfo"> 
      <ul id="MiniContactCard">      <li id="NameField">        <xsl:if test="$haspn">          <a href="{ddwrt:EnsureAllowedProtocol(string($url))}"
    id="{concat($currentId, '_CSR')}">            <xsl:apply-templates select="hithighlightedproperties/preferredname" />          </a>        </xsl:if> 
        </li>      <xsl:if test="$hasydn">        <li id="YomiField">          <xsl:apply-templates select="hithighlightedproperties/yomidisplayname"
    />        </li>      </xsl:if>      <xsl:if test="$hasjt">        <li id="JobTitleField">          <xsl:apply-templates
    select="hithighlightedproperties/jobtitle" />        </li>      </xsl:if>      <xsl:if test="$hasdp and not($hasorg)">        <li id="DepartmentField"> 
            <xsl:apply-templates select="hithighlightedproperties/department" />        </li>      </xsl:if>      <xsl:if test="$hasorg">   
        <li id="OrgField">                              <xsl:call-template name="RenderNameUrlMultivalue">           
    <xsl:with-param name="names" select="hithighlightedproperties/orgnames"/>            <xsl:with-param name="urls" select="orgurls_multival"/>         
      <xsl:with-param name="currentId" select="$currentId"/>          </xsl:call-template>                  </li>      </xsl:if> 
        <xsl:if test="$haswph">        <li id="PhoneField">          <xsl:apply-templates select="hithighlightedproperties/workphone" />     
      </li>          
    <xsl:if test="$hasinitials">        <li id="initialsField">          <xsl:apply-templates select="hithighlightedproperties/initials" />       
    </li>      </xsl:if>      <xsl:if test="$hasonum">        <li id="OfficeField">          <xsl:apply-templates select="hithighlightedproperties/officenumber"
    />        </li>      </xsl:if>      <xsl:if test="$hassip or $hasemail">        <li id="EmailField">          <xsl:choose> 
              <xsl:when test="$hassip">              <a id="{concat($currentId, '_EmailLink')}" href="{concat('mailto:', $sip)}">         
          <xsl:apply-templates select="hithighlightedproperties/sipaddress" />              </a>            </xsl:when>         
      <xsl:otherwise>              <a id="{concat($currentId, '_EmailLink')}" href="{concat('mailto:', $email)}">                <xsl:apply-templates
    select="hithighlightedproperties/workemail" />              </a>            </xsl:otherwise>          </xsl:choose>     
      </li>      </xsl:if>    </ul>    <xsl:if test="$hasacu or $hashier or $IsPeopleCoreResultsWebPart">      <ul id="Actions">         
          <xsl:if test="$hasacu">          <li id="AddColleagueLinkField">            <a id="{concat($currentId, '_AddColleagueLink')}" href="{ddwrt:EnsureAllowedProtocol(string(addtomycolleaguesurl))}">&#187;
    <xsl:value-of select="$AddToMyColleaguesText" /></a>          </li>        </xsl:if>        <xsl:if test="$hashier">       
      <li id="OrgBrowserField">            <a id="{concat($currentId, '_OrgBrowserLink')}" href="{ddwrt:EnsureAllowedProtocol(string(hierarchyurl))}">&#187; <xsl:value-of select="$ViewHiearchyLabel"
    /></a>          </li>        </xsl:if>        <xsl:if test="$IsPeopleCoreResultsWebPart">          <li id="RecentContentField"> 
              <a href="javascript:" ID="{concat('recentcontentlink_',$id)}" runat="server" PreferredName="{preferredname}">                <xsl:value-of
    select="concat('&#187; ', substring-before($RecentContentLabel, '{0}'), preferredname, substring-after($RecentContentLabel, '{0}'))"/>            </a>            <SEARCHWC:PopupControlExtender
    ID="{concat('popupextender_',$id)}" runat="server"            TargetControlID="{concat('recentcontentlink_',$id)}"            PopupControlID="PopupPanelPeopleCore" 
              PopupShowingScript="{concat('PostbackUserName(this.get_element(),this._popupElement,&quot;',$RecentUpdateTabLabel,'&quot;)')}"            PopupHiddenScript="" 
              HoverDelay="500"            UnhoverDelay="500"/>          </li>        </xsl:if>      </ul> 
      </xsl:if>  </div>  <xsl:if test="$hasabme or $hasresp or $hassk or $hasint or $hasorgparent or $hasmem or $haspp or $hassch or $hasbol or $hassum">    <div id="MoreInfo">     
    <ul>                <xsl:if test="$hasabme">          <li>            <span id="FieldTitle">       
          <xsl:value-of select="$AboutMeLabel" />            </span>            <xsl:apply-templates select="hithighlightedproperties/aboutme" /> 
            </li>        </xsl:if>        <xsl:if test="$hasresp">          <li>            <span id="FieldTitle"> 
                <xsl:value-of select="$ResponsibilitiesLabel" />            </span>                      <xsl:call-template
    name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/responsibility"/>              <xsl:with-param
    name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hassk"> 
            <li>            <span id="FieldTitle">              <xsl:value-of select="$SkillsLabel" />         
      </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue"
    select="hithighlightedproperties/skills"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>     
        </li>        </xsl:if>        <xsl:if test="$hasint">          <li>            <span id="FieldTitle"> 
                <xsl:value-of select="$InterestsLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue"> 
                <xsl:with-param name="multivalue" select="hithighlightedproperties/interests"/>              <xsl:with-param name="cutoff" select="5"/> 
              </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hasorgparent">         
    <li>                        <span id="FieldTitle">              <xsl:value-of select="$ParentOrgsLabel" />     
          </span>                      <span id="HotHH">              <xsl:call-template name="RenderNameUrlMultivalue"> 
                  <xsl:with-param name="names" select="hithighlightedproperties/orgparentnames"/>                <xsl:with-param name="urls" select="orgparenturls_multival"/> 
                  <xsl:with-param name="currentId" select="$currentId"/>              </xsl:call-template>            </span> 
            </li>        </xsl:if>        <xsl:if test="$hasmem">          <li>            <span id="FieldTitle"> 
                <xsl:value-of select="$MembershipLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue"> 
                <xsl:with-param name="multivalue" select="hithighlightedproperties/memberships"/>              <xsl:with-param name="cutoff" select="5"/> 
              </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$haspp">          <li> 
              <span id="FieldTitle">              <xsl:value-of select="$PastProjectsLabel" />            </span>      
                   <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/pastprojects"/> 
                <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if> 
          <xsl:if test="$hassch">          <li>            <span id="FieldTitle">              <xsl:value-of select="$SchoolLabel"
    />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param
    name="multivalue" select="hithighlightedproperties/schools"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template> 
            </li>        </xsl:if>        <xsl:if test="$hasbol">          <li>            <span id="FieldTitle"> 
                <xsl:value-of select="$BaseOfficeLabel" />            </span>                      <xsl:apply-templates
    select="hithighlightedproperties/baseofficelocation" />          </li>        </xsl:if>        <xsl:if test="$hassum">         
    <li>            <span id="FieldTitle">              <xsl:value-of select="$SummaryLabel" />            </span> 
              <xsl:apply-templates select="hithighlightedsummary" />          </li>        </xsl:if>      </ul>    </div> 
    </xsl:if>  <div id="Clear">    <img src='/_layouts/images/blank.gif' alt=''/>  </div>  <xsl:if test="$hasvlm or $hasvlw or $hasquery">    <div id="SelfSrchHeading"> 
        <table cellspacing="0" cellpadding="0">        <tr>          <td>            <xsl:value-of select="$SelfSearchLabel"
    />          </td>        </tr>      </table>    </div>    <div id="SelfSrchFreq">      <a id="{concat($currentId,
    '_EditProfileLink')}" href="{ddwrt:EnsureAllowedProtocol(string(editprofileurl))}"><xsl:value-of select="$UpdateProfileLabel" /></a>      <div id="SelfSrchFreqTitle">     
        <xsl:value-of select="$ProfileViewLabel" />      </div>            <xsl:if test="$hasvlm and $hasvlw">        <ul>     
        <li>            <xsl:value-of disable-output-escaping="yes" select="profileviewlastmonth"/>          </li>          <li> 
              <xsl:value-of disable-output-escaping="yes" select="profileviewlastweek"/>          </li>        </ul>      </xsl:if> 
      </div>    <div id="SelfSrchTerms">      <a id="{concat($currentId, '_UpdateKeywordsLink')}" href="{ddwrt:EnsureAllowedProtocol(string(updatekeywordsurl))}"><xsl:value-of select="$UpdateProfileKeywordLabel"
    /></a>      <div id="SelfSrchTermsTitle">        <xsl:value-of select="$QueriesFoundYouLabel" />      </div>      <div id="SelfSrchTermsContent"> 
          <xsl:choose>          <xsl:when test="$hasquery">            <xsl:call-template name="RenderSimpleMultivalue">         
        <xsl:with-param name="multivalue" select="queriesfoundyou_multival"/>              <xsl:with-param name="cutoff" select="5"/>         
      </xsl:call-template>          </xsl:when>          <xsl:otherwise>            <xsl:value-of select="$NoKeywordLabel" />     
        </xsl:otherwise>        </xsl:choose>      </div>    </div>    <div id="Clear2">      <img src='/_layouts/images/blank.gif' alt=''/> 
      </div>  </xsl:if></xsl:template>  <!-- XSL transformation starts here --><xsl:template match="/">  <xsl:if test="$AlertMeLink and $ShowActionLinks">     <input
    type="hidden" name="P_Query" />   <input type="hidden" name="P_LastNotificationTime" />  </xsl:if>  <div>    <xsl:choose>      <xsl:when test="$IsNoKeyword
    = 'True'" >        <xsl:call-template name="dvt_1.noKeyword" />      </xsl:when>      <xsl:when test="$ShowMessage = 'True'">        <xsl:call-template
    name="dvt_1.empty" />      </xsl:when>      <xsl:otherwise>        <xsl:call-template name="dvt_1.body"/>            </xsl:otherwise> 
      </xsl:choose>    <xsl:if test="$IsPeopleCoreResultsWebPart and (count(All_Results/Result) &gt; 0 or count(All_Results/FakeResult) &gt; 0)">      <asp:Panel ID="PopupPanelPeopleCore"
    runat="server" CssClass="psrch-PopupPanel">                        <div id="PopupContainer">                   
    <asp:UpdatePanel runat="server" ID="UpdatePanelPeopleCore" UpdateMode="Conditional" ChildrenAsTriggers="true">            <ContentTemplate>          
                     <SEARCHWC:PeopleCoreResultPopupControl                id="PopupControl51A944753DF0430C8FE1EBAA70F3E945"           
        runat="server"/>                          <div id="PopupFooter">                <asp:UpdateProgress
    ID="UpdateProgress" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanelPeopleCore" runat="server">                  <ProgressTemplate>       
                <span id="Progress">                      <img src="/_layouts/images/hig_progcircle_loading24.gif"/>       
                  <xsl:value-of select="$PopupFetcingResultLabel" />                    </span>                   
                    </ProgressTemplate>                </asp:UpdateProgress>              </div>         
      </ContentTemplate>                      </asp:UpdatePanel>        </div>      </asp:Panel>    </xsl:if>    
    </div></xsl:template><xsl:template name="ActionBarTemplate">  <xsl:if test="string-length($AlertMeLink) &gt; 0">      <a href="{$AlertMeLink}" id="CSR_AM" title="{$AlertMeText}"> 
        <img src="/_layouts/images/bell.gif" alt="{$AlertMeText}" border="0"/>    </a>    <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>  </xsl:if> 
    <xsl:if test="string-length($SrchRSSLink) &gt; 0">         <a type="application/rss+xml" href="{ddwrt:EnsureAllowedProtocol(string($SrchRSSLink))}" title="{$SrchRSSText}" id="SRCHRSSL"> 
        <img border="0" src="/_layouts/images/rss.gif" alt="{$SrchRSSText}"/>    </a>    <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>  </xsl:if> 
    <xsl:if test="string-length($SearchProviderLink) &gt; 0">      <a href="{ddwrt:EnsureAllowedProtocol(string($SearchProviderLink))}" title="{$SearchProviderText}" >      <img border="0"
    src="/_layouts/images/searchfolder.png" alt="{$SearchProviderText}"/>    </a>    <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>  </xsl:if> </xsl:template><xsl:template
    name="GetPicUrl">  <xsl:param name="PicUrl"/>  <xsl:param name="PlaceHolderUrl"/>    <xsl:choose>    <xsl:when test="string-length($PicUrl) &lt; 1 or starts-with($PicUrl,
    'file:') or starts-with($PicUrl, '\\') or starts-with($PicUrl, '//')">      <xsl:value-of select="$PlaceHolderUrl"/>    </xsl:when>    <xsl:otherwise>      <xsl:value-of
    select="$PicUrl"/>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template name="MoreLinkTemplate">  <xsl:if test="$ShowMoreLink = true() and string-length($MoreLink) &gt;
    0">    <div id="MoreLink">      <a href="{ddwrt:EnsureAllowedProtocol(string($MoreLink))}">        <xsl:value-of select="$MoreLinkLabel"/>     
    </a>    </div>  </xsl:if></xsl:template><xsl:template name="RenderNameUrlMultivalue">  <xsl:param name="names"/>  <xsl:param name="urls"/>  <xsl:param
    name="currentId"/>  <xsl:for-each select="$names">    <xsl:variable name="p" select="position()"/>    <xsl:if test="string-length(.) &gt; 0">     
    <xsl:if test="$p &gt; 1">        <span> :: </span>      </xsl:if>      <xsl:choose>        <xsl:when test="string-length($urls[$p]) &gt;
    0">          <a id="{concat($currentId, '_MultivalueUrl')}" href="{ddwrt:EnsureAllowedProtocol(string($urls[$p]))}">            <xsl:apply-templates select="."
    />          </a>        </xsl:when>        <xsl:otherwise>          <xsl:apply-templates select="." />       
    </xsl:otherwise>      </xsl:choose>    </xsl:if>          </xsl:for-each></xsl:template><xsl:template name="RenderSimpleMultivalue">  <xsl:param name="multivalue"/> 
    <xsl:param name="cutoff"/>  <xsl:for-each select="$multivalue">    <xsl:sort data-type="number" order="descending" select="@hashh"/>    <xsl:variable name="p"
    select="position()"/>    <xsl:if test="string-length(.) &gt; 0">      <xsl:choose>        <xsl:when test="$p = 1">          <span
    id="Multivalue">            <xsl:apply-templates select="." />          </span>        </xsl:when>        <xsl:when test="$p
    &gt; 1 and $p &lt;= $cutoff">          <span> :: </span>          <span id="Multivalue"><xsl:apply-templates select="." /></span>   
        </xsl:when>        <xsl:when test="$p = $cutoff + 1">          &#8230;        </xsl:when>      </xsl:choose>   
    </xsl:if>  </xsl:for-each></xsl:template><xsl:template name="HitHighlighting">  <xsl:param name="hh" />  <xsl:apply-templates select="$hh"/> </xsl:template><xsl:template
    match="ddd">   &#8230;  </xsl:template> <xsl:template match="c0">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c1">  
      <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c2">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template
    match="c3">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c4">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template
    match="c5">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c6">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template
    match="c7">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c8">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template
    match="c9">     <b><xsl:value-of select="."/></b></xsl:template> </xsl:stylesheet>
    i want to archive is a standard who is who list with initials.
    Any help is appreciated
    "Carpe Diem" does not mean "fish of the day."

    i'm havenig problems getting "initials" shown in a "People Search Core Results". they are showen on the Person.aspx
    so they are pulled from the AD
    but trying to costumise the XML i get erros everty time 
    tried to follw:
    http://tekality.com/sharepoint-2010/sharepoint-2010-adding-a-field-to-the-people-search-results/
    and
    http://sharepointsolutions.com/sharepoint-help/blog/2011/07/how-to-show-the-fax-number-in-people-search-results-in-sharepoint-2010/
    my xml:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:SEARCHWC="http://schemas.microsoft.com/searchserver/"><xsl:output method="xml" indent="no"/><xsl:param name="SortBy" /><xsl:param name="DropDownOption" /><xsl:param name="RelevanceSortUrl" /><xsl:param name="RelevanceSortLabel" /><xsl:param name="SocialDistanceSortUrl" /><xsl:param name="SocialDistanceSortLabel" /><xsl:param name="NameSortUrl" /><xsl:param name="NameSortLabel" /><xsl:param name="IsNoKeyword" /><xsl:param name="IsFixedQuery" /><xsl:param name="ShowMoreLink" /><xsl:param name="MoreLinkLabel" /><xsl:param name="MoreLink" /><xsl:param name="AlertMeLink" /><xsl:param name="AlertMeText" /><xsl:param name="SrchRSSText" /><xsl:param name="SrchRSSLink" /><xsl:param name="ShowMessage" /><xsl:param name="ShowActionLinks" /><xsl:param name="SearchProviderText" /><xsl:param name="SearchProviderLink" /><xsl:param name="IsPeopleCoreResultsWebPart" /><xsl:param name="NoFixedQuery" /><xsl:param name="NoKeyword" /><xsl:param name="NoPeopleResults" /><xsl:param name="NoPeopleResults1" /><xsl:param name="NoPeopleResults2" /><xsl:param name="NoPeopleResults3" /><xsl:param name="NoPeopleResults4" /><xsl:param name="ParentOrgsLabel" /><xsl:param name="ViewHiearchyLabel" /><xsl:param name="RecentContentLabel" /><xsl:param name="ResponsibilitiesLabel" /><xsl:param name="SkillsLabel" /><xsl:param name="InterestsLabel" /><xsl:param name="PastProjectsLabel" /><xsl:param name="SchoolLabel" /><xsl:param name="MembershipLabel" /><xsl:param name="AboutMeLabel" /><xsl:param name="BaseOfficeLabel" /><xsl:param name="SummaryLabel" /><xsl:param name="ProfileViewLabel" /><xsl:param name="UpdateProfileLabel" /><xsl:param name="QueriesFoundYouLabel" /><xsl:param name="UpdateProfileKeywordLabel" /><xsl:param name="SelfSearchLabel" /><xsl:param name="NoKeywordLabel" /><xsl:param name="AddToMyColleaguesText" /><xsl:param name="PopupFetcingResultLabel" /><xsl:param name="IdPrefix" /><xsl:param name="LangPickerHeading" /><xsl:param name="LangPickerNodeSet" /><xsl:param name="FilterNodeSet" /><xsl:param name="ShowPeopleSortDropdown" /><xsl:param name="RecentUpdateTabLabel" /><!-- When there is no keywory to issue the search --><xsl:template name="dvt_1.noKeyword">  <span class="ms-sbplain">    <xsl:choose>      <xsl:when test="$IsFixedQuery">        <xsl:value-of select="$NoFixedQuery" />      </xsl:when>      <xsl:otherwise>        <xsl:value-of select="$NoKeyword" />      </xsl:otherwise>    </xsl:choose>  </span>       </xsl:template><!-- When empty result set is returned from search --><xsl:template name="dvt_1.empty">    <div class="psrch-results">    <xsl:if test="$ShowActionLinks">      <xsl:call-template name="ActionBarTemplate" />    </xsl:if>  </div>  <span class="srch-description" id="CSR_NO_RESULTS">    <xsl:value-of select="$NoPeopleResults"/>    <ol>      <li><xsl:value-of select="$NoPeopleResults1"/></li>      <li><xsl:value-of select="$NoPeopleResults2"/></li>      <li><xsl:value-of select="$NoPeopleResults3"/></li>      <li><xsl:value-of select="$NoPeopleResults4"/></li>    </ol>  </span></xsl:template><!-- Main body template--><xsl:template name="dvt_1.body">  <div class="psrch-results">    <xsl:if test="$ShowActionLinks">      <div class="srch-sort-right2">         <xsl:if test="$LangPickerNodeSet and count($LangPickerNodeSet) &gt; 0">          <label for="langpickerdd" id="langpickerddlabel"><xsl:value-of select="$LangPickerHeading"/></label>          <select title="{$LangPickerHeading}" class="srch-dropdown" onchange="window.location.href=this.value" id="langpickerdd">            <xsl:for-each select="$LangPickerNodeSet">              <xsl:element name="option">                <xsl:attribute name="value"><xsl:value-of select="@url"/></xsl:attribute>                <xsl:if test="@selected = 'true'">                  <xsl:attribute name="selected">selected</xsl:attribute>                </xsl:if>                <xsl:value-of select="@title"/>              </xsl:element>            </xsl:for-each>                  </select>          <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>        </xsl:if>        <xsl:if test="$ShowPeopleSortDropdown">          <label for="sortbydd" id="sortbyddlabel"><xsl:value-of select="$SortBy" /></label>           <select title="{$SortBy}" name="dropdown" onchange="window.location.href=this.value" class="srch-dropdown" id="sortbydd">            <xsl:element name="option">               <xsl:attribute name="value"><xsl:value-of select="ddwrt:EnsureAllowedProtocol(string($RelevanceSortUrl))"/></xsl:attribute>              <xsl:if test="$DropDownOption = '0'">                <xsl:attribute name="selected">selected</xsl:attribute>              </xsl:if>              <xsl:value-of select="$RelevanceSortLabel"/>            </xsl:element>            <xsl:if test="string-length($SocialDistanceSortUrl) &gt; 0 and string-length($SocialDistanceSortLabel) &gt; 0">              <xsl:element name="option">                 <xsl:attribute name="value"><xsl:value-of select="ddwrt:EnsureAllowedProtocol(string($SocialDistanceSortUrl))"/></xsl:attribute>                <xsl:if test="$DropDownOption = '1'">                  <xsl:attribute name="selected">selected</xsl:attribute>                </xsl:if>                <xsl:value-of select="$SocialDistanceSortLabel"/>              </xsl:element>            </xsl:if>            <xsl:element name="option">               <xsl:attribute name="value"><xsl:value-of select="ddwrt:EnsureAllowedProtocol(string($NameSortUrl))"/></xsl:attribute>              <xsl:if test="$DropDownOption = '2'">                <xsl:attribute name="selected">selected</xsl:attribute>              </xsl:if>              <xsl:value-of select="$NameSortLabel"/>            </xsl:element>          </select>            <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>        </xsl:if>        <xsl:call-template name="ActionBarTemplate" />      </div>    </xsl:if>    <xsl:for-each select="All_Results/Result">      <xsl:call-template name="SingleResult"/>    </xsl:for-each>        <xsl:call-template name="MoreLinkTemplate" />  </div>  </xsl:template><!-- This template is called for each result --><xsl:template name="SingleResult">    <xsl:element name="div">     <xsl:attribute name="id">      <xsl:value-of select="concat('Container', id)"/>    </xsl:attribute>    <xsl:choose>      <xsl:when test="id = 1">        <xsl:attribute name="class">psrch-FirstFullResult</xsl:attribute>      </xsl:when>      <xsl:otherwise>        <xsl:attribute name="class">psrch-FullResult</xsl:attribute>      </xsl:otherwise>    </xsl:choose>    <xsl:call-template name="SingleResultInternal" />  </xsl:element></xsl:template><xsl:template name="SingleResultInternal">  <xsl:variable name="id" select="id"/>  <xsl:variable name="currentId" select="concat($IdPrefix,$id)"/>  <xsl:variable name="url" select="url"/>  <xsl:variable name="email" select="workemail"/>  <xsl:variable name="sip" select="sipaddress"/>  <xsl:variable name="prefix">IMNRC('</xsl:variable>  <xsl:variable name="suffix">')</xsl:variable>  <xsl:variable name="hassip"       select="string-length($sip) &gt; 0"/>  <xsl:variable name="hasemail"     select="string-length($email) &gt; 0"/>  <xsl:variable name="haspn"        select="string-length(preferredname) &gt; 0"/>  <xsl:variable name="hasydn"       select="string-length(yomidisplayname) &gt; 0"/>  <xsl:variable name="hasjt"        select="string-length(jobtitle) &gt; 0"/>  <xsl:variable name="hasdp"        select="string-length(department) &gt; 0"/>  <xsl:variable name="hasorg"       select="string-length(orgnames) &gt; 0"/>  <xsl:variable name="haswph"       select="string-length(workphone) &gt; 0"/>   <xsl:variable name="hasinitials" select="string-length(initials) &gt; 0"/>  <xsl:variable name="hasonum"      select="string-length(officenumber) &gt; 0"/>  <xsl:variable name="hascol"       select="string-length(colleaguecategory) &gt; 0"/>  <xsl:variable name="hasacu"       select="string-length(addtomycolleaguesurl) &gt; 0"/>  <xsl:variable name="hashier"      select="string-length(hierarchyurl) &gt; 0"/>  <xsl:variable name="hasabme"      select="string-length(aboutme) &gt; 0"/>  <xsl:variable name="hasresp"      select="string-length(responsibility) &gt; 0"/>  <xsl:variable name="hassk"        select="($FilterNodeSet and $FilterNodeSet/@title='SPShSkills') or hithighlightedproperties/skills/@hashh &gt; 0"/>  <xsl:variable name="hasint"       select="($FilterNodeSet and $FilterNodeSet/@title='SPShInterests') or hithighlightedproperties/interests/@hashh &gt; 0"/>  <xsl:variable name="hasorgparent" select="($FilterNodeSet and $FilterNodeSet/@title='OrgParentNames') or hithighlightedproperties/orgparentnames/@hashh &gt; 0"/>  <xsl:variable name="hasmem"       select="($FilterNodeSet and $FilterNodeSet/@title='Memberships') or hithighlightedproperties/memberships/@hashh &gt; 0"/>  <xsl:variable name="haspp"        select="($FilterNodeSet and $FilterNodeSet/@title='SPShPastProjects') or hithighlightedproperties/pastprojects/@hashh &gt; 0"/>  <xsl:variable name="hasbol"       select="($FilterNodeSet and $FilterNodeSet/@title='SPShLocation') or hithighlightedproperties/baseofficelocation/@hashh &gt; 0"/>  <xsl:variable name="hassch"       select="($FilterNodeSet and $FilterNodeSet/@title='SPShSchool') or hithighlightedproperties/schools/@hashh &gt; 0"/>  <xsl:variable name="hassum"       select="count(hithighlightedsummary/c0) &gt; 0"/>  <xsl:variable name="hasvlm"       select="string-length(profileviewlastmonth) &gt; 0"/>  <xsl:variable name="hasvlw"       select="string-length(profileviewlastweek) &gt; 0"/>  <xsl:variable name="hasquery"     select="string-length(queriesfoundyou) &gt; 0"/>      <div id="UserPhoto">    <a href="{ddwrt:EnsureAllowedProtocol(string($url))}" id="{concat($currentId, '_CSR_IMGL')}" title="{preferredname}">      <xsl:variable name="imgid" select="concat('CSR_IMG_',$id)"/>      <xsl:variable name="purl">        <xsl:call-template name="GetPicUrl">          <xsl:with-param name="PicUrl" select="pictureurl"/>          <xsl:with-param name="PlaceHolderUrl" select="'/_layouts/images/o14_person_placeholder_96.png'"/>        </xsl:call-template>      </xsl:variable>      <img id="{$imgid}" src="{ddwrt:EnsureAllowedProtocol(string($purl))}" alt="{preferredname}" border="0"></img>    </a>    <xsl:if test="$hascol">      <div id="ColleagueField">        <xsl:value-of select="colleaguecategory"/>      </div>    </xsl:if>  </div>  <span id="JBean">    <xsl:choose>      <xsl:when test="$hassip">        <img alt="" border="0" height="12" width="12" src="/_layouts/images/imnhdr.gif" onload="{concat($prefix, $sip, $suffix)}" ShowOfflinePawn="1" id="{concat('CSRP_',$id,',type=sip')}" />      </xsl:when>      <xsl:otherwise>        <img alt="" border="0" height="12" width="12" src="/_layouts/images/imnhdr.gif" onload="{concat($prefix, $email, $suffix)}" ShowOfflinePawn="1" id="{concat('CSRP_',$id,',type=smtp')}" />      </xsl:otherwise>    </xsl:choose>  </span>  <div id="ContactInfo">    <ul id="MiniContactCard">      <li id="NameField">        <xsl:if test="$haspn">          <a href="{ddwrt:EnsureAllowedProtocol(string($url))}" id="{concat($currentId, '_CSR')}">            <xsl:apply-templates select="hithighlightedproperties/preferredname" />          </a>        </xsl:if>      </li>      <xsl:if test="$hasydn">        <li id="YomiField">          <xsl:apply-templates select="hithighlightedproperties/yomidisplayname" />        </li>      </xsl:if>      <xsl:if test="$hasjt">        <li id="JobTitleField">          <xsl:apply-templates select="hithighlightedproperties/jobtitle" />        </li>      </xsl:if>      <xsl:if test="$hasdp and not($hasorg)">        <li id="DepartmentField">          <xsl:apply-templates select="hithighlightedproperties/department" />        </li>      </xsl:if>      <xsl:if test="$hasorg">        <li id="OrgField">                              <xsl:call-template name="RenderNameUrlMultivalue">            <xsl:with-param name="names" select="hithighlightedproperties/orgnames"/>            <xsl:with-param name="urls" select="orgurls_multival"/>            <xsl:with-param name="currentId" select="$currentId"/>          </xsl:call-template>                  </li>      </xsl:if>      <xsl:if test="$haswph">        <li id="PhoneField">          <xsl:apply-templates select="hithighlightedproperties/workphone" />        </li> <xsl:if test="$hasinitials">        <li id="initialsField">          <xsl:apply-templates select="hithighlightedproperties/initials" />        </li>      </xsl:if>      <xsl:if test="$hasonum">        <li id="OfficeField">          <xsl:apply-templates select="hithighlightedproperties/officenumber" />        </li>      </xsl:if>      <xsl:if test="$hassip or $hasemail">        <li id="EmailField">          <xsl:choose>            <xsl:when test="$hassip">              <a id="{concat($currentId, '_EmailLink')}" href="{concat('mailto:', $sip)}">                <xsl:apply-templates select="hithighlightedproperties/sipaddress" />              </a>            </xsl:when>            <xsl:otherwise>              <a id="{concat($currentId, '_EmailLink')}" href="{concat('mailto:', $email)}">                <xsl:apply-templates select="hithighlightedproperties/workemail" />              </a>            </xsl:otherwise>          </xsl:choose>        </li>      </xsl:if>    </ul>    <xsl:if test="$hasacu or $hashier or $IsPeopleCoreResultsWebPart">      <ul id="Actions">                <xsl:if test="$hasacu">          <li id="AddColleagueLinkField">            <a id="{concat($currentId, '_AddColleagueLink')}" href="{ddwrt:EnsureAllowedProtocol(string(addtomycolleaguesurl))}">&#187; <xsl:value-of select="$AddToMyColleaguesText" /></a>          </li>        </xsl:if>        <xsl:if test="$hashier">          <li id="OrgBrowserField">            <a id="{concat($currentId, '_OrgBrowserLink')}" href="{ddwrt:EnsureAllowedProtocol(string(hierarchyurl))}">&#187; <xsl:value-of select="$ViewHiearchyLabel" /></a>          </li>        </xsl:if>        <xsl:if test="$IsPeopleCoreResultsWebPart">          <li id="RecentContentField">            <a href="javascript:" ID="{concat('recentcontentlink_',$id)}" runat="server" PreferredName="{preferredname}">                <xsl:value-of select="concat('&#187; ', substring-before($RecentContentLabel, '{0}'), preferredname, substring-after($RecentContentLabel, '{0}'))"/>            </a>            <SEARCHWC:PopupControlExtender ID="{concat('popupextender_',$id)}" runat="server"            TargetControlID="{concat('recentcontentlink_',$id)}"            PopupControlID="PopupPanelPeopleCore"            PopupShowingScript="{concat('PostbackUserName(this.get_element(),this._popupElement,&quot;',$RecentUpdateTabLabel,'&quot;)')}"            PopupHiddenScript=""            HoverDelay="500"            UnhoverDelay="500"/>          </li>        </xsl:if>      </ul>    </xsl:if>  </div>  <xsl:if test="$hasabme or $hasresp or $hassk or $hasint or $hasorgparent or $hasmem or $haspp or $hassch or $hasbol or $hassum">    <div id="MoreInfo">      <ul>                <xsl:if test="$hasabme">          <li>            <span id="FieldTitle">              <xsl:value-of select="$AboutMeLabel" />            </span>            <xsl:apply-templates select="hithighlightedproperties/aboutme" />          </li>        </xsl:if>        <xsl:if test="$hasresp">          <li>            <span id="FieldTitle">              <xsl:value-of select="$ResponsibilitiesLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/responsibility"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hassk">          <li>            <span id="FieldTitle">              <xsl:value-of select="$SkillsLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/skills"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hasint">          <li>            <span id="FieldTitle">              <xsl:value-of select="$InterestsLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/interests"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hasorgparent">          <li>                        <span id="FieldTitle">              <xsl:value-of select="$ParentOrgsLabel" />            </span>                      <span id="HotHH">              <xsl:call-template name="RenderNameUrlMultivalue">                <xsl:with-param name="names" select="hithighlightedproperties/orgparentnames"/>                <xsl:with-param name="urls" select="orgparenturls_multival"/>                <xsl:with-param name="currentId" select="$currentId"/>              </xsl:call-template>            </span>          </li>        </xsl:if>        <xsl:if test="$hasmem">          <li>            <span id="FieldTitle">              <xsl:value-of select="$MembershipLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/memberships"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$haspp">          <li>            <span id="FieldTitle">              <xsl:value-of select="$PastProjectsLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/pastprojects"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hassch">          <li>            <span id="FieldTitle">              <xsl:value-of select="$SchoolLabel" />            </span>                      <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="hithighlightedproperties/schools"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </li>        </xsl:if>        <xsl:if test="$hasbol">          <li>            <span id="FieldTitle">              <xsl:value-of select="$BaseOfficeLabel" />            </span>                      <xsl:apply-templates select="hithighlightedproperties/baseofficelocation" />          </li>        </xsl:if>        <xsl:if test="$hassum">          <li>            <span id="FieldTitle">              <xsl:value-of select="$SummaryLabel" />            </span>            <xsl:apply-templates select="hithighlightedsummary" />          </li>        </xsl:if>      </ul>    </div>  </xsl:if>  <div id="Clear">    <img src='/_layouts/images/blank.gif' alt=''/>  </div>  <xsl:if test="$hasvlm or $hasvlw or $hasquery">    <div id="SelfSrchHeading">      <table cellspacing="0" cellpadding="0">        <tr>          <td>            <xsl:value-of select="$SelfSearchLabel" />          </td>        </tr>      </table>    </div>    <div id="SelfSrchFreq">      <a id="{concat($currentId, '_EditProfileLink')}" href="{ddwrt:EnsureAllowedProtocol(string(editprofileurl))}"><xsl:value-of select="$UpdateProfileLabel" /></a>      <div id="SelfSrchFreqTitle">          <xsl:value-of select="$ProfileViewLabel" />      </div>            <xsl:if test="$hasvlm and $hasvlw">        <ul>          <li>            <xsl:value-of disable-output-escaping="yes" select="profileviewlastmonth"/>          </li>          <li>            <xsl:value-of disable-output-escaping="yes" select="profileviewlastweek"/>          </li>        </ul>      </xsl:if>    </div>    <div id="SelfSrchTerms">      <a id="{concat($currentId, '_UpdateKeywordsLink')}" href="{ddwrt:EnsureAllowedProtocol(string(updatekeywordsurl))}"><xsl:value-of select="$UpdateProfileKeywordLabel" /></a>      <div id="SelfSrchTermsTitle">        <xsl:value-of select="$QueriesFoundYouLabel" />      </div>      <div id="SelfSrchTermsContent">        <xsl:choose>          <xsl:when test="$hasquery">            <xsl:call-template name="RenderSimpleMultivalue">              <xsl:with-param name="multivalue" select="queriesfoundyou_multival"/>              <xsl:with-param name="cutoff" select="5"/>            </xsl:call-template>          </xsl:when>          <xsl:otherwise>            <xsl:value-of select="$NoKeywordLabel" />          </xsl:otherwise>        </xsl:choose>      </div>    </div>    <div id="Clear2">      <img src='/_layouts/images/blank.gif' alt=''/>    </div>  </xsl:if></xsl:template>  <!-- XSL transformation starts here --><xsl:template match="/">  <xsl:if test="$AlertMeLink and $ShowActionLinks">     <input type="hidden" name="P_Query" />   <input type="hidden" name="P_LastNotificationTime" />  </xsl:if>  <div class="psrch-Main">    <xsl:choose>      <xsl:when test="$IsNoKeyword = 'True'" >        <xsl:call-template name="dvt_1.noKeyword" />      </xsl:when>      <xsl:when test="$ShowMessage = 'True'">        <xsl:call-template name="dvt_1.empty" />      </xsl:when>      <xsl:otherwise>        <xsl:call-template name="dvt_1.body"/>            </xsl:otherwise>    </xsl:choose>    <xsl:if test="$IsPeopleCoreResultsWebPart and (count(All_Results/Result) &gt; 0 or count(All_Results/FakeResult) &gt; 0)">      <asp:Panel ID="PopupPanelPeopleCore" runat="server" CssClass="psrch-PopupPanel">                        <div id="PopupContainer" class="psrch-PopupContainer">                    <asp:UpdatePanel runat="server" ID="UpdatePanelPeopleCore" UpdateMode="Conditional" ChildrenAsTriggers="true">            <ContentTemplate>                            <SEARCHWC:PeopleCoreResultPopupControl                id="PopupControl51A944753DF0430C8FE1EBAA70F3E945"                runat="server"/>                          <div id="PopupFooter">                <asp:UpdateProgress ID="UpdateProgress" DisplayAfter="0" AssociatedUpdatePanelID="UpdatePanelPeopleCore" runat="server">                  <ProgressTemplate>                    <span id="Progress">                      <img class="psrch-UpdateGraphics" src="/_layouts/images/hig_progcircle_loading24.gif"/>                      <xsl:value-of select="$PopupFetcingResultLabel" />                    </span>                                    </ProgressTemplate>                </asp:UpdateProgress>              </div>            </ContentTemplate>                      </asp:UpdatePanel>        </div>      </asp:Panel>    </xsl:if>     </div></xsl:template><xsl:template name="ActionBarTemplate">  <xsl:if test="string-length($AlertMeLink) &gt; 0">      <a href="{$AlertMeLink}" id="CSR_AM" title="{$AlertMeText}">      <img src="/_layouts/images/bell.gif" alt="{$AlertMeText}" border="0"/>    </a>    <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>  </xsl:if>  <xsl:if test="string-length($SrchRSSLink) &gt; 0">         <a type="application/rss+xml" href="{ddwrt:EnsureAllowedProtocol(string($SrchRSSLink))}" title="{$SrchRSSText}" id="SRCHRSSL">      <img border="0" src="/_layouts/images/rss.gif" alt="{$SrchRSSText}"/>    </a>    <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>  </xsl:if>  <xsl:if test="string-length($SearchProviderLink) &gt; 0">      <a href="{ddwrt:EnsureAllowedProtocol(string($SearchProviderLink))}" title="{$SearchProviderText}" >      <img border="0" src="/_layouts/images/searchfolder.png" alt="{$SearchProviderText}"/>    </a>    <xsl:text disable-output-escaping="yes">&#8195;</xsl:text>  </xsl:if> </xsl:template><xsl:template name="GetPicUrl">  <xsl:param name="PicUrl"/>  <xsl:param name="PlaceHolderUrl"/>    <xsl:choose>    <xsl:when test="string-length($PicUrl) &lt; 1 or starts-with($PicUrl, 'file:') or starts-with($PicUrl, '\\') or starts-with($PicUrl, '//')">      <xsl:value-of select="$PlaceHolderUrl"/>    </xsl:when>    <xsl:otherwise>      <xsl:value-of select="$PicUrl"/>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template name="MoreLinkTemplate">  <xsl:if test="$ShowMoreLink = true() and string-length($MoreLink) &gt; 0">    <div id="MoreLink">      <a href="{ddwrt:EnsureAllowedProtocol(string($MoreLink))}">        <xsl:value-of select="$MoreLinkLabel"/>      </a>    </div>  </xsl:if></xsl:template><xsl:template name="RenderNameUrlMultivalue">  <xsl:param name="names"/>  <xsl:param name="urls"/>  <xsl:param name="currentId"/>  <xsl:for-each select="$names">    <xsl:variable name="p" select="position()"/>    <xsl:if test="string-length(.) &gt; 0">      <xsl:if test="$p &gt; 1">        <span class="psrch-TextSeparator"> :: </span>      </xsl:if>      <xsl:choose>        <xsl:when test="string-length($urls[$p]) &gt; 0">          <a id="{concat($currentId, '_MultivalueUrl')}" href="{ddwrt:EnsureAllowedProtocol(string($urls[$p]))}">            <xsl:apply-templates select="." />          </a>        </xsl:when>        <xsl:otherwise>          <xsl:apply-templates select="." />        </xsl:otherwise>      </xsl:choose>    </xsl:if>          </xsl:for-each></xsl:template><xsl:template name="RenderSimpleMultivalue">  <xsl:param name="multivalue"/>  <xsl:param name="cutoff"/>  <xsl:for-each select="$multivalue">    <xsl:sort data-type="number" order="descending" select="@hashh"/>    <xsl:variable name="p" select="position()"/>    <xsl:if test="string-length(.) &gt; 0">      <xsl:choose>        <xsl:when test="$p = 1">          <span id="Multivalue">            <xsl:apply-templates select="." />          </span>        </xsl:when>        <xsl:when test="$p &gt; 1 and $p &lt;= $cutoff">          <span class="psrch-TextSeparator"> :: </span>          <span id="Multivalue"><xsl:apply-templates select="." /></span>        </xsl:when>        <xsl:when test="$p = $cutoff + 1">          &#8230;        </xsl:when>      </xsl:choose>    </xsl:if>  </xsl:for-each></xsl:template><xsl:template name="HitHighlighting">  <xsl:param name="hh" />  <xsl:apply-templates select="$hh"/> </xsl:template><xsl:template match="ddd">   &#8230;  </xsl:template> <xsl:template match="c0">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c1">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c2">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c3">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c4">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c5">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c6">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c7">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c8">     <b><xsl:value-of select="."/></b></xsl:template> <xsl:template match="c9">     <b><xsl:value-of select="."/></b></xsl:template> </xsl:stylesheet>
    i want to archive is a standard who is who list with initials.
    any help appreciated
    "Carpe Diem" does not mean "fish of the day."

  • SharePoint 2010 - People Search Results - About Me Property

    Hi,
    Currently, we have About Me showing in our People Search Results page.
    About Me is a User Profile Property that allows Users to specify information about themselves. This Profile Property is an HTML property and therefore may contain links/URLs. When About Me contains links/URLs, they appear as proper links in the User Profile.
    However, in the People Search Results page, they just appear as plain text. We would like them to appear as actual links similar to the User Profile.
    Is there a way to do this?
    Thanks!

    Hi Seth,
    I do know it uses XSLT and have modified this XSLT before for Business requirements.
    However, I'm not even sure if my question is something that can be fixed thru XSLT.
    In XSLT, it is only 1 line that shows the About Me text:
    <xsl:value-of select='substring(hithighlightedproperties/aboutme,1,350)' />
    So I'm not sure if there's any way else to achieve what we want.

  • Custom People Search

    Hey,
    I am trying to build my own custom 'People Search' portlet and I was hoping to use the existing code behind the 'People Search' capability already built into the Portal and just modify that by adding my own criteria. Would anyone know where I could get the code that was used to build the 'People Search' portlet of Portal and where the sql for it is stored?
    Thanks

    Hi Sonia,
    I would suggest that you continue your first thread itself :-
    Re: Allow PUBLIC users to search and view basic OID data
    It helps others to track the responses & offer more solutions.
    Regards,
    Sandeep

  • People Search and a Custom Property

    I am trying to surface a custom property in the people search query results. For example,
    http://<servername:port>/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'
    I get XML results but when I look at the properties returned for each of the people result, there are no custom properties from user profile properties. How can I modify the custom properties so that they start showing in the XML results for people search?
    Rank, DocId, AboutMe, AccountName, BaseOfficeLocation, Department etc.
    Please let me know.
    Thanks!
    Update: I am using SearchExecutor class and its ExecuteQuery API.

    Hi,
    Thank you for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • 2013 Wildcard People Search

    Is there a way to wildcard the people search in the search center? 
    Most of the time the people picker suggestion drop down doesn't load quick enough for our users so they type half of someone's name and hit enter which then produces an error about no results matching the search.

    Hi MJ2012,
    According to your description, my understanding is that you want to implement wildcard people search in SharePoint 2013 Search Center.
    For achieving your requirement, when the users type half of someone's name, please append “*”, then search. It will returen all user whose name is started with the typing string, like:
    “admin*”
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • Sharepoint error - Search Issue - The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1).

    i see this error everywhere - In ULS logs, on site. On the site > Site settings > search keywords; I see this - 
    The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>IIS 7.0 Detailed Error - 500.19 - Internal Server Error</title> <style type="text/css"> <!-- body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;background:#CBE1EF;} code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} .config_source code{font-size:.8em;color:#000000;} pre{margin:0;font-size:1.4em;word-wrap:break-word;} ul,ol{margin:10px 0 10px 40px;} ul.first,ol.first{margin-top:5px;} fieldset{padding:0 15px 10px 15px;} .summary-container fieldset{padding-bottom:5px;margin-top:4px;} legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} legend{color:#333333;padding:4px 15px 4px 10px;margin:4px 0 8px -12px;_margin-top:0px; border-top:1px solid #EDEDED;border-left:1px solid #EDEDED;border-right:1px solid #969696; border-bottom:1px solid #969696;background:#E7ECF0;font-weight:bold;'.
    I am facing issues in searching, my managed metadata service is not running, search results page throws internal error. Any Idea why this above error comes.
    P.S: We use windows authentication in our environment.

    Hi IMSunny,
    It seems you have solved this issue based on your another post.
    http://social.technet.microsoft.com/Forums/en-US/aa468ab0-1242-4ba8-97ea-1a3eb0c525c0/search-results-page-throws-internal-server-error?forum=sharepointgeneralprevious
    Thanks
    Daniel Yang
    TechNet Community Support

  • 'People Search Core Result' web part with 'office' filter in Keyword Query is not returning results

    I have created a page with "People search core result" web part on SharePoint 2010.
    When I try to use the setting (A) or (C) as shown below, there is no results been returned but when set to setting (B), there are results been returned.
    In the returned results I can see the OfficeNumber field is been populated with values and some of them is "UK Finance".
    Setting (A)
    Result Query Options
    -- Fixed Keyword Query = contentclass:spspeople -- Append Text To Query = Department:"Finance" AND OfficeNumber:"UK Finance"
    Setting (B)
    Result Query Options
    --- Fixed Keyword Query = contentclass:spspeople --- Append Text To Query = Department:"Finance"
    Setting (C)
    Result Query Options
    --- Fixed Keyword Query = contentclass:spspeople --- Append Text To Query = OfficeNumber:"UK Finance"
    What am I doing wrong here? Am I missing something? Do I need any additional configuration in order to get this to work?
    I hope someone could help me or point me to the right direction.
    Thank you
    muges

    You might want to check the Manage User Properties area of the User Profile Service in Central Admin.
    Any properties you query on should be marked "Indexed" or "Use in Scopes".  You can also check that you are using the correct internal name for these properties.

  • How to search xml file data based on the given keyword from html form

    hi,
    i'm new to XML. I have this problem regarding searching within a XML file.
    the
    idea is that my search will be based on the keyword entered
    in
    by the user from a HTML form. the keyword is then used to search all
    the
    question nodes and the choice nodes within a XML file. once the match
    is
    found, i will have to display the results.
    But i don't know how to do so - especially the part of searching xml file.
    Can
    anyone help me in this? Your help is much appreciated.
    Edited by: Moti_Lal.D on Apr 4, 2008 7:28 AM

    yeah.. what i was trying to do is
    i have one xml fine. then i have to read all the tag values say
    <book>
    <title>Java</title>
    <author>agarwal</author>
    <price>200</price>
    </book>
    <book>
    <title>Xml</title>
    <author>saxmann</author>
    <price>300</price>
    </book>
    i can read the tag values like this
    File file = new File("dom.xml");
    try {
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document doc = builder.parse(file);
    NodeList nodes = doc.getElementsByTagName"book");
    for (int i = 0; i < nodes.getLength(); i++) {
    Element element = (Element) nodes.item(i);
    NodeList title = element.getElementsByTagName("title");
    Element line = (Element) title.item(0);
    what i want is i may give any xml file
    like File file = new File("xxx.xml");
    (it may be one level/two level/3level tagged one)
    then the i should read all the tag values and store them in some array. Then when i enter some character from keyboard (say "a") then it has to show all the tag values starts with "a" and display them.
    i guess u understand my problem.

Maybe you are looking for

  • Char displaying only the first three characters in the cube

    Hi Experts I have a char  with lenth 60 and it's active.I am updating this char via the update routine whereby i am reading data from an active table of an ODS as i update in the update rules. But surprisingly,once the load is succesful and complete,

  • Set up iPad Air transferring data from iPad3 to Air

    I just ordered a new iPad Air 128GB with WiFi and Verizon. I have to turn the iPad 3 into Best Buy when it arrives as they gave me a good credit for my current 64GB wifi/verizon ipad3. Is there easy to transfer all my apps, photos , music, movies and

  • How to start and stop Network on MAC OS 10.4

    Hi, for starting my oracle database I need to disconnect my PowerBook from the network to start up in order to allow the Enterprise Manager to come up with changing DHCP address (Loopback). I am looking for a command similar to '/etc/init.d/network s

  • Replace in external class

    HI, How can I modify an external class? For example to read a value from an outside class and replace it with another one.

  • Link a MATCHCODE (searchhelp) with a PARAMETERS?

    Hi, How can I link dynamically a search help with a parameters in the AT SELECTION-SCRENN ON VALUE REQUEST event ? Thanks?