Hilas,

Welcome to the DSpace community! You've already got a few good answers to
this question. I'm writing to suggest another resource for other
customization questions. The DSpace 1.4.2 How-To Guide is a 55-page PDF
freely downloadable from
http://hdl.handle.net/2142/1043

Page 18 gives a very similar description to Claudia's, and there are other
very readable "how-to's" for other common tasks.

Hope this helps!

-Jodi

On 6/25/07, Claudia Jürgen <[EMAIL PROTECTED]> wrote:

Hi Hlias,

in order to make change the search index and change the advanced search
(latest stable release) you must perform changes in:

- [dspace-source]/config/dspace.cfg
- [dspace-source]/jsp/local/search/advanced.jsp
- [dspace-source]/config/language-packs/Messages.properties

E.g. adding a search index for "affiliation"

1. Edit [dspace-source]/config/dspace.cfg
2. Set/Change a search indices
    A search entry in dspace.cfg:
    search.index.1 = author:dc.contributor.*

    Example adding a new field:
    search.index.2 = affiliation:dc.creator.affiliation
    (supposing dc.creator.affiliation is registered via metadata registry)

    The config entries got the general form:
    search.index.[number] = [name]:[metadataschema].[element].[qualifier]

3. It might be necessary to change the advanced search
    [dspace-source]/jsp/local/search/advanced.jsp
    in order to use new/changed indices in the advanced search, e.g.:

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

You must perform this change for field2 and field3, too.

4. Please check that the tags needed are in
[dspace-source]/config/language-packs/Messages.properties|, e.g.:
jsp.search.advanced.type.affiliation = YourMessage

5. Rebuild and Reindex your system


hope that helps

Claudia Jürgen



Hlias Stavrakis schrieb:
> Hi,
> i'm new to the community an i would like to ask how can i make new
> metadata elements searchable from the search engine of DSpace?
>
> Any comment would be very helpfull,
> Thanks.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to