Hi Lucy,

 

Assuming you want to edit the homepage search box, the file you want is
[dspace-src]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/home.jsp

 

Find the line:

 

<p><input type="text" name="query" size="20" id="tquery" />&nbsp;

 

(it should be at about line 121)

 

You can then add a value="Enter some text in the box below to search
Dspace" attribute to the input tag to do what you want. If your
repository uses the multi-language feature, then you'll want to use
something like value="<fmt:message key="jsp.general.search.prompt"/>"
instead, and create jsp.general.search.prompt entries in the relevant
Messages.properties files.

 

I hope that helps,

 

 

Stuart Lewis

Digital Services Programmer

Te Tumu Herenga The University of Auckland Library

Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand

Ph: 64 9 373-7599 x81928

http://www.library.auckland.ac.nz <http://www.library.auckland.ac.nz/> /

 

 

 

From: [email protected]
[mailto:[email protected]] On Behalf Of Lucy Wang
Sent: Tuesday, 21 April 2009 1:35 a.m.
To: DSpace Tech; DSpace General
Subject: [Dspace-general] [Dspace-tech] can not find the file for the
searchbox in the middle

 

Hi All, 

I am working on DSpace 1.5.1 with JSP on Windows. I would like to
customize the page for the search box in the middle with "Enter some
text in the box below to search DSpace." I spend quite a time and still
can not find the location of this file. Please help me out. Thanks in
advance.

 

Lucy

 

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to