Changeset 18305

Show
Ignore:
Timestamp:
05.01.2009 21:12:11 (10 years ago)
Author:
kjdon
Message:

moved greenstonePageBanner template from style.xsl to home.xsl as its only used there. Also moved hard coded text into property file

Files:
1 modified

Legend:

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

    r17018 r18305  
    5151 </xsl:template> 
    5252 
    53  
    54  
    55  
    56   <xsl:template name="greenstonePageBanner"> 
    57     <div id="banner"> 
    58         <p> 
    59             <img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute> 
    60             </img> 
    61     </p> 
    62     </div> 
    63     <div id="content"> 
    64     <xsl:call-template name="dividerBar"> 
    65             <xsl:with-param name="text" select="'select a collection'"/>  
    66         </xsl:call-template>     
    67       </div> 
    68   </xsl:template> 
    69  
    7053  <xsl:template name="greenstoneFooter"> 
    7154      <div id="footer"> 
     
    7760   
    7861  <xsl:template match="error"> 
    79     Error: <xsl:value-of select="."/> 
     62    <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'error')"/> <xsl:value-of select="."/> 
    8063  </xsl:template> 
    8164 
     
    203186      <xsl:when test="documentNode"> 
    204187        <xsl:call-template name="openbookimg"> 
    205           <xsl:with-param name="title">Close this book</xsl:with-param> 
     188          <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_book')"/></xsl:with-param> 
    206189        </xsl:call-template> 
    207190      </xsl:when> 
    208191      <xsl:otherwise> 
    209192        <xsl:call-template name="closedbookimg"> 
    210           <xsl:with-param name="title">Open this document and view contents</xsl:with-param> 
     193          <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'open_book')"/></xsl:with-param> 
    211194        </xsl:call-template> 
    212195      </xsl:otherwise> 
     
    219202      <xsl:when test="documentNode"> 
    220203        <xsl:call-template name="openfolderimg"> 
    221           <xsl:with-param name="title">Close this folder</xsl:with-param> 
     204          <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'close_folder')"/></xsl:with-param> 
    222205        </xsl:call-template> 
    223206      </xsl:when> 
    224207      <xsl:otherwise> 
    225208        <xsl:call-template name="closedfolderimg"> 
    226           <xsl:with-param name="title">Open this folder and view contents</xsl:with-param> 
     209          <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'open_folder')"/></xsl:with-param> 
    227210        </xsl:call-template> 
    228211      </xsl:otherwise> 
     
    233216      <xsl:otherwise> 
    234217    <xsl:call-template name="textpageimg"> 
    235       <xsl:with-param name="title">View the document</xsl:with-param> 
     218      <xsl:with-param name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'view_document')"/></xsl:with-param> 
    236219    </xsl:call-template> 
    237220      </xsl:otherwise>