Hi Helix,

Just to say, with a few tweaks, this worked perfectly!

Cheers

Kev

Kevin Evans
Systems Developer,
Research & Collaborative Systems,
Enterprise Applications,
Room 919, 9th Floor, Laver Building,
University of Exeter,
Exeter,
Devon,
EX4 4QE
01392 725573

Embrace. Extend. Extinguish.


-----Original Message-----
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 13 January 2014 16:14
To: Evans, Kevin
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] moving position of search box on dspace homepage - 
Version 1.8.2 (XMLUI)

On Mon, Jan 13, 2014 at 4:49 PM, Evans, Kevin <kevin.ev...@exeter.ac.uk> wrote:
> We have had a request to move the position of the Simple Search box 
> from the below the ‘Communities’ list to above it. This has been done 
> on our other Dspace Repositories (which were earlier versions) but 
> despite searching the template.xsl and structural.xsl, I can’t see how to 
> change it.

Hi Kev,

there are a couple of ways you could do that. I'll write one that I think 
requires the least amount of work:

Put this in your theme's XSL file:
    <xsl:template name="disable_front-page-search"
match="dri:div[@id='aspect.discovery.SiteViewer.div.front-page-search']">
    </xsl:template>

And the following block to the appropriate place in 
[dspace]/config/news-xmlui.xml (this one assumes you have Discovery enabled; if 
you don't, just use the appropriate snippet from DRI and change the "id" 
attribute):

<div id="aspect.discovery.SiteViewer.div.front-page-search-custom"
interactive="yes" rend="primary" action="/discover"
n="front-page-search" method="get">
<head>Search DSpace</head>
<p>Enter some text in the box below to search DSpace.</p> <p> <field 
id="aspect.discovery.SiteViewer.field.query" n="query" type="text"> <params/> 
</field> <field id="aspect.discovery.SiteViewer.field.submit" n="submit" 
type="button"> <params/> <value type="raw">Go</value> </field> </p> </div>


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette 
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
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

Reply via email to