Page History
...
DSpace Discovery
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
...
Code Block | ||
---|---|---|
| ||
<property name="sidebarFacets"> <list> <ref bean="sidebarFacetAuthor" /> <ref bean="sidebarFacetSubject" /> <ref bean="sidebarFacetDateIssued" /> </list> </property> |
Configuring and
...
customizing search sort fields
The search sort field configuration block contains not only the sort fields but also the default sort field & the default sort order.
Below is an example of the sort configuration.
Code Block | ||
---|---|---|
| ||
<property name="searchSortConfiguration">
<bean class="org.dspace.discovery.configuration.DiscoverySortConfiguration">
<!--<property name="defaultSort" ref="sortDateIssued"/>-->
<!--DefaultSortOrder can either be desc or asc (desc is default)-->
<property name="defaultSortOrder" value="desc"/>
<property name="sortFields">
<list>
<ref bean="sortTitle" />
<ref bean="sortDateIssued" />
</list>
</property>
</bean>
</property> |
The property name & the bean class are mandatory. The property field names are discusses below.
- defaultSort (optional): The default field on which the search results will be sorted, this must be a reference to an existing search sort field bean. If none is given relevance will be the default.
- defaultSortOrder (optional): The default sort order can either be asc or desc.
- sortFields (mandatory): The list of available sort options, each element in this list must link to an existing sort field configuration bean.
Adding default filter queries (OPTIONAL)
...
Overview
Content Tools