Excellent thanks!

I’ll try that out.

Cheers

Kev

From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 24 May 2013 13:36
To: Evans, Kev
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] What are the options for restricting the display of 
the login box for embargoed files

On Fri, May 24, 2013 at 2:00 PM, Evans, Kev 
<kevin.ev...@exeter.ac.uk<mailto:kevin.ev...@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
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to