Skip to content

Commit

Permalink
sort: fix mostrecent field query
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Oct 19, 2023
1 parent c230726 commit 68b7938
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ LEGACY_SORT_OPTIONS = {
"fields": ["metadata.publication_date"],
},
"mostrecent": {
"title": _("Published [Newest]"),
"fields": ["-metadata.publication_date"],
"title": _("Newest"),
"fields": ["-created"],
},
"-mostrecent": {
"title": _("Published [Oldest]"),
"fields": ["metadata.publication_date"],
"title": _("Oldest"),
"fields": ["created"],
},
"-mostviewed": dict(
title=_("Most viewed [Least views first]"), fields=["stats.all_versions.unique_views"]
Expand Down

0 comments on commit 68b7938

Please sign in to comment.