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."

Similar Messages

  • Add initials attribut in People Search

    Hello all
    I have a staff directory, I added phone number of my users with the following procedure :
    http://antclegg.blogspot.ch/2013/09/people-search-with-work-number-in.html
    Now I try to add an active directory attribut - initials, For that I added a attribut :
    And added the code :
    var has_initials = !$isEmptyString(ctx.CurrentItem.Initials);
    if(has_initials == true) {
    _#-->
    <div id="Initials">
    <!--#_
    var encodedinitials = $htmlEncode(ctx.CurrentItem.Initials);
    var displayinitials = Srch.U.getSingleHHXMLNodeValue(hhProps, "Initials");
    if ($isEmptyString(displayinitials)) { displayinitials = encodedinitials }
    _#-->
    <div id="InitialsValue" class="ms-srch-ellipsis" title="_#= encodedinitials =#_"> _#= displayinitials =#_ </div>
    </div>
    <!--#_
    But It doesn't work :(
    Thank you in advance for your help

    Hi ,
    According to your description, my understanding is that you want to add an active directory attribution to people search result.
    For your issue, please make sure the attribution "initials"  exists  in  the user properties.You can go to Central  Administration -> Application Management -> Manage service applications -> User Profile Service Application
    -> Manage User Properties.
    You can have a look at the blog:
    http://stevemannspath.blogspot.com/2013/05/sharepoint-2013-search-adding-managed.html
    https://onedrive.live.com/?cid=b0e334a7a014f2c7&id=B0E334A7A014F2C7%213611&ithint=file,.html&authkey=!AGeRYNjgDv_yxyg
    Thanks
    Eric
    Eric Tao
    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 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 results links are incorrect?

    Hello Everyone,
    Just setup People Search on SP2013 SP1 (July 2014 CU).  I have not used it in the past.
    I am finding that after I search for a staff member the results show fine.  However if I click on the user link to go to their MySite page I get the "Sorry, something went wrong" page with "User not found".
    When comparing the URLs I see this difference:
    Url from search result -
    https://.../Person.aspx?accountname=DOMAIN%255Cusername
    Url to the users MySite -
    https://.../Person.aspx?accountname=DOAMIN%5Cusername
    It appears is adding a 25 in the url preventing the "\"?
    Can anyone confirm if this is a bug in SharePoint 2013 SP1 (July 2014 CU)?
    I came across these articles which leads to think so.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/17005728-3e68-49f5-8882-85cc8260e53b/people-search-error?forum=sharepointgeneral
    http://sharepoint.stackexchange.com/questions/97882/my-sites-link-in-search-resuls-is-incorrect-escaped

    Yeah, that's a known issue caused by the MS14-022 security patch.
    It is hoped that it's in the September CU according to Stefan's comment in the link below:
    http://blogs.technet.com/b/stefan_gossner/archive/2014/08/13/august-2014-cu-for-sharepoint-2013-has-been-released.aspx

  • People Search without My Sites

    Hi,
    We are building our corporate intranet and trying to implement people search in our SharePoint 2013 Enterprise edition environment. The environment has been updated up to August CU and I am implementing host-named site collections. The challenge faced is
    that we don’t want to implement My Sites at this point. However all reading material points to having My Sites to implement people search. I have set up the User Profile service and imported users from Active Directory. All I want is to be able to search the
    User Profiles and display results. Is there any other option besides implementing My Sites? Would setting up the My Site host collection without actually setting up My Sites do the trick?
    Thanks for your help in advance.
    Mera

    You need to setup a MySites host in order to take advantage of profiles.  You do not need to have mysites enabled for people search to work.  If you're worried about MySites being enabled you can keep self site creation turned off and turn off
    the social features.
    MCITP-EA | "Never test how deep the water is with both feet"

  • People search portlet problems

    Hi, I'm trying to use the built in People Search application in Portal 3.0.9.8.1. When I enter a name and click on the button to search I find that the search results are unreadable, i.e., no text appears in the rows that are returned. If my search criteria has 5 matching results then the results report display 5 rows with blank text!
    This problem can be repeated across multiple installs of 3.0.9.8.x on both NT, Win2k and Solaris.
    Why is this happening? What is the workaround?
    Regards,
    John
    null

    We encountered this problem in June... see below for the post
    moving from 3.0.7 to 3.0.8, the font entries in packages ORGCHART, DETAIL_RPT, AND PDETAIL_RPT were changed from 12 to +0. Evidently, Internet Explorer doesn't understand +0 to well. Fortunately, these packages aren't wrapped...so you can change the +0 entries back to a default font size of 12.
    If you copy the contents of these packages into a text editor and search for +0, you will find all of the entries that need to be changed back to 12. We used TOAD to update the packages. I would suggest exporting the packages as a backup prior to updating them.
    -Mark

  • People Search Error

    Since upgrading to SharePoint Server 2013 SP1 (April 17th release) our search for people returns results but the links to the User Profile My Site page are invalid (double URL Encoding). If, from the search results page, a user clicks on a person the link
    looks like:
    https://mysite.contoso.com/Person.aspx?accountname=Domain%255CUserName. The account name link should just be Domain%5CUserName, converting the backslash to %5C, however, it looks like the results are reformatting the link from % to %25 resulting in %255C.
    I'm not sure why it started doing this. The images next to the search results appear so the user profile phot link is correct and is not double encoded. Another place where this is occuring is in the video viewer page (videoplayerpage.aspx) the image
    next to the User Information above the Related web part is a broken link
    https://mysite.contoso.com/User%2520Photos/Profile%2520Pictures/username_MThumb.jpg?t=63515195352. As you can see when generating the link it has already converted the space to %20 but it then for some reason reformats it again convering the % in %20 to
    %25 resulting in %2520 which doesn't go anywhere. Does anyone know why the already formated links are reformated?
    Thank You

    I can confirm the workaround proposed by Trevor of modifying Search.ClientControls.js delivers the base result desired, although I think there may be an issue with that in that it's going to be tricky to push out the modified JavaScript and ensure
    that it gets updated in downstream proxies & end users browser caches. I had some user reports firsthand and seen other reports where the modified JS is not seen to have been updated on the end users client.
    This is to be expected as the symptom of the change not seeming to kick in is definitely an effect originating downstream from the server - if it's not the local workstations client caching, it could be downstream proxies.
    For the uninitiated, Chris O'Brien has a good post from a while back on some of the principles of SP clientside cache behaviour in regards to JS:
    http://www.sharepointnutsandbolts.com/2011/11/avoiding-bugs-from-cached-javascript.html
    If you needed to validate/bust the caching, you could use Fiddler on any workstation and change the expires headers for the file in question, or modify the "?Rev=" querystring part in the following line on your SharePoint page output and you
    should see the expected patched script:
    <script type="text/javascript" src="/_layouts/15/search.clientcontrols.js?rev=JRaJplErXEdDXuBoRMcg2Q%3D%3D"></script>
     Unfortunately that script reference is not directly referenced the standard SP 2013 Masterpages (not that that would help for people using OOTB masterpages anyhow) but rather generated on the fly. I've not caffeinated enough today to follow that
    trail any deeper.
    People Search is one of those places where key SharePoint stakeholders will notice breakages right away- profiles & social are obviously critical in SharePoint.  I think the best thing would be if an official patch for this were expedited
    at high priority by MS, before we all descend too much further down the rabbit hole of trying to work around this bug. :)  
    Keith Tuomi | Twitter: @itgroove_keith | Blog:
    http://yalla.itgroove.net
    Please click "Propose As Answer" if a post solves the problem or "Vote As Helpful" if a post has been useful to you.

  • Add custom properties to People Search Results

    Good morning,
    I am trying to include some custom properties to our Search Results. These are the steps I have followed so far:
    Create User Profile Service Property and sync to AD. The property is populated for different users.
    Run full crawl
    Create managed property on the Schema, and map this to the crawled property
    Created a new version of the Item_Person.html template and changed its title.
    Upload to the Display Templates gallery, and created a new Result Type with this as its template
    Added the new property to the mso:ManagedPropertyMapping tag
    Went to Search Result Types, and selected "Update" on the Property Sync alert
    On the new template, the new property appears on the object ctx.CurrentItem, but its value is null.
    Am I missing something? Tried running full crawl and incremental crawl. Even tried removing the index first.

    Hi,
    Please try to add custom properties using Central Admin.
    I find a thread with the same question, check this:
    http://sharepoint.stackexchange.com/questions/123090/add-custom-properties-to-people-search-results
    More information:
    http://blogs.technet.com/b/tothesharepoint/archive/2013/09/11/how-to-display-values-from-custom-managed-properties-in-search-results-option-1.aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • MySite Deletion Emails, UPS, People Search Results

    SharePoint 2013
    We exclude disabled accounts from the UPS for a number of reasons - we don't want the overhead of non-employees, we don't want (requirement) these users to show in people search results, etc.
    Problem - Managers who receive the MySite Deletion email cannot access the account because the account does not exist.
    How do we solve this problem?
    If we include disabled accounts in the UPS, can we filter that information so that only accounts disabled within the last X number of days are included? And if that's attainable, how do we then filter out disabled accounts from people search results
    for those users who were imported?
    Is there a better way to accomplish this?
    There seem to be a large number of threads on this topic, but no real definitive answer or best practice, other than just saying 'import disabled accounts into the ups', which isn't a blanket resolution and will not work for us.
    Thanks
    SPNoob

    Not sure what you mean by "manager cannot access the account..." When you filter disabled accounts in UserProfile Sync the following things happen
    The disabled user will be missing from the next User Profile Sync.  They will be marked as "Missing from Import".
    When the MySite CleanUp job runs users who are missing from IMport will have their profiles deleted.  Their mySite will also be added to a list which will delete the site after 14 days.  Their manager in AD will also be made the secondary site
    collection admin of the mysite and sent an email with a link to that mysite.  The manager won't be able to login to the mysite home page, but will be able to access all the lists and libraries on the mySite to retrieve any IP stored there.
    After 14 days the MySite will be deleted.
    The user's information will remain in the UserInfo table of each site collection where they contributed content.  That way their name will still show for CreateBy and ModifiedBy entries on content.
    That's how the process works.  If you can explain what you mean by manager cannot access the account I'll try to help and explain further.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • 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

  • Sorting people search results

    Hi
    We tried to sort the PeopleSearch Results by LastName and then by FirstName using the Query Designer.
    In the preview everything works fine, buth when we save the web part settings and do a seearch on the people results page, the results are not sorted as excpected.
    Query Sorting, (sorting as expected in preview)
    People results page using the settings above:
    Not properly sorted
    Does anybody have an idea?
    Thanks,
    Stephan

    Wow! I was able to reproduce your problem. There seems to be no way to get the sorting to work correctly in the search results. I have been able to sort the results correctly using either a) Content by Search part or b) an App issuing a query through
    the API.
    I think you are going to have to replace the OOB people search page with a custom solution based on either the Content by Search part or an app.
    I have an Employee Directory app available on my CodePlex project here.
    http://apps.codeplex.com/releases/view/91377
    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

  • Display Error - People Search Results Page

    Hi
    Can anyone help me figure out what I've done wrong with this code to get this error?  I'm not a programmer so I'm just trying to get this one thing fixed.  Thanks!
    Display Error: The display template had an error.  You can correct it by fixing the template or by changing the display template used in either the Web Part properties or Result Types.
    Template '~sitecollection/_catalogs/masterpage/Display Templates/Search/UIF_Item_Person.js' not found or has syntax errors. (LoadTemplate: ~sitecollection/_catalogs/masterpage/Display Templates/Search/Group_Default.js)
    <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','OfficeNumber':'OfficeNumber','OfficeLocator':'OfficeLocator','WorkPhone':'WorkPhone','MobilePhone':'MobilePhone','HomePhone':'HomePhone','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    <mso:HtmlDesignStatusAndPreview msdt:dt="string">https://uif.sharepoint.com/search/_catalogs/masterpage/Display%20Templates/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_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_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 =#_"> _#= displayDept =#_ </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>
    <!--#_
    _#-->
    <!--#_
    if(has_onumber == true) {
    _#-->
    <div id="OfficeNumber">
    <!--#_
    var encodedonumber = $htmlEncode(ctx.CurrentItem.OfficeNumber);
    var displayonumber = Srch.U.getSingleHHXMLNodeValue(hhProps, "OfficeNumber");
    if ($isEmptyString(displayonumber)) { displayonumber = encodedonumber }
    _#-->
    <div id="OfficeNumberValue" class="ms-srch-ellipsis" title="_#= encodedonumber =#_"> <b>Office:</b> _#= displayonumber =#_ </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>
    <!--#_
    _#-->
    <!--#_
    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> _#= displayolocator =#_ </div>
    </div>
    <!--#_
    _#-->
    <!--#_
    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>
    <!--#_
    _#-->
    <div>
    office:_#= ctx.CurrentItem.OfficeNumber =#_
    OfficeLocator: <a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a>
    </div>
    <!--#_
    _#-->
    </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 Chasquad,
    From the code in your post, you need to delete the "<!--#_ }_#-->" after the div.
    I also recommend to add this div into the <div
    id="OfficeLocator">, and the code should be like this:
    <!--#_
    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 =#_">OfficeLocator: <a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a></div>
    </div>
    <!--#_
    _#-->
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • Add Horizontal Line in People Search Results Page

    Hi everyone
    I have a modified people search results page (SharePoint Online) where I have added a few fields to the results page.  I would like to better organize the fields by placing a horizontal line in there somewhere.
    For instance, I would like to add a light gray horizontal line where I drew the red lines on this image:
    Here is a copy of my current people search results code:
    <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','OfficeNumber':'OfficeNumber','OfficeLocator':'OfficeLocator','WorkPhone':'WorkPhone','MobilePhone':'MobilePhone','HomePhone':'HomePhone','WorkId':'WorkId','YomiDisplayName':'YomiDisplayName'</mso:ManagedPropertyMapping>
    <mso:HtmlDesignStatusAndPreview msdt:dt="string">https://uif.sharepoint.com/search/_catalogs/masterpage/Display%20Templates/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_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_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 =#_"> _#= displayDept =#_ </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>
    <!--#_
    _#-->
    <!--#_
    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>
    <!--#_
    _#-->
    <!--#_
    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>
    <!--#_
    _#-->
    </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>
    I'm not a developer, so please keep that in mind. I do appreciate any help. Thanks!

    Hi,
    According to your post, my understanding is that you want to add Horizontal Line in People Search Results Page.
    I recommend that you can use the
    HTML <hr> Tag in the display template file.
    You can add the code below to the html page under the <div id="NameField"></div>
    <div>
    <div> Office:_#= ctx.CurrentItem.OfficeNumber =#_ </div>
    <div> Department:_#= ctx.CurrentItem.Department =#_ </div>
    <hr>
    <div> Organization: _#= ctx.CurrentItem.Organization =#_ </div>
    <div> Organization:<img id="PicPreview" src="_#= ctx.CurrentItem.Organization =#_"/> </div>
    <hr>
    <div> OfficeLocator:<a clicktype="Result" id="NameFieldLink" href="_#= ctx.CurrentItem.OfficeLocator =#_">_#= ctx.CurrentItem.OfficeNumber =#_</a> </div>
    </div>
    The result is as below:
    Thanks,
    Linda Li                
    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]
    Linda Li
    TechNet Community Support

  • 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

