Novell Home

Changing the eGuide Map Link

Novell Cool Solutions: Tip
By Mike Sherer

Digg This - Slashdot This

Posted: 1 Dec 2004
 

A reader recently asked:

"How do I change the default map hyperlink address set in eGuide. It is currently set to Yahoo US as default. Here in the UK we need to set it to a local Map directory. Where would I change this map setting, and what syntax would I use?"

And here's a helpful tip from reader Robert Shera:

To change the map setting, the file that needs to be edited is:

\\Server_name\sys\tomcat\4\webapps\eGuide\WEB-INF\templates\xsl\default\browser\UIHandlers.xsl

You need to find the following lines in the file:

    <a title="{$ShowMapLabel}" target="_blank"
href="http://maps.yahoo.com/py/maps.py?BFCat=&Pyt=Tmap&newFL=Use+Add
ress+Below&addr={value}&csz={../attribute[name='POSTALCODE']/value}&
amp;Get%A0Map=Get+Map">
    <xsl:value-of select="$MapLabel"/>

Then you can change them to use a different map source. Here in Australia I'm using www.whereis.com. I checked the URL I got when I did a search for an address. Then I modified the lines to accommodate it, pulling the appropriate values from the eDirectory attributes. For example:

    <a title="{$ShowMapLabel}" target="_blank"
href="http://www.whereis.com/whereis/mapping/geocodeAddress.do?streetName={.
./attribute[name='STREET']/value}&poiType=&suburb={../attribute[name
='CITY']/value}&state={../attribute[name='ST']/value}">
    <xsl:value-of select="$MapLabel"/>


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell