Solved

modifying sharepoint search results

Posted on 2014-04-23
13
33 Views
Last Modified: 2016-06-05
Experts:

I have a BDC that crawls a bunch of emails that my users can then search on. The search results allow the users to a profile page for BDC where they can then download a copy of the email message. I'd like a copy of the "Click here to Download" message that appears on the profile page, on the actual search results to save my users that extra mouse click.

Can someone provide some guidance or a "how to" that will help me accomplish this please?

Thanks in advance for the help.
0
Comment
Question by:telliot79
  • 7
  • 5
13 Comments
 
LVL 31

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 40019395
You need to make sure you're returning the ID or whatever that makes the Download link unique to that item in search results. So it needs to be a managed property.

Then it's a question of changing the XSL of the search results webpart to display that as a link. I've done this for other types of data, not specifically the download link you mention.

Example of Search XSL modification;

http://ammarfassy.wordpress.com/2013/04/03/sharepoint-2010-search-core-results-xslt-transformation/

Adding managed properties;

http://johnrossjr.wordpress.com/2011/03/18/creating-custom-managed-properties/
0
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 40019816
Randomly this was published today which hosts another example of a modified Search Display Template;

http://techmikael.blogspot.ch/2014/04/solution-to-displaying-attachments-for.html
0
 

Author Comment

by:telliot79
ID: 40020124
Thanks JamieMcAllister.

I think I'm almost there. When I look at the download link URL, I'm getting this:

http://sharepointdev/_layouts/DownloadExternalData.aspx?
EntityNamespace=EmailBCS.BdcEmailClientLevelPermissions_&
EntityName=EmailMessage&LobSystemInstanceName=BdcEmailClientLevelPermissions_&
StreamAccessorName=EmailMessageStream&IsXmlEncodedStreamName=true&ItemId=__bg01001300330083008300

I need to create a managed property for the ItemID, but am not sure exactly how to do this? it doesn't seem as simple as your example. any ideas?
0
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 40020195
Can you confirm what version of SharePoint you're using?
0
 

Author Comment

by:telliot79
ID: 40020322
2010
0
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 40020372
I've a fair amount of experience adding Managed Properties in 2010 (as in I've done it on several installations). What specific issues are you having? Struggling to find the property?

There's some good links from this article;

http://searchunleashed.wordpress.com/2011/08/24/understanding-crawled-properties-managed-properties-and-full-text-index-part-1/

Happy to answer any specific issues you're facing.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:telliot79
ID: 40020424
yep, exactly, I can't find the property. let me get back to you because I think I might be able to figure this one out. Thanks for the help so far.
0
 

Author Comment

by:telliot79
ID: 40023574
Hi JamieMcAllister:

I can't find the ItemId in my Managed Properties list, so I've gone ahead and created it. I'm not sure how now to map it ItemId. How do I know which crawled property to map it to?

Thanks,
0
 

Author Comment

by:telliot79
ID: 40033386
in this specific example from msdn, (http://msdn.microsoft.com/en-us/library/office/ff634782(v=office.14).aspx) they're doing exactly what I'm doing apart from my BLOB is an email stream. in the example, how would I get the "click here to download" link for the document in my search results? Is this possible?
0
 
LVL 31

Expert Comment

by:Jamie McAllister MVP
ID: 40034430
Could you post what the markup behind the "Click here to Download" link actually looks like?

It may be you just need an item id that you have already. But I need to see to comment.
0
 

Author Comment

by:telliot79
ID: 40034900
I've attached the XSL code that should have everything. Let me know if this helps.

Thanks again.
0
 

Author Comment

by:telliot79
ID: 40034958
did I forget to attach?
bdc-xsl.txt
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now