Changeset 3436


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

now library name is read from config variables

Location:
trunk/gsdl3/interfaces/default/transform
Files:
5 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>
  • trunk/gsdl3/interfaces/default/transform/applet.xsl

    r3394 r3436  
    1717<xsl:with-param name="collName" select="$collName"/>
    1818</xsl:call-template>
     19<p/>
    1920<xsl:copy-of select="applet"/>
     21<xsl:call-template name="greenBar"/>
    2022</center>
    2123<xsl:call-template name="greenstoneFooter"/>
  • trunk/gsdl3/interfaces/default/transform/home.xsl

    r3360 r3436  
    2525<xsl:template match="collectionList">
    2626<xsl:for-each select="collection">
    27 <p><a href="library?a=p&amp;sa=about&amp;c={@name}"><img width="150" border="1"><xsl:attribute name="src">sites/<xsl:value-of select="ancestor::page/config/site_name"/>/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="metadataList/metadata[@name='iconCollection']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="metadataList/metadata[@name='colName']"/></xsl:attribute></img></a></p>
     27<p><a><xsl:attribute name='href'><xsl:value-of select="ancestor::page/config/library_name"/>?a=p&amp;sa=about&amp;c=<xsl:value-of select='@name'/></xsl:attribute><img width="150" border="1"><xsl:attribute name="src">sites/<xsl:value-of select="ancestor::page/config/site_name"/>/collect/<xsl:value-of select="@name"/>/images/<xsl:value-of select="metadataList/metadata[@name='iconCollection']"/></xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="metadataList/metadata[@name='colName']"/></xsl:attribute></img></a></p>
    2828</xsl:for-each>
    2929<xsl:call-template name="greenBar"/>
  • trunk/gsdl3/interfaces/default/transform/style.xsl

    r3360 r3436  
    6262<xsl:param name="collName">coll-name</xsl:param>
    6363<xsl:param name="collIcon"><xsl:value-of select="$collName"/>.gif</xsl:param>
     64<xsl:variable name="library" select="ancestor::page/config/library_name"/>
    6465<table width="537">
    65 <tr><td align="left"><a href="library?a=p&amp;sa=about&amp;c={$collName}"><img width="150" border="1"><xsl:attribute name="src">sites/<xsl:value-of select="ancestor::page/config/site_name"/>/collect/<xsl:value-of select="$collName"/>/images/<xsl:value-of select="$collIcon"/></xsl:attribute><xsl:attribute name="alt"><xsl:call-template name="text"><xsl:with-param name="key">common/aboutpage</xsl:with-param></xsl:call-template></xsl:attribute></img></a></td><td align="right"><a href="library?a=p&amp;sa=home"><xsl:call-template name="text"><xsl:with-param name="key">common/home</xsl:with-param></xsl:call-template></a></td></tr></table>
     66<tr><td align="left"><a href="{$library}?a=p&amp;sa=about&amp;c={$collName}"><img width="150" border="1"><xsl:attribute name="src">sites/<xsl:value-of select="ancestor::page/config/site_name"/>/collect/<xsl:value-of select="$collName"/>/images/<xsl:value-of select="$collIcon"/></xsl:attribute><xsl:attribute name="alt"><xsl:call-template name="text"><xsl:with-param name="key">common/aboutpage</xsl:with-param></xsl:call-template></xsl:attribute></img></a></td><td align="right"><a href="{$library}?a=p&amp;sa=home"><xsl:call-template name="text"><xsl:with-param name="key">common/home</xsl:with-param></xsl:call-template></a></td></tr></table>
    6667
    6768<xsl:call-template name="greenBar"/>
     
    101102<!-- try the default language -->
    102103<xsl:variable name="path2">ancestor::page/translate/default/text/<xsl:value-of select="$key"/></xsl:variable>
    103 <xsl:value-of select="java:org.apache.xalan.lib.Extensions.evaluate($path2)"/>
     104<xsl:variable name="string2"><xsl:value-of select="java:org.apache.xalan.lib.Extensions.evaluate($path2)"/></xsl:variable>
     105<xsl:choose><xsl:when test="boolean(string($string1))"><xsl:value-of select="$string1"/></xsl:when>
     106<xsl:otherwise>
     107
     108<!-- no match found, output the name of the text string -->
     109_<xsl:value-of select="$key"/>_</xsl:otherwise>
     110</xsl:choose>
    104111</xsl:otherwise>
    105112</xsl:choose>
  • trunk/gsdl3/interfaces/default/transform/textquery.xsl

    r3360 r3436  
    3434<xsl:param name="collName">coll-name</xsl:param>
    3535<xsl:variable name="queryString"><xsl:value-of select="paramList/param[@name='q']/@value"/></xsl:variable>
     36<xsl:variable name='library' select='ancestor::page/config/library_name'/>
    3637
    37 <form name="QueryForm" method="get" action="/gsdl3/library">
     38<form name="QueryForm" method="get" action="/gsdl3/{$library}">
    3839<xsl:apply-templates select="description/paramList"/>
    3940<input type="hidden" name="a" value="q"/>
     
    8384<xsl:template match="response">
    8485<xsl:param name="collName">coll-name</xsl:param>
     86<xsl:variable name="library" select="ancestor::page/config/library_name"/>
    8587<table width="537">
    8688<xsl:for-each select="content/resourceList/resource">
    87 <tr><td><a><xsl:attribute name="href">library?a=r&amp;c=<xsl:value-of select="$collName"/>&amp;r=<xsl:value-of select="@name"/></xsl:attribute>link</a></td><td><xsl:value-of select="metadataList/metadata[@name='Title']"/></td></tr>
     89<tr><td><a href="{$library}?a=r&amp;c={$collName}"&amp;r={@name}">link</a></td><td><xsl:value-of select="metadataList/metadata[@name='Title']"/></td></tr>
    8890</xsl:for-each>
    8991</table>
Note: See TracChangeset for help on using the changeset viewer.