Again, I have no test environment to confirm this, but you should be able to
more simply suppress specific <li> elements by creating a more specific
template which does nothing (i.e. is empty).
Instead of helix84’s template, add this template where it is appropriate (for
customisations to go):
<xsl:template match="dri:reference[
@url='/metadata/handle/10854/1945/mets.xml' or
@url='/metadata/handle/10854/1946/mets.xml' or
@url='/metadata/handle/10854/2040/mets.xml' or
@url='/metadata/handle/10854/2041/mets.xml'
]" mode="summaryList" /> <!-- this template has no content -->
Note that this would have the side-effect of removing the HTML comments
(invisible) from the output. I doubt it, but that could have other consequences
(?).
If you wanted a more robust matching pattern, like the "contains 'Formulari' in
the title" you coded, you'd need to specify an XPath for that expression from
the context of <dri:reference>. I can't even provide you with a guess for that,
as I have no source XML document example. It will certainly be a long
expression and may not even be possible.
Cheers
Hugh Barnes
Digital Access Coordinator
Library, Teaching and Learning
Lincoln University
Christchurch
New Zealand
p +64 3 321 8924 | f +64 3 325 2944
From: helix84 [mailto:heli...@centrum.sk]
Sent: Wednesday, 13 March 2013 1:28 a.m.
To: M. Àngels Pulido
Cc: dspace-tech
Subject: Re: [Dspace-tech] Hide 4 collections in collection-list.xsl
Hello,
you can't do it by overriding that template, that's out the scope of what it
matches. You can do it this way:
http://dspace.2283337.n4.nabble.com/Hide-Sub-Community-from-Anonymous-td4662481.html
And change the following condition
<xsl:if test="$authenticated or (@url !=
'/metadata/handle/123456789/123/mets.xml')">
to this:
<xsl:if test="(@url != '/metadata/handle/10854/1945/mets.xml') or (@url !=
'/metadata/handle/10854/1946/mets.xml') or (@url !=
'/metadata/handle/10854/2040/mets.xml') or (@url !=
'/metadata/handle/10854/2041/mets.xml')">
Regards,
~~helix84
Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
________________________________
P Please consider the environment before you print this email.
"The contents of this e-mail (including any attachments) may be confidential
and/or subject to copyright. Any unauthorised use,
distribution, or copying of the contents is expressly prohibited. If you have
received this e-mail in error, please advise the sender
by return e-mail or telephone and then delete this e-mail together with all
attachments from your system."
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
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