Changeset 18332

Show
Ignore:
Timestamp:
08.01.2009 12:07:51 (10 years ago)
Author:
ak19
Message:

Removed the pageHead template declaration again, since this has npw been moved into the authen.xsl file, in the same manner that Max had moved other structural templates into the files they were used so that the structure is clear when reading those files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/web/interfaces/default/transform/style.xsl

    r18325 r18332  
    1313  <xsl:template name="globalStyle"> 
    1414    <link rel="stylesheet" href="interfaces/default/style/core.css" type="text/css"/> 
    15   </xsl:template> 
    16    
    17   <!-- the main page layout template is here --> 
    18   <xsl:template match="page"> 
    19     <xsl:variable name="bookswitch"><xsl:value-of select="/page/pageRequest/paramList/param[@name='book']/@value"/></xsl:variable> 
    20     <xsl:variable name="a"><xsl:value-of select="/page/pageRequest/paramList/param[@name='a']/@value"/></xsl:variable> 
    21  
    22     <xsl:choose>  
    23       <xsl:when test="$bookswitch = 'flashxml' and $a = 'd'"> 
    24          <html> 
    25           <xsl:call-template name="response" /> 
    26         </html> 
    27       </xsl:when> 
    28  
    29       <xsl:otherwise>     
    30         <html> 
    31          <xsl:call-template name="pageHead"/> 
    32           <body> 
    33            <div id="globalwrapper"> 
    34           <xsl:call-template name="response" /> 
    35           <xsl:call-template name="greenstoneFooter"/> 
    36        </div> 
    37           </body> 
    38         </html> 
    39       </xsl:otherwise> 
    40     </xsl:choose> 
    4115  </xsl:template> 
    4216 
     
    7246      </div> 
    7347    </xsl:if> 
    74   </xsl:template> 
    75  
    76   <!-- put a space in the title in case the actual value is missing - mozilla will not display a page with no title--> 
    77   <xsl:template name="pageHead"> 
    78     <head> 
    79       <title> 
    80     <xsl:call-template name="pageTitle"/><xsl:text> </xsl:text> 
    81       </title> 
    82       <xsl:call-template name="globalStyle"/> 
    83       <xsl:call-template name="pageStyle"/> 
    84     </head> 
    8548  </xsl:template> 
    8649