Thanks Helix,
Though I see some error like 

org.xml.sax.SAXParseException: Element type "xsl:template" must be followed by 
either attribute specifications, ">" or "/>".
context:/jndi:/localhost/xmlui/themes/CGSPACE/lib/xsl/core/page-structure.xsl - 
436:48

I will read more on xslt

sisay
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: Wednesday, February 12, 2014 3:22 PM
To: Webshet, Sisay (ILRI)
Cc: [email protected]
Subject: Re: [Dspace-tech] Remove search filter from Discovery

Since you already know how to find its element name and attribute value, you 
already know how to disable any element:

https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-HowdoIremovethesearchboxfromthefrontpageinXMLUI?

Here's what you asked for:

<xsl:template name="disable_discovery-filters1"
match="dri:div[@id='aspect.discovery.SimpleSearch.div.search-filters']">
</xsl:template>
<xsl:template name="disable_discovery-filters2"
match="dri:div[@id='aspect.discovery.SimpleSearch.div.discovery-filters-wrapper']">
</xsl:template>
<xsl:template name="disable_discovery-filters3"
match="dri:div[@id='aspect.discovery.SimpleSearch.div.iscovery-search-box']">
</xsl:template>

In addition, you will want to remove the link:

<xsl:template name="disable_discovery-filters-link"
match="dri:xref[@target='display-filters']">
</xsl:template>


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette 
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to