Hello Fellow Geek,

 

I'm assuming you added the new metadata field ("dc.extra"?) to the
metadata registry? And that you added the name-value pair to the
Messages.properties file, something like:

 

jsp.search.advanced.type.extra = Extra

 

Now, whatever you called the new field in the registry (and in
Messages.properties) should match what you call it in dspace.cfg - it
looks like you have a mismatch. You have:

 

search.index.13 = rights:dc.rights

 

which should be something like:

 

search.index.13 = extra:dc.extra

 

Also, I'm assuming that after you made the changes in
Messages.properties, dspace.cfg and
dspace/modules/jspui/src/main/webapp/search/advanced.jsp in your source
code directory, that you ran:

 

mvn package

cd target/dspace-1.5.2-build.dir

ant update

 

Hope this helps,

 

Gary

 

 

GARY BROWNE | Development Programmer 
Library IT Services | University Library

THE UNIVERSITY OF SYDNEY
T +61 2 9351 5946  | F +61 2 9036 0000

 

From: Hardik Mishra [mailto:[email protected]] 
Sent: Monday, 13 September 2010 11:13 PM
To: Tech List
Subject: [Dspace-tech] Add new metadata fields in Advanced Search Menu

 

Hello Geeks

I am using dspace 1.5.2 , JSPUI 

I want to add some new metadata fields in advanced.jsp 'Search Type'
select box.

I have tried adding following thigs but it didn't worked.

1. In select box

 <option value="extra" <%= field1.equals("extra") ?
"selected=\"selected\"" : "" %>><fmt:message
key="jsp.search.advanced.type.extra"/></option>

2. Added new field to search index fields under /dspace.cfg
search.index.13 = rights:dc.rights

3. Then run script from dspace/bin
dsrun org.dspace.search.DSIndexer

I have restarted tomcat and then tried to run search using 'extra'
metadata field but it did not produced any results.

I have entered records in database for the 'extra' metadata field.

Thanks &  Regards
Hardik Mishra
Software Engineer

Give a man a fish, and you feed him for a day. Teach a man to catch fish
and you feed him for a lifetime.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to