Changeset 32389


Ignore:
Timestamp:
08/30/18 14:22:51 (3 years ago)
Author:
kjdon
Message:

remove Admin breadcrumb from PerformRegister page. added a code comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/authen.xsl

    r32388 r32389  
    4040    <!-- set page breadcrumbs -->
    4141    <xsl:template name="breadcrumbs">
    42         <gslib:siteLink/><xsl:if test="/page/pageResponse/authenticationNode/service/@operation != 'AccountSettings' and /page/pageResponse/authenticationNode/service/@operation != 'Register'"><gslib:rightArrow/><a href="{$library_name}/admin/ListUsers"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.authentication')"/></a></xsl:if>
     42        <gslib:siteLink/><xsl:if test="/page/pageResponse/authenticationNode/service/@operation != 'AccountSettings' and /page/pageResponse/authenticationNode/service/@operation != 'Register' and /page/pageResponse/authenticationNode/service/@operation != 'PerformRegister'"><gslib:rightArrow/><a href="{$library_name}/admin/ListUsers"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.authentication')"/></a></xsl:if>
    4343    </xsl:template>
    4444   
     
    390390                <!-- ********************** -->
    391391                <xsl:when test="/page/pageResponse/authenticationNode/service/@operation = 'PerformRegister'">
    392                     <xsl:choose>
    393                         <xsl:when test="/page/pageResponse/error">
    394                             <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.error_failed_to_add')"/>
    395                         </xsl:when>
    396                         <xsl:otherwise>
    397                             <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_added_success')"/>
    398                             <meta http-equiv="refresh" content="2; url={/page/pageRequest/@baseURL}{$library_name}"/>
    399                         </xsl:otherwise>
    400                     </xsl:choose>
     392                  <xsl:choose>
     393                    <!-- don't think we ever get here, as we revert back to Register if there was an error with PerformRegister -->
     394                    <xsl:when test="/page/pageResponse/error">
     395                      <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.error_failed_to_add')"/>
     396                    </xsl:when>
     397                   
     398                    <xsl:otherwise>
     399                      <xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'authen.user_added_success')"/>
     400                      <meta http-equiv="refresh" content="2; url={/page/pageRequest/@baseURL}{$library_name}"/>
     401                    </xsl:otherwise>
     402                  </xsl:choose>
    401403                </xsl:when>
    402 
     404               
    403405                <xsl:when test="/page/pageResponse/authenticationNode/service/@operation = 'Info'">
    404406                  <!-- do nothing -->
Note: See TracChangeset for help on using the changeset viewer.