From 68b79383e468938c86ed9102c90911a47c352a2d Mon Sep 17 00:00:00 2001 From: Zacharias Zacharodimos Date: Thu, 19 Oct 2023 18:14:53 +0200 Subject: [PATCH] sort: fix mostrecent field query --- invenio.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invenio.cfg b/invenio.cfg index 847dc059..aeaaf135 100644 --- a/invenio.cfg +++ b/invenio.cfg @@ -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"]