Changeset 32415 for main

Show
Ignore:
Timestamp:
03.09.2018 12:37:30 (10 months ago)
Author:
kjdon
Message:

changed breadcrumb logic - now add in admin page link only for those operations that need it. also allow having recaptcha in edituser/accountsettings forms

Files:
1 modified

Legend:

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

    r32389 r32415  
    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' 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> 
     42        <gslib:siteLink/><xsl:if test="/page/pageResponse/authenticationNode/service/@operation = 'ListUsers' or /page/pageResponse/authenticationNode/service/@operation = 'EditUser' or /page/pageResponse/authenticationNode/service/@operation = 'PerformEdit' or /page/pageResponse/authenticationNode/service/@operation = 'AddUser' or /page/pageResponse/authenticationNode/service/@operation = 'PerformAdd' or /page/pageResponse/authenticationNode/service/@operation = 'PerformDeleteUser'"><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     
     
    151151                <!-- ********************************* --> 
    152152                <xsl:when test="/page/pageResponse/authenticationNode/service/@operation = 'EditUser' or /page/pageResponse/authenticationNode/service/@operation = 'AccountSettings'"> 
    153                     <form method="POST"> 
     153                    <form id="editForm" method="POST"> 
    154154                        <xsl:attribute name="action"> 
    155155                            <xsl:choose> 
     
    301301                                </tr> 
    302302                            </xsl:if> 
     303                            <xsl:call-template name="addRecaptcha"> 
     304                              <xsl:with-param name="formName">editForm</xsl:with-param> 
     305                            </xsl:call-template> 
    303306                            <tr> 
    304307                                <td>