Ignore:
Timestamp:
2002-10-04T11:21:48+12:00 (22 years ago)
Author:
kjdon
Message:

now library name is read from config variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/interfaces/default/transform/about.xsl

    r3390 r3436  
    4949<xsl:template match="serviceList">
    5050<xsl:param name="collName">coll-name</xsl:param>
     51<xsl:variable name="library" select="ancestor::page/config/library_name"/>
    5152<h2>Services available</h2>
    5253<table>
     
    5859<xsl:variable name="lower-type" select="java:org.greenstone.gsdl3.util.XSLTUtil.toLower($orig-type)"/>
    5960<td><xsl:call-template name="text"><xsl:with-param name="key">common/search</xsl:with-param></xsl:call-template></td>
    60 <td><a><xsl:attribute name="href">library?a=q&amp;sa=<xsl:value-of select="$lower-type"/>&amp;c=<xsl:value-of select="$collName"/></xsl:attribute><xsl:value-of select="substring-before($serviceName, 'Query')"/></a></td>
     61<td><a href="{$library}?a=q&amp;sa={$lower-type}&amp;c={$collName}"><xsl:value-of select="$orig-type"/></a></td>
    6162</xsl:if>
    6263<xsl:if test="contains($serviceName, 'Browse')">
     
    6465<xsl:variable name="lower-type" select="java:org.greenstone.gsdl3.util.XSLTUtil.toLower($orig-type)"/>
    6566<td><xsl:call-template name="text"><xsl:with-param name="key">common/browse</xsl:with-param></xsl:call-template></td>
    66 <td><a><xsl:attribute name="href">library?a=b&amp;sa=<xsl:value-of select="$lower-type"/>&amp;c=<xsl:value-of select="$collName"/></xsl:attribute><xsl:value-of select="substring-before($serviceName, 'Browse')"/></a></td>
     67<td><a href="{$library}?a=b&amp;sa={$lower-type}&amp;c={$collName}"><xsl:value-of select="$orig-type"/></a></td>
    6768</xsl:if>
    6869<xsl:if test="contains($serviceName, 'Applet')">
    6970<xsl:variable name="orig-type"><xsl:value-of select="substring-before($serviceName, 'Applet')"/></xsl:variable>
    7071<td><xsl:call-template name="text"><xsl:with-param name="key">common/applet</xsl:with-param></xsl:call-template></td>
    71 <td><a><xsl:attribute name="href">library?a=a&amp;sa=d&amp;sn=<xsl:value-of select="$orig-type"/>&amp;c=<xsl:value-of select="$collName"/></xsl:attribute><xsl:value-of select="$orig-type"/></a></td>
     72<td><a href="{$library}?a=a&amp;sa=d&amp;sn={$orig-type}&amp;c={$collName}"><xsl:value-of select="$orig-type"/></a></td>
    7273</xsl:if>
    7374</tr>
Note: See TracChangeset for help on using the changeset viewer.