Maybe you are looking for

  • Can I use my SIM card in another phone temporarily?

    Question for you all - I'm new to the GSM world having been a long-time Verizon customer prior to my new Iphone. As such, I really don't know much about SIM cards since CDMA doesn't use them. Can I use my Iphone SIM card in another phone temporarily?

  • Huge Delays in XCode Version 6.0.1 (6A317)

    I've been using XCode 6.0.1 for a while now on a large-ish project, and was wondering whether anyone else is experiencing these symptoms: a) Sometimes it gets to the point that the spinner comes up on EVERY keystroke, and I have to wait 10 second bef

  • Help Please -Need video to NOT automatically load when not using autoplay feature

    Hi, I am hoping someone can help me or point me to the right place to find what I need! I use the standard skins in Flash for putting videos onto a webpage but I am having problems when I use more than one video on a page. I have the videos set to au

  • Username and password: OLAP???

    To export metadata "BRIDGE" from OWB to OLAP required username and password, these are the sys, system? or for OLAP_DBA Role? so my usrer OLAPSYS are looked? what I have to make to export data? now still doen't export just ask to make shure that I ma

  • ? about Flip Horizontal w/ paths

    I'm a bit of a newbie and had a question. I'm learning how to use the drawing tools in Photoshop. I've drawn a simple path, and select it with the Path Selection tool. The problem is when I go to Edit > Transform Path, the Flip Horizontal, Flip Verti