Skip to content

Commit

Permalink
custom_field: added subject field to community
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah authored and slint committed Mar 6, 2024
1 parent 94ecb47 commit 26168aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 58 deletions.
12 changes: 7 additions & 5 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,16 @@ 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, COMMUNITY_NAMESPACES,COMMUNITY_FIELDS, COMMUNITY_FIELDS_UI
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
from zenodo_rdm.api import ZenodoRDMRecord, ZenodoRDMDraft
Expand Down Expand Up @@ -641,11 +645,9 @@ RDM_CUSTOM_FIELDS = CUSTOM_FIELDS

RDM_CUSTOM_FIELDS_UI = CUSTOM_FIELDS_UI # UI components

COMMUNITIES_CUSTOM_FIELDS_UI = COMMUNITY_FIELDS_UI

COMMUNITIES_CUSTOM_FIELDS = COMMUNITY_FIELDS
COMMUNITIES_CUSTOM_FIELDS_UI = SUBJECT_FIELDS_UI

COMMUNITIES_NAMESPACES = COMMUNITY_NAMESPACES
COMMUNITIES_CUSTOM_FIELDS = SUBJECT_FIELDS

# Invenio-Communities
# ==============
Expand Down
5 changes: 0 additions & 5 deletions site/zenodo_rdm/custom_fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
THESIS_NAMESPACE,
)

from .community_fields import (
COMMUNITY_FIELDS,
COMMUNITY_FIELDS_UI,
COMMUNITY_NAMESPACES,
)
from .domain_fields import (
AUDIOVIS_FIELDS,
AUDIOVIS_FIELDS_UI,
Expand Down
48 changes: 0 additions & 48 deletions site/zenodo_rdm/custom_fields/community_fields.py

This file was deleted.

0 comments on commit 26168aa

Please sign in to comment.