Changeset 18304

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

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

Files:
1 modified

Legend:

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

    r17017 r18304  
    4040 
    4141  <xsl:template match="pageResponse"> 
    42     <xsl:call-template name="greenstonePageBanner"/>  
     42    <xsl:call-template name="pageBanner"/>  
    4343    <xsl:apply-templates select="serviceList/service[@name='TextQuery']"/> 
    4444    <xsl:apply-templates select="collectionList"/>    
    4545    <xsl:apply-templates select="serviceClusterList"/> 
    4646    <xsl:apply-templates select="serviceList"/> 
     47  </xsl:template> 
     48 
     49  <xsl:template name="pageBanner"> 
     50    <div id="banner"> 
     51        <p> 
     52            <img src="interfaces/default/images/gsdlhead.gif"><xsl:attribute name="alt"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'gsdl')"/></xsl:attribute> 
     53            </img> 
     54    </p> 
     55    </div> 
     56    <div id="content"> 
     57    <xsl:call-template name="dividerBar"> 
     58            <xsl:with-param name="text" select="util:getInterfaceText($interface_name, /page/@lang, 'home.select_a_collection')"/>  
     59        </xsl:call-template>     
     60      </div> 
    4761  </xsl:template> 
    4862 
     
    91105    <input type="hidden" name="s1.collection" value="all"/> 
    92106    <input type="text" name="s1.query" size="20"/> 
    93     <input type="submit" value="Quick Search"/> 
     107    <input type="submit"><xsl:attribute name="value"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.quick_search')"/></xsl:attribute></input> 
    94108      </form> 
    95109    </div> 
     
    106120      <li><a href="{$library_name}?a=g&amp;rt=r&amp;sa=authen&amp;s={@name}&amp;s1.aup=Login&amp;s1.un=&amp;s1.asn="><xsl:value-of select="displayItem[@name='name']"/></a><xsl:value-of select="displayItem[@name='description']"/></li>      </xsl:for-each>--> 
    107121      <!--uncomment to display a library interface link--> 
    108       <!--<li><a href="{$library_name}?a=p&amp;sa=gli4gs3">The Librarian Interface</a></li>--> 
     122      <!--<li><a href="{$library_name}?a=p&amp;sa=gli4gs3"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'home.librarian_interface')"/></a></li>--> 
    109123    </ul> 
    110124    </xsl:template>