To any XSLT experts out there. Or at least anyone who is better than me.
We are preparing our test instance of 1.5.2 to go live, and one of the
requirements is that the list of communities is removed from the front
page. In the main theme I started off with
<xsl:template match="/dri:document/dri:body/dri:d...@id =
'aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']" />
but then found out that the community-list page displays the list of
communities/collections in the same way.
So I need to remove from the front page, but keep on the community-list
page.
The next bit I tried was:
<xsl:template name="removeCommunity">
<xsl:choose>
<xsl:when
test="string(/dri:document/dri:meta/dri:pageMeta/dri:metada...@qualifier
='URI']) != 'community-list'">
<xsl:apply-templates select="/dri:document/dri:body/dri:d...@id =
'aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']"
mode="hide" />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="/dri:document/dri:body/dri:d...@id =
'aspect.artifactbrowser.CommunityBrowser.div.comunity-browser']" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match="/dri:document/dri:body/dri:d...@id='aspect.artifactbrowser.Commun
ityBrowser.div.comunity-browser']" mode="hide" priority="1" />
Which actually shows both of them (though I thought it would do the
opposite). It seems (to me) that the only way to hide it on the front
page is to make a template to match comunity-browser, but that would
still hide it everywhere else.
If anyone knows how I can solve this problem in XSLT could you please
let me know? Otherwise if there's a way to do this in the source?
Thanks
Jennifer Whalan
Jennifer Whalan
Systems Support Officer
Innovation & Access, Northern Territory Library
Department of Natural Resources, Environment, The Arts and Sport
Northern Territory Government
Phone: (08) 8922 0757
Fax: (08) 8922 0722
Email: [email protected] <mailto:[email protected]>
Web: www.ntl.nt.gov.au <http://www.ntl.nt.gov.au/>
The information contained in this message and any attachments may be
confidential information and may be subject to legal privilege, public
interest or legal profession privilege. If you are not the intended
recipient, any use, disclosure or copying of this message or any
attachments is unauthorised. If you have received this document in
error, please advise the sender. No representation or warranty is given
that attached files are free from viruses or other defects. The
recipient assumes all responsibility for any loss or damage resulting
directly or indirectly from the use of any attached files.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech