value of defaultSortField in discovery.xml is not considered as default sort field #2524
Labels
bug
component: Discovery
related to discovery search or browse system
help wanted
Needs a volunteer to claim to move forward
Bug Description
The value of
<property name="defaultSortField" ref="xxx" />
is not considered as default sort field. Instead the first list value in<property name="sortFields">
is considered.This bug is caused by this line in
search.component.ts
:dspace-angular/src/app/shared/search/search.component.ts
Line 317 in f53c77b
Steps to reproduce
Change the value of
<property name="defaultSortField" ref="sortLastModified" />
to<property name="defaultSortField" ref="sortTitleAsc" />
indiscovery.xml
(bean with idworkspaceConfiguration
):https://github.com/DSpace/DSpace/blob/96ba07197adbced95ffd743295e07bf7bb271953/dspace/config/spring/api/discovery.xml#L751
Restart the backend (reload the changed configuration)
Go to http://your-ds-host/mydspace?configuration=workspace
Observe that the default sort field is NOT changed to Title Ascending.
Expected behavior
In the given example: the default sort field is Title Ascending (
sortTitleAsc
)The text was updated successfully, but these errors were encountered: