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

custom_field: added subject field to community #736

Merged
merged 2 commits into from
Mar 6, 2024
Merged
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
9 changes: 8 additions & 1 deletion invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ from invenio_records_resources.services.records.queryparser import (
QueryParser,
SearchFieldTransformer,
)
from invenio_vocabularies.services.custom_fields import (
SUBJECT_FIELDS_UI,
SUBJECT_FIELDS
)
from invenio_rdm_records.services.components.signal import SignalComponent
from invenio_rdm_records.services.components import DefaultRecordsComponents
from invenio_oauthclient.views.client import auto_redirect_login

from invenio_communities.communities.services import facets as community_facets

from zenodo_rdm.custom_fields import CUSTOM_FIELDS_UI, CUSTOM_FIELDS, CUSTOM_FIELDS_FACETS, NAMESPACES
from zenodo_rdm.views import frontpage_view_function
from zenodo_rdm.permissions import ZenodoCommunityPermissionPolicy, ZenodoRDMRecordPermissionPolicy
Expand Down Expand Up @@ -642,6 +645,10 @@ RDM_CUSTOM_FIELDS = CUSTOM_FIELDS

RDM_CUSTOM_FIELDS_UI = CUSTOM_FIELDS_UI # UI components

COMMUNITIES_CUSTOM_FIELDS_UI = SUBJECT_FIELDS_UI

COMMUNITIES_CUSTOM_FIELDS = SUBJECT_FIELDS

# Invenio-Communities
# ==============
COMMUNITIES_GROUPS_ENABLED = False
Expand Down
Loading