Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global: enabled sort by verified #535

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -550,3 +550,13 @@ OPENAIRE_DIRECT_INDEXING_ENABLED = True
"""Enable sending published records for direct indexing at OpenAIRE."""

RDM_RECORDS_SERVICE_COMPONENTS = DefaultRecordsComponents + [OpenAIREComponent]
"""Addd OpenAIRE component to records service."""

RDM_SEARCH_SORT_BY_VERIFIED = True
"""Enable the sorting of records by verified."""

USERS_RESOURCES_ADMINISTRATION_ENABLED = True
"""Enable user administration."""

COMMUNITIES_ADMINISTRATION_DISABLED = False
"""Enable communities administration."""
5 changes: 2 additions & 3 deletions site/zenodo_rdm/redirector.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ def communities_detail_view_function():
The following routes are redirected as follows:
- /communities/about/<id>/ -> GET /communities/<pid_value>
- /collection/user-<id> -> GET /communities/<pid_value>
- /communities/<community_id>/about -> GET /communities/<pid_value>

:return: url for the view 'invenio_app_rdm_communities.communities_detail'
:rtype: str
"""
_id = request.view_args.get("id", request.view_args["community_id"])
_id = request.view_args["id"]
values = {"pid_value": _id}
target = url_for("invenio_app_rdm_communities.communities_detail", **values)
return target
Expand All @@ -69,7 +68,7 @@ def communities_settings_view_function():
:return: url for the view 'invenio_communities.communities_settings'
:rtype: str
"""
_id = request.view_args.get("id", request.view_args["community_id"])
_id = request.view_args["community_id"]
values = {"pid_value": _id}
target = url_for("invenio_communities.communities_settings", **values)
return target
Expand Down
Loading