Skip to content

Commit

Permalink
search: update default sort option
Browse files Browse the repository at this point in the history
  • Loading branch information
yashlamba committed Oct 9, 2023
1 parent ee82fc4 commit a5775bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ RDM_SORT_OPTIONS = {
RDM_SEARCH = {
"facets": ["access_status", "resource_type", "subject", "file_type"] + list(CUSTOM_FIELDS_FACETS.keys()),
"sort": [
"bestmatch",
"mostviewed",
"bestmatch",
"newest",
"oldest",
"version",
Expand Down Expand Up @@ -380,8 +380,8 @@ RDM_FACETS = {
}

RDM_SEARCH_DRAFTS = {
**RDM_SEARCH_DRAFTS,
"facets": RDM_SEARCH_DRAFTS["facets"] + list(CUSTOM_FIELDS_FACETS.keys())
**RDM_SEARCH,
"sort_default_no_query": "newest",
}

# User moderation feature enabled
Expand Down

0 comments on commit a5775bf

Please sign in to comment.