Skip to content

Commit

Permalink
Add publication status
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Nov 28, 2023
1 parent 1714b5b commit b5810d9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app_data/vocabularies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ caltechgroups:
caltechjournals:
pid-type: ctjrnl
data-file: vocabularies/caltech_journals.jsonl
publicationstatus:
pid-type: pubsat
data-file: vocabularies/publication_status.jsonl
15 changes: 15 additions & 0 deletions app_data/vocabularies/publication_status.jsonl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{"id": "published", "title": {"en": "Published"}}
{"id": "in-press", "title": {"en": "In Press"}}
{"id": "accepted", "title": {"en": "Accepted"}}
{"id": "submitted", "title": {"en": "Submitted"}}
{"id": "draft", "title": {"en": "Draft"}}
{"id": "unpublished", "title": {"en": "Unpublished"}}
{"id": "updated", "title": {"en": "Updated"}}
{"id": "reprint", "title": {"en": "Reprint"}}
{"id": "supplemental-material", "title": {"en": "Supplemental Material"}}
{"id": "erratum", "title": {"en": "Erratum"}}
{"id": "discussion", "title": {"en": "Discussion"}}
{"id": "cover-image", "title": {"en": "Cover Image"}}
{"id": "copyright-permissions", "title": {"en": "Copyright Permissions"}}
{"id": "release-permissions", "title": {"en": "Release Permissions"}}
{"id": "oa-waiver", "title": {"en": "OA Waiver"}}
16 changes: 16 additions & 0 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,9 @@ RDM_CUSTOM_FIELDS = [
VocabularyCF(
name="caltech:journals", dump_options=False, vocabulary_id="caltechjournals"
),
VocabularyCF(
name="caltech:publication_status", dump_options=True, vocabulary_id="publicationstatus",multiple=True
),
]

# Hide "meeting" section in the landing page
Expand Down Expand Up @@ -518,6 +521,19 @@ RDM_CUSTOM_FIELDS_UI = [
clearable=True,
),
),
dict(
field="caltech:publication_status",
ui_widget="Dropdown",
props=dict(
label="Publication Status",
placeholder="Add publication status tags...",
icon="address book",
autocompleteFrom="/api/vocabularies/publicationstatus",
search=True,
multiple=True,
clearable=True,
),
),
],
},
# meeting
Expand Down

0 comments on commit b5810d9

Please sign in to comment.