Skip to content

Commit

Permalink
custom_field: updated the ui widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatimah committed Feb 23, 2024
1 parent c9fb2db commit 3f45c49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/zenodo_rdm/custom_fields/community_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"section": _("Subjects"),
"fields": [
dict(
field="es:subjects",
ui_widget="AutocompleteDropdown",
field="subjects",
ui_widget="SubjectAutocompleteDropdown",
props=dict(
label="Keywords and subjects",
icon="tag",
description="The subjects related to the community",
placeholder="Search for a subject by name e.g. Psychology ...",
autocompleteFrom="/api/vocabularies/languages",
autocompleteFrom="api/vocabularies/subjects",
autocompleteFromAcceptHeader="application/vnd.inveniordm.v1+json",
required=False,
multiple=True,
Expand All @@ -35,8 +35,8 @@

COMMUNITY_FIELDS = {
VocabularyCF(
name="es:subjects",
vocabulary_id="es:subjects",
name="subjects",
vocabulary_id="subjects",
multiple=True,
dump_options=False,
)
Expand Down

0 comments on commit 3f45c49

Please sign in to comment.