- Timestamp:
- 2009-01-06T14:26:10+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/web/interfaces/default/transform/classifier.xsl
r17017 r18316 16 16 <!-- the main page layout template is here --> 17 17 <xsl:template match="page"> 18 19 <head>20 21 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title-->22 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text>23 24 25 26 </head>27 28 29 30 31 32 33 18 <html> 19 <head> 20 <title> 21 <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 22 <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 23 </title> 24 <xsl:call-template name="globalStyle"/> 25 <xsl:call-template name="pageStyle"/> 26 </head> 27 <body> 28 <div id="globalwrapper"> 29 <xsl:call-template name="response" /> 30 <xsl:call-template name="greenstoneFooter"/> 31 </div> 32 </body> 33 </html> 34 34 </xsl:template> 35 35 … … 42 42 <!-- page specific style goes here --> 43 43 <xsl:template name="pageStyle"> 44 <!--<xsl:if test="$berryBaskets = 'true'">-->45 44 <xsl:if test="$berrybasketswitch = 'on'"> 46 45 <xsl:call-template name="berryStyleSheet"/> … … 60 59 <xsl:with-param name="collName" select="$collName"/> 61 60 </xsl:call-template> 62 61 63 62 <div id="content"> 64 63 <xsl:apply-templates select="service/classifierList"> … … 67 66 </xsl:apply-templates> 68 67 69 <!--<xsl:if test="$berryBaskets = 'true'">--> 70 <xsl:if test="$berrybasketswitch = 'on'"> 71 <xsl:call-template name="berrybasket" /> 72 </xsl:if> 73 <xsl:apply-templates select="classifier"> 74 <xsl:with-param name="collName" select="$collName"/> 75 <xsl:with-param name="serviceName" select="$serviceName"/> 76 </xsl:apply-templates> 68 <xsl:if test="$berrybasketswitch = 'on'"> 69 <xsl:call-template name="berrybasket" /> 70 </xsl:if> 71 <xsl:apply-templates select="classifier"> 72 <xsl:with-param name="collName" select="$collName"/> 73 <xsl:with-param name="serviceName" select="$serviceName"/> 74 </xsl:apply-templates> 77 75 </div> 78 76 </xsl:template> … … 82 80 <xsl:param name="serviceName"/> 83 81 <xsl:variable name="selected" select="/page/pageResponse/classifier/@name"/> 84 <ul id="classifierlist">85 86 87 88 89 90 91 92 93 82 <ul id="classifierlist"> 83 <xsl:for-each select="classifier"> 84 <xsl:choose> 85 <xsl:when test="@name=$selected"> 86 <li id="activeclassifier"><xsl:value-of select="displayItem[@name='name']"/></li> 87 </xsl:when> 88 <xsl:otherwise> 89 <li><a href="{$library_name}?a=b&rt=r&s={$serviceName}&c={$collName}&cl={@name}"><xsl:value-of select="displayItem[@name='name']"/></a></li></xsl:otherwise></xsl:choose> 90 91 </xsl:for-each> 94 92 </ul> 95 93 </xsl:template> 96 94 97 95 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.