From 3f421dcdd5d73a93c60a6dd6751d28d64405f98b Mon Sep 17 00:00:00 2001 From: Carlin MacKenzie Date: Thu, 31 Oct 2024 11:01:09 +0100 Subject: [PATCH 1/2] chore: fix typo --- invenio_app_rdm/administration/records/records.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/invenio_app_rdm/administration/records/records.py b/invenio_app_rdm/administration/records/records.py index 627a4842c..9556aa462 100644 --- a/invenio_app_rdm/administration/records/records.py +++ b/invenio_app_rdm/administration/records/records.py @@ -26,6 +26,7 @@ class RecordAdminListView(AdminResourceListView): resource_config = "records_resource" search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} title = "Records" + menu_label = "Records" category = "Records & files" icon = "file" template = "invenio_app_rdm/administration/records/records.html" @@ -100,10 +101,11 @@ class DraftAdminListView(AdminResourceListView): """Configuration for OAI-PMH sets list view.""" api_endpoint = "/user/records" - name = "Drafts" + name = "drafts" resource_config = "records_resource" search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} title = "Drafts" + menu_label = "Drafts" category = "Records & files" icon = "upload" template = "invenio_app_rdm/administration/records/drafts.html" From cca430dc942c4719ecc7f6b306be101b262c8810 Mon Sep 17 00:00:00 2001 From: Carlin MacKenzie Date: Thu, 31 Oct 2024 13:59:50 +0100 Subject: [PATCH 2/2] i18n: mark for translation Co-authored-by: Sam Arbid <36583694+Samk13@users.noreply.github.com> --- invenio_app_rdm/administration/records/records.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invenio_app_rdm/administration/records/records.py b/invenio_app_rdm/administration/records/records.py index 9556aa462..70e35b9a4 100644 --- a/invenio_app_rdm/administration/records/records.py +++ b/invenio_app_rdm/administration/records/records.py @@ -26,7 +26,7 @@ class RecordAdminListView(AdminResourceListView): resource_config = "records_resource" search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} title = "Records" - menu_label = "Records" + menu_label = _("Records") category = "Records & files" icon = "file" template = "invenio_app_rdm/administration/records/records.html" @@ -105,7 +105,7 @@ class DraftAdminListView(AdminResourceListView): resource_config = "records_resource" search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"} title = "Drafts" - menu_label = "Drafts" + menu_label = _("Drafts") category = "Records & files" icon = "upload" template = "invenio_app_rdm/administration/records/drafts.html"