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

-------------------------------------------------------------------------
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