AnantLabs / google-enterprise-connector-sharepoint

Automatically exported from code.google.com/p/google-enterprise-connector-sharepoint
0 stars 0 forks source link

When using GSBS with local stylesheet, you see document Icon for both .doc and .pdf files #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
=======================================
1. Install Google Search Box for SharePoint
2. While configuring the choose option "use local stylesheet" (refer
attachment "configuration.png")
3. Save configuration

What is the expected output? 
===============================
Search Box should display separate icons to distinguish between .doc and
.pdf files

What do you see instead?
=======================
Both .doc and .pdf files are shown with "document icon i.e. ICDOC.gif"

Reason:
=======
This is due to following section in the stylesheet code:

    <xsl:when test="$FExtn = '.doc'">
                /_layouts/images/ICDOC.GIF
     </xsl:when>

     <xsl:when test="$FExtn = '.pdf'">
                /_layouts/images/ICdoc.GIF
     </xsl:when>

The Search box picks up the icons from the SharePoint 12
hive\TEMPLATE\IMAGES . These are the standard images installed with
sharepoint.Unfortunately, this does not contain PDF images hence, Search
Box displays .pdf as .doc icons

Workaround
===========
In case you want to have a different icon for displaying the pdf files,
change the mapping accordingly. Attached file “GSA2SP.xsl” for reference.

Original issue reported on code.google.com by amit.per...@gmail.com on 19 May 2010 at 5:30

Attachments:

GoogleCodeExporter commented 9 years ago
Currently, the search results from the Google Search box display a word 
document icon
for pdf files which can be confusing. We should either :
- change it to a pdf specific icon, at the same time add all icons supported by 
the GSA
- create a generic doc icons for any file types that do not have an image
- display text instead of icon if a valid icon is not present.

Original comment by j.dars...@gmail.com on 19 May 2010 at 6:59

GoogleCodeExporter commented 9 years ago
+1 for option#2 as sharepoint also follows the similar rule.

Attached the image "pdf_in_shaepoint.png" to demonstrate how the pdf file look 
in 
sharepoint. It uses image "ICGen.gif" (attched for reference) for displaying 
the non-
supported icons (e.g. pdf)

Original comment by amit.per...@gmail.com on 20 May 2010 at 4:09

Attachments:

GoogleCodeExporter commented 9 years ago
Fix Details
============
http://code.google.com/p/google-enterprise-connector-sharepoint/source/detail?r=
734

Original comment by amit.per...@gmail.com on 17 Jun 2010 at 8:58