Forum Moderators: open

Message Too Old, No Replies

Convert URL to UNC in search results

need UNC in Google search results

         

John488

3:30 pm on Jun 10, 2005 (gmt 0)

10+ Year Member



We are using the Google appliance as the search tool for our intranet. Over 99% of our content is stored on NON-web-enabled storage devices. We are using IIS to create a virtual web site and associated index of folders pointing to the actual content. Google is set to search this virtual web site. The search results are displayed as the web site URL:
example.web.com:88/main/Level%201/Level%202/content.doc
My requirement is to display the search results as the UNC of the actual content:
fileserver\main\Level 1\Level 2\content.doc
Within the stylesheet delievered by Google I have attempted to use the substring replace template which will work to replace the webserver name with the fileserver name. I cannot get it to cascade correctly to convert the %20 to spaces. Is there a method to perform URL-to-UNC conversion? I believe this must have been encountered previously as I am sure we are not the only company with massive amounts of content stored on NON-web-enabled devices. I know some HTML and am using web tutorials to learn how to modify the XSLT.
Thank you.

macrost

2:38 am on Jun 14, 2005 (gmt 0)

10+ Year Member



John488,
Have you had a look at the translate function? Here's a quick example, not sure if it would apply in your situation though.

<xsl:variable name="yourstring" select="somenode"/>
<xsl:value-of select="translate($yourstring,',',', ')"/>

John488

2:34 pm on Jun 28, 2005 (gmt 0)

10+ Year Member



I ended up using the replace-string function. I had to learn how to cascade the function to replace the web site URL with the document location UNC followed by replacing the '%20' with ' '.