Thanks a lot for your attention, helix84.
But both the front and community pages exhibit what's inside the <otherwise>
condition.

On the front page we have no definition of URI:
<metadata element="request" qualifier="URI"/>

And on the communities page we have
<metadata element="request" qualifier="URI">community-list</metadata>

I'm inserting this on dri2xhtml.xsl, inside
<xsl:template name="communitySummaryList-DIM">

Is that correct?

Thanks again.
Andre

2011/3/28 helix84 <[email protected]>

> On Mon, Mar 28, 2011 at 21:04, André <[email protected]> wrote:
> > It works, but now we're trying to make the "expand all" button appear
> only
> > on the community list, not on the front page.
>
> If you look at the DRI document that is processed by XSL, you will
> find the URI of the current page in the pageMeta section:
> <metadata element="request" qualifier="URI">
> community-list
> </metadata>
>
> You can test for it in your XSL this way (I haven't tested it but it
> should work):
> <xsl:choose>
>  <xsl:when
> test="/dri:document/dri:meta/dri:pageMeta/dri:metadata[@element='request'][@qualifier='URI']
> = 'community-list'">
>    <!-- insert here what is displayed only on the community-list page -->
>  </xsl:when>
>  <xsl:otherwise>
>    <!-- insert here what is displayed everywhere else except the
> community-list page-->
>  </xsl:otherwise>
> </xsl:choose>
>
> If you want to look at DRI of any page, just add /DRI just after the
> domain name, e.g. if you want to view DRi of page
> http://myuni.edu/community-list
> look at
> http://myuni.edu/DRI/community-list
>
> Hope that helps.
>
> Regards,
> ~~helix84
>
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to