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

Similar Messages

  • 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

  • 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

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

  • How to add/set attribute "collectiveParentRDN" in DSEE6.3.1 installation.

    Hi,
    I'm new to DSEE and I have a question ,
    I have a code which
    1. First it binds to LDAP server through a proxy user.
    2. Authenticates a user
    3. Gathers all the roles that a user is a member of.
    It uses ,”collectiveParentRDN ” as a DN attribute.
    For e,g,in following line from the code:
    userDN = attrs.get("collectiveParentRDN").get().toString();
    But I’m getting userDN as null as there is no attribute called collectiveParentRDN in the LDAP schema I’m using.
    However when I use “entryDN” instead, it works.
    But I need to use “collectiveParentRDN” . and I'm not able to configure this attribute in the
    When I try to add this attribute I get a constraint /schema violation error.
    Can anyone please tell me how to add /set this attribute to DSEE6.3.1 LDAP server.?
    Here is the complete code snippet:
    import java.util.ArrayList;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.NamingEnumeration;
    import javax.naming.directory.Attributes;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.InitialDirContext;
    import javax.naming.directory.SearchControls;
    import javax.naming.directory.SearchResult;
    public class LDAPPrototype {
         public static final String LDAP_URL = "ldap://localhost:389";
         public static final String LDAP_LDAPSERVER_SEARCHBASE = "o=MyLDAP";
         public static final String SECURITY_AUTHENTICATION_METHOD = "simple";
         public static final String INITIAL_CONTEXT_FACTORY = "com.sun.jndi.ldap.LdapCtxFactory";
         public static final String LDAP_USER_GROUP_ATTR = "nsRole";
         private static final String LDAP_USER_LOGIN = "dsingh1";
         private static final String LDAP_USER_PASSWORD = "password";
         // NOTE: Three new params for authenticating proxy.
         public static final String LDAP_PROXY_PROXYDN = "uid=will,ou=Blue,ou=People,o=MyLDAP";
         public static final String LDAP_PROXY_UID = "will";
         public static final String LDAP_PROXY_PASSWORD = "password";
         // NOTE: TWO new params to get users correct DN after search
         public static final String LDAP_USER_DN_ATTR = "collectiveParentRDN";
         public static final String LDAP_USER_CN_ATTR = "cn";
         public static void ldapAuthentication() {
              Hashtable env = new Hashtable();
              Hashtable cloneEnv = new Hashtable();
              DirContext ctx = null;
              String userDN = null;
              String userCN = null;
              String searchBase = null;
              try {
                   env.put(Context.SECURITY_AUTHENTICATION,
                             SECURITY_AUTHENTICATION_METHOD);
                   env.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
                   env.put(Context.PROVIDER_URL, LDAP_URL);
                   cloneEnv = new Hashtable(env);
                   env.put(Context.SECURITY_PRINCIPAL, LDAP_PROXY_PROXYDN);
                   env.put(Context.SECURITY_CREDENTIALS, LDAP_PROXY_PASSWORD);
                   ctx = new InitialDirContext(env);
                   System.out.println("Initial bind succesful");
                   SearchControls searchCtls = new SearchControls();
                   String[] returnedAtts = { LDAP_USER_DN_ATTR, LDAP_USER_CN_ATTR };
                   searchCtls.setReturningAttributes(returnedAtts);
                   searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
                   String searchFilter = "(uid=" + LDAP_USER_LOGIN + ")";
                   searchBase = LDAP_LDAPSERVER_SEARCHBASE;
                   System.out.println("Checking for user !!!");
                   NamingEnumeration answer = ctx.search(searchBase, searchFilter,
                             searchCtls);
                   System.out.println("User search successful !!!");
                   Attributes attrs = null;
                   while (answer.hasMore()) {
                        System.out.println("Searching for user attrributes!!!");
                        // Print all the user attributes
                        SearchResult sr = (SearchResult) answer.next();
                        attrs = sr.getAttributes();
                        System.out.println("Num of attributes = " + attrs.size());
                        // NamingEnumeration attrKeys = attrs.getIDs();
                        // while (attrKeys.hasMore()) {
                        // String at = attrKeys.next().toString();
                        // System.out.println("Key = " + at + ", value = " +
                        // attrs.get(at).get());
                        if (attrs.get(LDAP_USER_DN_ATTR) != null) {
                             System.out.println("User DN found for user: "
                                       + LDAP_USER_LOGIN);
                             userDN = attrs.get("collectiveParentRDN").get().toString();
                             System.out.println("User DN = " + userDN);
                        if (attrs.get(LDAP_USER_CN_ATTR) != null) {
                             System.out.println("User CN found for user: "
                                       + LDAP_USER_LOGIN);
                             userCN = attrs.get(LDAP_USER_CN_ATTR).get().toString();
                             System.out.println("User CN = " + userCN);
                        if ((userDN != null) && (userCN != null)) {
                             break;
                   userDN = LDAP_USER_CN_ATTR + "=" + userCN + "," + userDN;
                   System.out.println("Modified user DN = " + userDN);
                   cloneEnv.put(Context.SECURITY_PRINCIPAL, userDN);
                   cloneEnv.put(Context.SECURITY_CREDENTIALS, LDAP_USER_PASSWORD);
                   System.out.println("Authenticating user : " + userDN);
                   ctx = new InitialDirContext(cloneEnv);
                   System.out.println("Authenticated user : " + userDN);
                   System.out.println("Get user groups !!!");
                   String[] returnedGroups = { LDAP_USER_GROUP_ATTR };
                   searchCtls.setReturningAttributes(returnedGroups);
                   NamingEnumeration groups = ctx.search(searchBase, searchFilter,
                             searchCtls);
                   ArrayList<String> groupList = new ArrayList<String>();
                   while (groups.hasMore()) {
                        // Print all the user attributes
                        SearchResult sr = (SearchResult) groups.next();
                        attrs = sr.getAttributes();
                        if (attrs.get(LDAP_USER_GROUP_ATTR) != null) {
                             System.out.println("Num of groups found = " + attrs.size());
                             String groupName = attrs.get(LDAP_USER_GROUP_ATTR).get()
                                       .toString();
                             groupList.add(groupName);
                             System.out.println("Group found = " + groupName);
              } catch (Exception e) {
                   System.out.println(e);
                   e.printStackTrace();
         public static void main(String[] args) {
              ldapAuthentication();
    }Thanks in Advance.
    Rahul

    You are right, that attribute is not in the schema.
    I think perhaps that could be the reason I'm getting an schema violation error when I'm trying to add it.
    Can you please tell me how do I add any new attribute to the schema ?
    Thanks in advance
    Rahul.

  • Master Data is in Revised Version while transporting a request to add an attribute in existing master data infoobject

    Hi Experts,
    I am facing short dump when trying to send a request to add an attribute in Master Data Infoobject from DEV to QA.
    Although the attribute is getting added to main Master data Info object but main master Info object is in Revised Version.
    I have been searching the solution in SCN from couple of days and tried every single solution but none of them works for us.
    When I check in se09 I am getting the following message
    Program terminated (job: RDDEXECL, no.: 09445401)
       Execution of programs after import (XPRA)
    End date and time : 20150420094559
    Ended with return code: ===> 12 <===
    When checking in ST22 IN QA I am getting the following message
    The exception 'CX_RS_PROGRAM_ERROR' was raised, but it was not caught anywhere
      along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_RSDD_DS====================CP' has to be
    terminated.
    When I checked in ST22 in QA I am getting following dump
       31         RAISE EXCEPTION TYPE cx_rs_program_error
       32           EXPORTING
       33             text = 'Invalid DSO subtype'.                   "#EC NOTEXT
       34     ENDCASE.
       35
       36 *   get table name from DDIC
       37     CALL METHOD cl_rsd_odso=>get_tablnm
       38       EXPORTING
       39         i_odsobject = n_infoprov
       40         i_tabt      = l_tab
       41       IMPORTING
       42         e_tablnm    = l_tablnm
       43       EXCEPTIONS
       44         OTHERS      = 1.
       45
       46     IF sy-subrc <> 0.
       47       RAISE EXCEPTION TYPE cx_rs_program_error
       48         EXPORTING
       49           text = 'Error in CL_RSD_ODSO=>get_Tablnm'. "#EC NOTEXT
       50     ENDIF.
       51
       52     CALL FUNCTION 'DDIF_NAMETAB_GET'
       53       EXPORTING
       54         tabname   = l_tablnm
       55       TABLES
       56         dfies_tab = l_t_comp
       57       EXCEPTIONS
       58         not_found = 1
       59         OTHERS    = 2.
       60     IF sy-subrc <> 0.
    >>>>> RAISE EXCEPTION TYPE cx_rs_program_error
       62         EXPORTING
       63           text = 'Error in DDIF_NAMETAB_GET'.        "#EC NOTEXT
       64     ENDIF.
    I have attached the short dump
    Thanks In Advance
    Rashid

    Hi Tom
    Thanks for your reply.
    I am not sure what do you mean by Manually activated in Dev or QA . If you mean Dev then i did and also maintain the infoobject related tables using transaction SE14 but still same error.
    But if you mean in QA then QA is lock for manual activation but i tried though program RSDG_IOBJ_ACTIVATE but again failed. I also maintain the infoobject related tables using transaction SE14 but still same error.
    Regards
    Rashid

  • 11.5.9/OAF 5.7 : how to add new fields in iProc "search results" page

    We need to add new fields into iProc "search results" page - "Personalize Self-Service Defn" is et, we can enter the personalization screens (from both the "master" link at top/right page level or from the link above the region) - anyway cannot find how to add new fields. Do we have to go to AK developer and/or XML files or is it feasable from OAF (as it is with 11510) ? TIA.

    It depends on what fields you want to add.
    1. If Oracle has included the fields, just render them via personalizations
    2. If they are brand new fields:
    a) you will need to extend the VO (I do not know the exact name).
    b) change the query to get your extra db columns if necesary
    c) add transient attributes to the VO and map them to b).
    d) Then you need to add the items via personalization and map them to the attributes you created in c)
    Check on metalink for the lates version of OAF Dev Guide and Personalization guide.
    Thanks
    Sandeep

  • People Search question in Ent Search 2013

    There's a recommendation for breaking our s3://My_Site_host_URL into its own Content Source for People Search
    How does the Seach know to connect Standard Names (ex: AnneW or A. Weiler below) to document search. Do I have to map that in Managed Properties manually, or it happens automajically?
    http://technet.microsoft.com/en-us/library/dn535606(v=office.15).aspx
    •         sps3://My_Site_host_URL, which is for crawling user profiles
    However, if you are deploying "people search", we recommend that you create a separate content source for the start address sps3://My_Site_host_URL and run a crawl for that content source first. The reason for doing this is that after the crawl
    finishes, the search system generates a list to standardize people's names. This is so that when a person's name has different forms in one set of search results, all results for that person are displayed in a single group (known as a result block). For example,
    for the search query “Anne Weiler”, all documents authored by Anne Weiler or A. Weiler or alias AnneW can be displayed in a result block that is labeled "Documents by Anne Weiler". Similarly, all documents authored by any of those identities can
    be displayed under the heading "Anne Weiler" in the refinement panel if "Author" is one of the categories there.

    Hi Kali,
    Form the article, it seems SharePoint search mechanism will automatically generates a list to standardize people's name. You could test it in your envrionment via the steps below:
    Access Search Administration page >  Content sources.
    Remove sps3://myhost in Local SharePoint sites, create a new content sources named "people", and add sps3://myhost to it. Start a full crawl.
    I use Anne Weiler as example. Make sure the User Profile has been imported. Also upload some documents authored by A.Weiler or alias. Start a cremental crawl in related content resource.
    Access search center, and test the issue. Use the keyword "author:Anna Weiler" "author:A.Weiler" and "author:alias" and see the results.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • People Search CellPhone - Office 365

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

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

  • 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

  • Change length of attributes in Advanced Search

    JDeveloper 11.1.1.0.2 and JHeadstart 11g TP1.
    I have a question about changing the length (width) of attributes in Advanced Search in JHeadstart:
    I have a varchar2(6) field and In JAG I have used the following values:
    Java type = String
    Display type = TextInput
    In my application this field has 6 characters (= OK).
    But when I use Advanced Search in my application the field is much longer than 6 characters. I can fill in everything I want. Is there a way to change this so I can only use 6 characters in de the search field?

    OK, this is because in a search item you can use as many wildcards as you like: 'A%b%cdef%'.
    If you want to restrict the maximum length, you need to make a custom template for findTextInput.vm and add the following macro:
    #ITEM_MAXIMUM_LENGTH()
    Steven Davelaar,
    Jheadstart team.

  • Images are not being display in people search for few users - why ?

    Hello,
    In my farm, users having profile picture in UPSA and they are able to see in My Profile page as well.
    However when I find user in People search - images are not being display for few users while for others it works.
    I have checked picture property which is indexed and then I run full crawl still its same issue.
    Following are the settings for Picture Property - would you please let me know why its still not being display in people search ?
    Dipti Chhatrapati

    Dipti,
    Hope below urls will help you,
    https://littletalk.wordpress.com/2010/12/10/people-search-result-doesnt-have-images-in-sharepoint-2010/
    https://social.technet.microsoft.com/Forums/office/en-US/eea8aa10-4565-41bf-98ec-dc93fb600021/some-users-pictures-are-not-showing-in-people-and-groups-but-are-viewable-in-the-thumbnail-and-my?forum=sharepointgeneralprevious
    http://westerdale.biz/sharepoint-2010/display-active-directory-profile-thumbnail-photo-and-other-attributes-in-sharepoint-2010?doing_wp_cron=1421939809.4895009994506835937500
    Sudip
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

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

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

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

  • Adding Office in the People Search Item_Person.html

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

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

  • Add existing settype to product search

    Hello,
    I want to add the existing field basecategory (Relation ProductBaseCategory) to the product search in CRM.
    1. I have appended the new field to the search structure CRMT_PRIL_QUERY_ADVSEARCH_PROD
    2. I have created an entry in table CRMC_PRSEA_ATTR for my field. I have found the settype COMM_PR_CATEGORY which sounds suitable. But I cannot see the Attributes belonging to it. Does anybody know what is the attributes naem for the base category?
    Or has anybody another idea how I can add the BaseCategory to the Search Parameters?
    Thanks,
    Anne

    Hello Anne,
    Search based on Category ID is already present in standard.
    But I doubt, enhancing the search with base hierarchy would work since this field is not covered
    within existing standard search. ( I mean by underlying APIs).
    Best Regards,
    Shanthala.

Maybe you are looking for

  • Problem in sorting the column

    Hi everybody, I observed that in OBIEE, if there are 2 strings which are comination of small & capital letters say "ATer", "Ago" then if i give order by as asending on these columns the second string is taking 2 nd place eventhough the 2nd letter of

  • Disk of images won't open

    I burned a disk with photographic images. It was working properly at the time I burned it. Now, I want to open it and I can hear the drive grinding away, but it finally spits it out. The disk works fine on my husband's Power Book G4 with the same ope

  • Re: SKYPE TO GO PROBLEM

    My account stopped working a week ago. I can't find any information about this on the internet anywhere. What's going on?

  • IMAC shuts down unexpected

    iMac shuts down after ca. 1 hour - 1hr40 running. Can't restart afterm have to wait 2 - 3 hrs. before restarting,

  • Finder Quits Upon "Rebuild Desktop?"

    Suddenly I can't rebuild my desktop anymore on OS9 because every time I try to rebuild it, the Finder quits about 10 seconds into the process. Any suggestions??