Changeset 25280

Show
Ignore:
Timestamp:
23.03.2012 16:36:07 (7 years ago)
Author:
sjm84
Message:

Added the site name as one of the global xslt parameters and also added the register link

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/util.xsl

    r25144 r25280  
    44  <xsl:param name="interface_name"/> 
    55  <xsl:param name="library_name"/> 
     6  <xsl:param name="site_name"/> 
    67  <xsl:include href="xml-to-string.xsl"/> 
    78  <!-- every pages ....................................................................... --> 
     9 
    810  <xsl:template name="siteName"> 
    911    <xsl:value-of select="/page/pageResponse/metadataList/metadata[@name='siteName']"/> 
    1012  </xsl:template> 
    11    
     13 
    1214  <xsl:template name="siteLink"> 
    1315    <a href="./{$library_name}"> 
     
    239241    <xsl:for-each select="//serviceList/service[@type='authen']"> 
    240242        <div class="paramLabel"> 
    241             <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="> 
     243            <a href="{$library_name}/admin/ListUsers"> 
    242244                <xsl:value-of select="displayItem[@name='name']"/> 
    243245            </a> 
     
    248250    </xsl:for-each> 
    249251  </xsl:template> 
    250    
     252 
     253  <xsl:template name="registerLink"> 
     254    <xsl:for-each select="//serviceList/service[@type='authen']"> 
     255        <div class="paramLabel"> 
     256            <a href="{$library_name}/admin/Register"> 
     257                <xsl:text>Register</xsl:text> 
     258            </a> 
     259        </div> 
     260        <div class="paramValue"> 
     261            <xsl:text>Register as a new user</xsl:text> 
     262        </div> 
     263    </xsl:for-each> 
     264  </xsl:template> 
     265 
    251266  <xsl:template name="libraryInterfaceLink"> 
    252267    <li>