Skip to content

Commit

Permalink
re-enable sorting results by created date
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Oct 25, 2024
1 parent d9f1b75 commit 5e96da4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ RDM_SORT_OPTIONS = {
title=_("Least recently updated"),
fields=["updated"],
),
"created-desc": dict(
title=_("Recently added"),
fields=["-created"],
),
"created-asc": dict(
title=_("Least recently added"),
fields=["created"],
),
}


Expand Down Expand Up @@ -438,6 +446,8 @@ RDM_SEARCH = {
"oldest",
"updated-desc",
"updated-asc",
"created-desc",
"created-asc",
],
"query_parser_cls": QueryParser.factory(
mapping={
Expand Down

0 comments on commit 5e96da4

Please sign in to comment.