Skip to content

Commit

Permalink
Add publication date option
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Jan 22, 2024
1 parent 74c6c90 commit a0d8090
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,19 @@ OAISERVER_ID_PREFIX = "authors.library.caltech.edu"
# --------------

SEARCH_INDEX_PREFIX = "caltechauthors-"
from invenio_rdm_records.config import RDM_SORT_OPTIONS
RDM_SORT_OPTIONS.update({
"publication": dict(
title=_('Publication Date'),
fields=['-metadata.publication_date'],
),
})
RDM_SEARCH = {
"facets": ["resource_type", "subject", "access_status", "file_type" ],
"sort": [
"bestmatch",
"newest",
"publication",
"oldest",
"version",
"mostviewed",
Expand Down

0 comments on commit a0d8090

Please sign in to comment.