Hi,

On 28/05/15 18:05, allybit...@udsm.ac.tz wrote:
I am trying to add search by Type eg Book or Book chapters in the
Discovery menu side bar.

There is documentation here: https://wiki.duraspace.org/display/DSDOC5x/Configuration+Reference#ConfigurationReference-BrowseIndexConfiguration (scroll down to "Defining the Indexes").

Essentially, in your dspace.cfg file there will be a block like this:

webui.browse.index.1 = dateissued:metadata:dc.date.issued:date:full
webui.browse.index.2 = author:metadata:dc.contributor.*:text
webui.browse.index.3 = title:metadata:dc.title:title:full
webui.browse.index.4 = subject:metadata:dc.subject.*:text
#webui.browse.index.5 = dateaccessioned:item:dateaccessioned

You'll need to add a line, continuing the numbering without counting commented-out lines, eg (assuming your type metadata is in dc.type):

webui.browse.index.1 = dateissued:metadata:dc.date.issued:date:full
webui.browse.index.2 = author:metadata:dc.contributor.*:text
webui.browse.index.3 = title:metadata:dc.title:title:full
webui.browse.index.4 = subject:metadata:dc.subject.*:text
webui.browse.index.5 = type:metadata:dc.type:text

You will most likely need to add some translations to your Messages.properties (if using JSPUI) or messages.xml (if using XMLUI) file, see https://wiki.duraspace.org/display/DSDOC5x/Localization+L10n for help.

You will also need to re-index Discovery to get the type browse to work.

cheers,
Andrea
-- 
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand


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