Change the fields listed in your DSpace Browse By options

 

Add/Remove Browse fields in dspace.cfg

Open dspace.cfg and find the heading "###### Browse Configuration ######"  Scrolling down you will see uncommented lines that read " webui.browse.index…" this is where you will edit and add lines. 

The browse functions are written as "webui.browse.index.# = [name]:metadata:[schema].[element].[qualifier]:[field type]"

Remove any browse fields you do not want and add lines for additional browse fields.  In this example I I have added the field dc.subject.classification with the name "department" and field type text as well as date created with the name "datecreated" and the field type date.

Add Headings to message.xml

Open message.xml and find the heading <!- org.dspace.app.xmlui.artifactbrowser.ConfigureableBrowse.java ->.  You need to add four lines for each new browse category in this section. If you look through the section you will see the same lines for the preexisting browse categories scattered through the text.

First add "<message key="xmlui.ArtifactBrowser.ConfigurableBrowse.[name].column_heading">[Browse Name]</message>" Where [name] is the name you assigned in dspace.cfg and [Browse Name] is the title you want to appear in browse menu in DSpace.  These fields are the text displayed at the top of a browse list.

Then add the lines

<message key="xmlui.ArtifactBrowser.ConfigurableBrowse.title.metadata.[name]">Browsing {0} by [Browse Field] {1}</message>
<message key="xmlui.ArtifactBrowser.ConfigurableBrowse.trail.metadata.[name]">Browsing {0} by [Browse Field] </message>

Where [name] is the name you assigned in dspace.cfg and [Browse Field] is the field you are browsing by.  These fields create the different browse page headings.


You will also need to add a line to artifactbrowser.Navigation.java section.  Find the heading <!- org.dspace.app.xmlui.artifactbrowser.Navigation.java -> and you will see fields for the existing browse options.

Add the line

<message key="xmlui.ArtifactBrowser.Navigation.browse_[name]"></message>

Where [name] is the name you assigned in dspace.cfg and [Browse Field] is the field you are browsing by. These lines are the text displayed in the browse navigation bar.

Re-index and Restart DSpace

Before existing items can be searched or browsed you need to re-index you instance. 

Navigate to cd [dspace]/bin then type"./dspace index-init".  After have finished indexing restart DSpace.

This section was contributed by Catalina Oyler from the Five Colleges of Ohio