- Timestamp:
- 2009-01-06T14:26:10+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/default/transform/about.xsl
r17017 r18316 12 12 <xsl:output method="html"/> 13 13 14 14 <!-- the main page layout template is here --> 15 15 <xsl:template match="page"> 16 17 <head>18 19 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->20 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>21 22 23 24 </head>25 26 27 28 29 30 31 16 <html> 17 <head> 18 <title> 19 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 20 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 21 </title> 22 <xsl:call-template name="globalStyle"/> 23 <xsl:call-template name="pageStyle"/> 24 </head> 25 <body> 26 <div id="globalwrapper"> 27 <xsl:call-template name="response" /> 28 <xsl:call-template name="greenstoneFooter"/> 29 </div> 30 </body> 31 </html> 32 32 </xsl:template> 33 33 … … 40 40 41 41 <xsl:template match="pageResponse"> 42 42 <xsl:variable name="collName" select="/page/pageRequest/paramList/param[@name='c']/@value"/> 43 43 <xsl:apply-templates select="collection|serviceCluster"><xsl:with-param name="collName" select="$collName"/></xsl:apply-templates> 44 44 </xsl:template> 45 45 46 46 <xsl:template match="collection|serviceCluster"> … … 53 53 </xsl:call-template> 54 54 <div id="content"> 55 56 57 58 55 <xsl:value-of select="displayItem[@name='description']" disable-output-escaping="yes"/> 56 <xsl:apply-templates select="serviceList"> 57 <xsl:with-param name="collName" select="$collName"/> 58 </xsl:apply-templates> 59 59 </div> 60 60 </xsl:template> … … 74 74 75 75 <xsl:if test="service"> 76 <ul id="servicelist">77 78 76 <ul id="servicelist"> 77 <xsl:for-each select="service"> 78 <xsl:variable name="action"><xsl:choose> 79 79 <xsl:when test="@type='query'">q</xsl:when> 80 80 <xsl:when test="@type='browse'">b</xsl:when> … … 83 83 <xsl:otherwise>DO_NOT_DISPLAY</xsl:otherwise> 84 84 </xsl:choose></xsl:variable> 85 86 85 <xsl:if test="$action !='DO_NOT_DISPLAY'"> 86 <li><a href="{$library_name}?a={$action}&rt=d&s={@name}&c={$collName}"><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li> 87 87 </xsl:if> 88 88 </xsl:for-each> 89 89 </ul> 90 90 </xsl:if> 91 91 </xsl:template> 92 92
Note:
See TracChangeset
for help on using the changeset viewer.