6.0.24 and linkFormat

Post Reply
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

6.0.24 and linkFormat

Post by dietric »

Did the link URL's in the XML output of the searchAppliance results change? It seems that
whereas before the link would have been
/texis/search?query=snowmobile&pr=offroad&prox=page&rorder=500&rprox=500&rdfreq=500&rwfreq=500&rlead=500&sufs=0&order=r&mode=admin&opts=look&cq=&cmd=mlt&id=43ead01d17&dropXSL=html
they now point to /texis/search/mlt.html?query=snowmobile&pr=offroad&prox=page&rorder=500&rprox=500&rdfreq=500&rwfreq=500&rlead=500&sufs=0&order=r&mode=admin&opts=look&cq=&cmd=mlt

If so, how can I supress this? This is going to break ALL my custom XSL templates if I make it live...
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

6.0.24 and linkFormat

Post by jason112 »

Yes, the link format has recently changed, the old style
had problems with further links not outputting correct
XML.

The old-style links are not available. You can use XSL
functions to create values similar to the old style.

<xsl:template match="Result">
<xsl:variable name="UrlSimilar">texis/search?<xsl:value-of select="substring-after(UrlSimilar, '?')"/></xsl:variable>
old-style URL similar is <xsl:value-of select="$UrlSimilar"/>
</xsl:template>
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

6.0.24 and linkFormat

Post by dietric »

I find it somewhat disturbing that the link format should have changed without notice. I just happened to realize this because we recently bought a new search appliance and the links were broken when I tested them...
Had i just updated the production appliance, I would have broken all those links on 150+ sites.

The least thing one could expect would be that some warning is given on the update screen that the scripts might not be compatible with existing XSL templates...
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

6.0.24 and linkFormat

Post by John »

Can you clarify what broke about the links? A change in the format should not have caused any issue if used as provided.
John Turnbull
Thunderstone Software
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

6.0.24 and linkFormat

Post by mark »

I don't think anyone figured that custom XSL would be sensitive to the url content. They're intended to be displayed as-is. What are you doing with the urls that's sensitive to their format?
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

6.0.24 and linkFormat

Post by dietric »

We are retrieving the transformed results from the appliance using HTTP and displaying them in the context of our own application. Therefore, links can not go directly to the appliance. Our XSL template replaces the links with the correct path. Of course, if the format changes, that will not work anymore...
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

6.0.24 and linkFormat

Post by mark »

Can you write your mods so they are not dependant on the format of anything after "/texis/search"? The portions after that are subject to change as new features are added.
dietric
Posts: 100
Joined: Fri May 20, 2005 10:57 am

6.0.24 and linkFormat

Post by dietric »

I probably can if I get some more information. Is it possible for you to document all the changes that were made to the XML formats in that release so we can proactively change the XSL?
User avatar
jason112
Site Admin
Posts: 347
Joined: Tue Oct 26, 2004 5:35 pm

6.0.24 and linkFormat

Post by jason112 »

the only change is the addition of the page and the extension added on past search. The "page" that was added is the same as the value of the "cmd" parameter (or 'main' if there was none), and the extension is appropriate for whether HTML or XML was requested.

So, a link like
/texis/search?query=snowmobile&pr=....&cmd=mlt
becomes:
/texis/search/mlt.html?query=snowmobile&pr=....&cmd=mlt
Post Reply