On Fri, May 24, 2013 at 2:00 PM, Evans, Kev <Kevin.Evans@exeter.ac.uk> wrote:
> We use: dc.rights.embargodate
>                   dc.right.embargoreason

OK, turned out I can't easily find out the metadata value from the login page. So here's a simplified version that hides the form if any reason is shown (reason is not shown if you click the login link directly):

    <xsl:template name="hide_ldap-login_when-access-restricted" match="dri:div[@id='aspect.eperson.LDAPLogin.div.login']">
        <xsl:variable name='reason' select="../dri:div[@id='aspect.eperson.LDAPLogin.div.login-reason']" />

        <xsl:if test="not($reason)">
            <xsl:apply-templates />
        </xsl:if>
    </xsl:template>

Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette