Skip to content

Commit

Permalink
configure user records search
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Oct 26, 2024
1 parent 9497513 commit 8088e71
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ RDM_SEARCH = {
"ror": "metadata.creators.affiliations.id",
"issn": "custom_fields.journal\:journal.issn",
# Specific to InveniRDM Starter
"uuid": "metadata.identifiers.identifier",
"guid": "metadata.identifiers.identifier",
"content": "custom_fields.rs\:content_text",
},
tree_transformer_cls=SearchFieldTransformer,
Expand All @@ -474,6 +472,12 @@ RDM_SEARCH = {
COMMUNITIES_RECORDS_SEARCH = deepcopy(RDM_SEARCH)
"""Communities record search config is the same as the main record search."""

RDM_SEARCH_DRAFTS = {
"facets": ["is_published", "language", "subject"],
"sort": ["bestmatch", "newest", "oldest", "updated-desc", "updated-asc", "created-desc", "created-asc"],
}
"""User records search configuration (i.e. list of uploads)."""

# Toggle to show or hide the 'Browse' menu entry for communities.
COMMUNITIES_SHOW_BROWSE_MENU_ENTRY = True

Expand Down

0 comments on commit 8088e71

Please sign in to comment.