Changeset 20291 for greenstone3

Show
Ignore:
Timestamp:
17.08.2009 10:10:35 (11 years ago)
Author:
kjdon
Message:

made the authentication link always active. If the service has not been activated in siteConfig, then nothing will show up. If it has, then I don't think the user should have to modify the interface files as well. Activating the service in siteConfig should be enough.

Location:
greenstone3/trunk/web/interfaces
Files:
3 modified

Legend:

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

    r20020 r20291  
    6060          </xsl:for-each> 
    6161           
    62           <!--uncomment the line below to display an authentication link inside a <li>--> 
    63           <!--<gslib:authenticationLink/>--> 
    64            
     62          <xsl:for-each select="serviceList/service[@type='authen']"> 
     63        <li><gslib:authenticationLink/></li> 
     64          </xsl:for-each> 
    6565          <!--uncomment the line below to display a library interface link inside a <li>--> 
    6666          <!--<gslib:libraryInterfaceLink/>--> 
  • greenstone3/trunk/web/interfaces/default/transform/util.xsl

    r20160 r20291  
    157157   
    158158  <xsl:template name="authenticationLink"> 
    159     <xsl:for-each select="serviceList/service[@type='authen']"> 
    160       <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> 
     159    <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']"/> 
    161160  </xsl:template>  
    162161   
  • greenstone3/trunk/web/interfaces/gs2/transform/home.xsl

    r20025 r20291  
    106106      </li> 
    107107      </xsl:for-each> 
    108       <!--uncomment to display an authentication link--> 
    109       <!--<xsl:for-each select="service[@type='authen']"> 
    110       <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>--> 
     108      <xsl:for-each select="service[@type='authen']"> 
     109    <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> 
     110      </xsl:for-each> 
    111111      <!--uncomment to display a library interface link--> 
    112112      <!--<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>-->