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

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to