invenio-app-rdm 13.0.0b2.dev13__py2.py3-none-any.whl → 13.0.0b3.dev1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- invenio_app_rdm/__init__.py +1 -1
- invenio_app_rdm/administration/records/records.py +4 -4
- invenio_app_rdm/administration/user_moderation/user_moderation.py +17 -15
- invenio_app_rdm/administration/users/users.py +8 -7
- invenio_app_rdm/config.py +3 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html +3 -2
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/access-form.html +10 -7
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html +2 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html +5 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html +3 -2
- invenio_app_rdm/records_ui/views/deposits.py +14 -12
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js +2 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUserForm.js +2 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RestoreConfirmation.js +2 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/TombstoneForm.js +4 -3
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/SearchResultItemLayout.js +2 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js +6 -5
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +12 -7
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/AccessRequestForm.js +14 -5
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js +2 -2
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js +5 -4
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/theme.js +7 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js +6 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js +8 -7
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html +11 -10
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html +13 -32
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header.html +3 -2
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.sv.html +254 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/statistics.sv.html +196 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/versioning.sv.html +143 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/intro_section.html +13 -15
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/macros/records_list.html +2 -1
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/settings/notifications.html +0 -1
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/site_footer.html +11 -4
- invenio_app_rdm/theme/templates/themes/default/invenio_app_rdm/site_footer.html +12 -19
- {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/METADATA +8 -6
- {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/RECORD +41 -98
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/af/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/af/translations.json +0 -263
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de_AT/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de_DE/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en_AT/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en_HU/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es_CU/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es_MX/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et_EE/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et_EE/translations.json +0 -255
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa_IR/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr_CI/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr_FR/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/gl/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/gl/translations.json +0 -263
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hi_IN/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu_HU/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/index.js +0 -69
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ne/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/rw/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/rw/translations.json +0 -255
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv_SE/messages.po +0 -272
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk_UA/messages.po +0 -272
- invenio_app_rdm/translations/.gitkeep +0 -0
- invenio_app_rdm/translations/af/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/af/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/de_AT/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/de_AT/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/de_DE/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/de_DE/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/en_AT/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/en_AT/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/en_HU/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/en_HU/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/es_CU/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/es_CU/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/es_MX/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/es_MX/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/et_EE/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/et_EE/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/fa_IR/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fa_IR/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/fr_CI/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fr_CI/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/fr_FR/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fr_FR/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/gl/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/gl/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/hi_IN/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hi_IN/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/hu_HU/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hu_HU/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/ne/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ne/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/rw/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/rw/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/sv_SE/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sv_SE/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm/translations/uk_UA/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/uk_UA/LC_MESSAGES/messages.po +0 -728
- {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/WHEEL +0 -0
- {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/entry_points.txt +0 -0
- {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/licenses/LICENSE +0 -0
- {invenio_app_rdm-13.0.0b2.dev13.dist-info → invenio_app_rdm-13.0.0b3.dev1.dist-info}/top_level.txt +0 -0
invenio_app_rdm/__init__.py
CHANGED
|
@@ -25,9 +25,9 @@ class RecordAdminListView(AdminResourceListView):
|
|
|
25
25
|
name = "records"
|
|
26
26
|
resource_config = "records_resource"
|
|
27
27
|
search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
28
|
-
title = "Records"
|
|
28
|
+
title = _("Records")
|
|
29
29
|
menu_label = _("Records")
|
|
30
|
-
category = "Records & files"
|
|
30
|
+
category = _("Records & files")
|
|
31
31
|
icon = "file"
|
|
32
32
|
template = "invenio_app_rdm/administration/records/records.html"
|
|
33
33
|
extension_name = "invenio-rdm-records"
|
|
@@ -109,9 +109,9 @@ class DraftAdminListView(AdminResourceListView):
|
|
|
109
109
|
name = "drafts"
|
|
110
110
|
resource_config = "records_resource"
|
|
111
111
|
search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
112
|
-
title = "Drafts"
|
|
112
|
+
title = _("Drafts")
|
|
113
113
|
menu_label = _("Drafts")
|
|
114
|
-
category = "Records & files"
|
|
114
|
+
category = _("Records & files")
|
|
115
115
|
icon = "upload"
|
|
116
116
|
template = "invenio_app_rdm/administration/records/drafts.html"
|
|
117
117
|
extension_name = "invenio-rdm-records"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2023-2024 CERN.
|
|
4
|
+
# Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
#
|
|
5
6
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
6
7
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -13,6 +14,7 @@ from invenio_administration.views.base import (
|
|
|
13
14
|
AdminResourceDetailView,
|
|
14
15
|
AdminResourceListView,
|
|
15
16
|
)
|
|
17
|
+
from invenio_i18n import lazy_gettext as _
|
|
16
18
|
from invenio_requests.customizations.user_moderation import UserModerationRequest
|
|
17
19
|
from invenio_search_ui.searchconfig import search_app_config
|
|
18
20
|
|
|
@@ -25,9 +27,9 @@ class UserModerationListView(AdminResourceListView):
|
|
|
25
27
|
name = "moderation"
|
|
26
28
|
resource_config = "requests_resource"
|
|
27
29
|
request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
28
|
-
title = "Moderation"
|
|
29
|
-
menu_label = "Moderation"
|
|
30
|
-
category = "Moderation"
|
|
30
|
+
title = _("Moderation")
|
|
31
|
+
menu_label = _("Moderation")
|
|
32
|
+
category = _("Moderation")
|
|
31
33
|
pid_path = "id"
|
|
32
34
|
icon = "users"
|
|
33
35
|
template = "invenio_app_rdm/administration/user_moderation.html"
|
|
@@ -41,30 +43,30 @@ class UserModerationListView(AdminResourceListView):
|
|
|
41
43
|
item_field_list = {
|
|
42
44
|
# custom display of the values - only declared to create columns
|
|
43
45
|
"expanded.topic.user": {
|
|
44
|
-
"text": "User",
|
|
46
|
+
"text": _("User"),
|
|
45
47
|
"order": 2,
|
|
46
48
|
"width": 4,
|
|
47
49
|
},
|
|
48
50
|
# custom display of the values - only declared to create columns
|
|
49
51
|
"expanded.topic.user.profile.email": {
|
|
50
|
-
"text": "Email",
|
|
52
|
+
"text": _("Email"),
|
|
51
53
|
"order": 3,
|
|
52
54
|
"width": 2,
|
|
53
55
|
},
|
|
54
56
|
# custom display of the values - only declared to create columns
|
|
55
57
|
"domain": {
|
|
56
|
-
"text": "Email domain",
|
|
58
|
+
"text": _("Email domain"),
|
|
57
59
|
"order": 4,
|
|
58
60
|
"width": 2,
|
|
59
61
|
},
|
|
60
62
|
# custom display of the values - only declared to create columns
|
|
61
63
|
"activity": {
|
|
62
|
-
"text": "Activity",
|
|
64
|
+
"text": _("Activity"),
|
|
63
65
|
"order": 5,
|
|
64
66
|
"width": 4,
|
|
65
67
|
},
|
|
66
68
|
"status": {
|
|
67
|
-
"text": "Status",
|
|
69
|
+
"text": _("Status"),
|
|
68
70
|
"order": 6,
|
|
69
71
|
"width": 2,
|
|
70
72
|
},
|
|
@@ -72,12 +74,12 @@ class UserModerationListView(AdminResourceListView):
|
|
|
72
74
|
|
|
73
75
|
actions = {
|
|
74
76
|
"accept": {
|
|
75
|
-
"text": "Approve",
|
|
77
|
+
"text": _("Approve"),
|
|
76
78
|
"payload_schema": None,
|
|
77
79
|
"order": 1,
|
|
78
80
|
},
|
|
79
81
|
"decline": {
|
|
80
|
-
"text": "Block",
|
|
82
|
+
"text": _("Block"),
|
|
81
83
|
"payload_schema": None,
|
|
82
84
|
"order": 2,
|
|
83
85
|
},
|
|
@@ -137,7 +139,7 @@ class UserModerationRequestDetailView(AdminResourceDetailView):
|
|
|
137
139
|
api_endpoint = "/requests"
|
|
138
140
|
name = "user-moderation-details"
|
|
139
141
|
resource_config = "requests_resource"
|
|
140
|
-
title = "User moderation"
|
|
142
|
+
title = _("User moderation")
|
|
141
143
|
|
|
142
144
|
display_delete = False
|
|
143
145
|
display_edit = False
|
|
@@ -160,14 +162,14 @@ class UserModerationRequestDetailView(AdminResourceDetailView):
|
|
|
160
162
|
|
|
161
163
|
item_field_list = {
|
|
162
164
|
"id": {
|
|
163
|
-
"text": "ID",
|
|
165
|
+
"text": _("ID"),
|
|
164
166
|
"order": 1,
|
|
165
167
|
},
|
|
166
168
|
"topic.user": {
|
|
167
|
-
"text": "User",
|
|
169
|
+
"text": _("User"),
|
|
168
170
|
"order": 3,
|
|
169
171
|
}, # TODO we should resolve the user. But this is fetched from the API.
|
|
170
172
|
# TODO can we dereference somehow?
|
|
171
|
-
"created": {"text": "Created", "order": 2},
|
|
172
|
-
"is_open": {"text": "Open", "order": 4},
|
|
173
|
+
"created": {"text": _("Created"), "order": 2},
|
|
174
|
+
"is_open": {"text": _("Open"), "order": 4},
|
|
173
175
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
3
|
# Copyright (C) 2023-2024 CERN.
|
|
4
|
+
# Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
#
|
|
5
6
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
6
7
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -53,9 +54,9 @@ class UsersListView(AdminResourceListView):
|
|
|
53
54
|
extension_name = "invenio-users-resources"
|
|
54
55
|
name = "users"
|
|
55
56
|
resource_config = "users_resource"
|
|
56
|
-
title = "User management"
|
|
57
|
-
menu_label = "Users"
|
|
58
|
-
category = "User management"
|
|
57
|
+
title = _("User management")
|
|
58
|
+
menu_label = _("Users")
|
|
59
|
+
category = _("User management")
|
|
59
60
|
pid_path = "id"
|
|
60
61
|
icon = "users"
|
|
61
62
|
|
|
@@ -75,22 +76,22 @@ class UsersListView(AdminResourceListView):
|
|
|
75
76
|
# TODO: missing permission based links in resource
|
|
76
77
|
actions = {
|
|
77
78
|
"approve": {
|
|
78
|
-
"text": "Approve",
|
|
79
|
+
"text": _("Approve"),
|
|
79
80
|
"payload_schema": None,
|
|
80
81
|
"order": 1,
|
|
81
82
|
},
|
|
82
83
|
"restore": {
|
|
83
|
-
"text": "Restore",
|
|
84
|
+
"text": _("Restore"),
|
|
84
85
|
"payload_schema": None,
|
|
85
86
|
"order": 2,
|
|
86
87
|
},
|
|
87
88
|
"block": {
|
|
88
|
-
"text": "Block",
|
|
89
|
+
"text": _("Block"),
|
|
89
90
|
"payload_schema": None,
|
|
90
91
|
"order": 2,
|
|
91
92
|
},
|
|
92
93
|
"Deactivate": {
|
|
93
|
-
"text": "Suspend",
|
|
94
|
+
"text": _("Suspend"),
|
|
94
95
|
"payload_schema": None,
|
|
95
96
|
"order": 2,
|
|
96
97
|
},
|
invenio_app_rdm/config.py
CHANGED
|
@@ -1115,7 +1115,6 @@ IIIF_FORMATS_PIL_MAP = {
|
|
|
1115
1115
|
"jp2": "jpeg2000",
|
|
1116
1116
|
"jpeg": "jpeg",
|
|
1117
1117
|
"jpg": "jpeg",
|
|
1118
|
-
"pdf": "pdf",
|
|
1119
1118
|
"png": "png",
|
|
1120
1119
|
"tif": "tiff",
|
|
1121
1120
|
"tiff": "tiff",
|
|
@@ -1142,6 +1141,9 @@ PREVIEWER_PREFERENCE = [
|
|
|
1142
1141
|
]
|
|
1143
1142
|
"""Preferred previewers."""
|
|
1144
1143
|
|
|
1144
|
+
RECORDS_RESOURCES_IMAGE_FORMATS = ["." + ext for ext in IIIF_FORMATS.keys()]
|
|
1145
|
+
"""RECORDS_RESOURCES_IMAGE_FORMATS must contain all possible IIIF formats to ensure their metadata is extracted."""
|
|
1146
|
+
|
|
1145
1147
|
# Invenio-Pages
|
|
1146
1148
|
# =============
|
|
1147
1149
|
# See https://invenio-pages.readthedocs.io/en/latest/configuration.html
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
Copyright (C) 2021-2023 TU Wien.
|
|
5
5
|
Copyright (C) 2021 Graz University of Technology.
|
|
6
6
|
Copyright (C) 2021 New York University.
|
|
7
|
+
Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
7
8
|
|
|
8
9
|
Invenio RDM Records is free software; you can redistribute it and/or modify
|
|
9
10
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
<p class="ml-2 mb-0 display-inline-block"><i class="green check circle outline icon"></i></p>
|
|
78
79
|
{% endif %}
|
|
79
80
|
{% if community.parent %}
|
|
80
|
-
<div class="sub header">Part of
|
|
81
|
+
<div class="sub header">{{ _('Part of') }}
|
|
81
82
|
<a
|
|
82
83
|
href="{{ url_for('invenio_app_rdm_communities.communities_home', pid_value=community.parent.slug) }}">
|
|
83
84
|
{{community.parent.metadata.title}}
|
|
@@ -108,7 +109,7 @@
|
|
|
108
109
|
<div class="ui container">
|
|
109
110
|
<div class="header">
|
|
110
111
|
<i class="eye icon"></i>
|
|
111
|
-
<strong>{{ _
|
|
112
|
+
<strong>{{ _("Preview") }}</strong>
|
|
112
113
|
</div>
|
|
113
114
|
<p>
|
|
114
115
|
{% if not is_draft %}
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/access-form.html
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
{#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
{#
|
|
2
|
+
Copyright (C) 2023 CERN.
|
|
3
|
+
Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
|
+
Invenio RDM Records is free software; you can redistribute it and/or modify
|
|
5
|
+
it under the terms of the MIT License; see LICENSE file for more details.
|
|
6
|
+
-#}
|
|
4
7
|
|
|
5
8
|
{% from "invenio_accounts/_macros.html" import render_field, form_errors %}
|
|
6
9
|
|
|
@@ -10,8 +13,8 @@ details. #}
|
|
|
10
13
|
{% set full_name = None %}
|
|
11
14
|
<p class="rel-mb-2">
|
|
12
15
|
<i aria-hidden="true" class="user secret icon"></i>
|
|
13
|
-
<strong>You are currently not logged in</strong>. Do you have an account?
|
|
14
|
-
<a href="/login/">Log in here</a>
|
|
16
|
+
<strong>{{ _("You are currently not logged in") }}</strong>. {{ _("Do you have an account?") }}
|
|
17
|
+
<a href="/login/">{{ _("Log in here") }}</a>
|
|
15
18
|
</p>
|
|
16
19
|
{% else %}
|
|
17
20
|
{% set email = current_user.email %}
|
|
@@ -24,8 +27,8 @@ details. #}
|
|
|
24
27
|
</div>
|
|
25
28
|
|
|
26
29
|
<p class="mt-0 mb-10">
|
|
27
|
-
Not you?
|
|
28
|
-
<a href="{{ url_for('security.login') }}">Log out</a> to switch account.
|
|
30
|
+
{{ _("Not you?") }}
|
|
31
|
+
<a href="{{ url_for('security.login') }}">{{ _("Log out") }}</a> {{ _("to switch account.") }}
|
|
29
32
|
</p>
|
|
30
33
|
</div>
|
|
31
34
|
{% endif %}
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{#
|
|
2
2
|
Copyright (C) 2020 CERN.
|
|
3
3
|
Copyright (C) 2020 Northwestern University.
|
|
4
|
+
Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
|
|
5
6
|
Invenio RDM Records is free software; you can redistribute it and/or modify
|
|
6
7
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
7
8
|
#}
|
|
8
9
|
|
|
9
10
|
<dd>
|
|
10
|
-
<a href="/coming-soon" class="ui button"><i class="envelope icon"></i> Send message</a>
|
|
11
|
+
<a href="/coming-soon" class="ui button"><i class="envelope icon"></i> {{ _("Send message") }}</a>
|
|
11
12
|
</dd>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Copyright (C) 2020 Northwestern University.
|
|
4
4
|
Copyright (C) 2021 Graz University of Technology.
|
|
5
5
|
Copyright (C) 2021 New York University.
|
|
6
|
+
Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
6
7
|
|
|
7
8
|
Invenio RDM Records is free software; you can redistribute it and/or modify
|
|
8
9
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -10,13 +11,12 @@
|
|
|
10
11
|
|
|
11
12
|
{% macro license_link(license) %}
|
|
12
13
|
{% if license.link %}
|
|
13
|
-
<a class="license-link" href="{{ license.link }}" target="_blank" title="{{ _('Opens in new tab') }}">Read more</a>
|
|
14
|
+
<a class="license-link" href="{{ license.link }}" target="_blank" title="{{ _('Opens in new tab') }}">{{ _('Read more') }}</a>
|
|
14
15
|
{% elif license.props and license.props.url %}
|
|
15
|
-
<a class="license-link" href="{{ license.props.url }}" target="_blank" title="{{ _('Opens in new tab') }}">Read more</a>
|
|
16
|
+
<a class="license-link" href="{{ license.props.url }}" target="_blank" title="{{ _('Opens in new tab') }}">{{ _('Read more') }}</a>
|
|
16
17
|
{% endif %}
|
|
17
18
|
{% endmacro %}
|
|
18
19
|
|
|
19
|
-
|
|
20
20
|
{% set rights = record.ui.get('rights') %}
|
|
21
21
|
{% if rights %}
|
|
22
22
|
<div class="sidebar-container">
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
|
|
56
56
|
<div id="license-description-{{loop.index}}" class="description">
|
|
57
57
|
<span class="text-muted">
|
|
58
|
-
{{ license.description_l10n or _('No further description.')}}
|
|
58
|
+
{{ license.description_l10n or _('No further description.') }}
|
|
59
59
|
</span>
|
|
60
|
-
{{ license_link(license)}}
|
|
60
|
+
{{ license_link(license) }}
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
</li>
|
invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{#
|
|
2
2
|
Copyright (C) 2020 CERN.
|
|
3
|
+
Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
3
4
|
|
|
4
5
|
Invenio RDM Records is free software; you can redistribute it and/or modify
|
|
5
6
|
it under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -9,8 +10,8 @@
|
|
|
9
10
|
<div class="ui padded grid">
|
|
10
11
|
<div class="two column row version-first">
|
|
11
12
|
<div class="ten wide column left aligned">
|
|
12
|
-
<a href="">Version {{ version }}</a>
|
|
13
|
-
{% set doi = doi if doi else "No DOI available" %}
|
|
13
|
+
<a href="">{{ _("Version") }} {{ version }}</a>
|
|
14
|
+
{% set doi = doi if doi else _("No DOI available") %}
|
|
14
15
|
<p class="text-muted font-small">{{ doi }}</p>
|
|
15
16
|
</div>
|
|
16
17
|
<div class="six wide column right aligned">
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# Copyright (C) 2019-2024 CERN.
|
|
4
4
|
# Copyright (C) 2019-2021 Northwestern University.
|
|
5
5
|
# Copyright (C) 2021 TU Wien.
|
|
6
|
-
# Copyright (C) 2022 KTH Royal Institute of Technology
|
|
6
|
+
# Copyright (C) 2022-2024 KTH Royal Institute of Technology
|
|
7
7
|
# Copyright (C) 2023-2024 Graz University of Technology.
|
|
8
8
|
#
|
|
9
9
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
@@ -103,21 +103,23 @@ def get_form_pids_config(record=None):
|
|
|
103
103
|
"pid_placeholder": "Copy/paste your existing DOI here...",
|
|
104
104
|
"can_be_managed": can_be_managed,
|
|
105
105
|
"can_be_unmanaged": can_be_unmanaged,
|
|
106
|
-
"btn_label_discard_pid": _(
|
|
107
|
-
scheme_label=scheme_label
|
|
106
|
+
"btn_label_discard_pid": _(
|
|
107
|
+
"Discard the reserved %(scheme_label)s.", scheme_label=scheme_label
|
|
108
108
|
),
|
|
109
|
-
"btn_label_get_pid": _(
|
|
110
|
-
scheme_label=scheme_label
|
|
109
|
+
"btn_label_get_pid": _(
|
|
110
|
+
"Get a %(scheme_label)s now!", scheme_label=scheme_label
|
|
111
111
|
),
|
|
112
112
|
"managed_help_text": _(
|
|
113
|
-
"Reserve a
|
|
113
|
+
"Reserve a %(scheme_label)s by pressing the button "
|
|
114
114
|
"(so it can be included in files prior to upload). "
|
|
115
|
-
"The
|
|
116
|
-
|
|
115
|
+
"The %(scheme_label)s is registered when your upload is published.",
|
|
116
|
+
scheme_label=scheme_label,
|
|
117
|
+
),
|
|
117
118
|
"unmanaged_help_text": _(
|
|
118
|
-
"A
|
|
119
|
-
"unambiguously cited. Example: 10.1234/foo.bar"
|
|
120
|
-
|
|
119
|
+
"A %(scheme_label)s allows your upload to be easily and "
|
|
120
|
+
"unambiguously cited. Example: 10.1234/foo.bar",
|
|
121
|
+
scheme_label=scheme_label,
|
|
122
|
+
),
|
|
121
123
|
"default_selected": default_selected,
|
|
122
124
|
"optional_doi_transitions": optional_doi_transitions,
|
|
123
125
|
}
|
|
@@ -226,7 +228,7 @@ class VocabulariesOptions:
|
|
|
226
228
|
.options(load_only(VocabularyScheme.id))
|
|
227
229
|
.all()
|
|
228
230
|
)
|
|
229
|
-
limit_to = [{"text": "All", "value": "all"}]
|
|
231
|
+
limit_to = [{"text": _("All"), "value": "all"}]
|
|
230
232
|
# id is human readable and shorter, so we use it
|
|
231
233
|
limit_to += [{"text": s.id, "value": s.id} for s in subjects]
|
|
232
234
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* // This file is part of Invenio-App-Rdm
|
|
3
3
|
* // Copyright (C) 2023 CERN.
|
|
4
|
+
* // Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
* //
|
|
5
6
|
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
|
|
6
7
|
* // under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -72,7 +73,7 @@ export class ImpersonateUser extends Component {
|
|
|
72
73
|
labelPosition="left"
|
|
73
74
|
>
|
|
74
75
|
<Icon name="spy" />
|
|
75
|
-
Impersonate
|
|
76
|
+
{i18next.t("Impersonate")}
|
|
76
77
|
</Dropdown.Item>
|
|
77
78
|
<ActionModal modalOpen={modalOpen} user={user}>
|
|
78
79
|
{modalHeader && <Modal.Header>{modalHeader}</Modal.Header>}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* // This file is part of Invenio-App-Rdm
|
|
3
3
|
* // Copyright (C) 2023 CERN.
|
|
4
|
+
* // Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
* //
|
|
5
6
|
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
|
|
6
7
|
* // under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -175,7 +176,7 @@ export class ImpersonateUserForm extends Component {
|
|
|
175
176
|
</Modal.Content>
|
|
176
177
|
<Modal.Actions>
|
|
177
178
|
<Button onClick={this.handleModalClose} floated="left">
|
|
178
|
-
Close
|
|
179
|
+
{i18next.t("Close")}
|
|
179
180
|
</Button>
|
|
180
181
|
<Button
|
|
181
182
|
size="small"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* // This file is part of Invenio-App-Rdm
|
|
3
3
|
* // Copyright (C) 2023 CERN.
|
|
4
|
+
* // Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
* //
|
|
5
6
|
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
|
|
6
7
|
* // under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -81,7 +82,7 @@ export class RestoreConfirmation extends Component {
|
|
|
81
82
|
</Modal.Content>
|
|
82
83
|
<Modal.Actions>
|
|
83
84
|
<Button onClick={this.handleModalClose} floated="left">
|
|
84
|
-
Close
|
|
85
|
+
{i18next.t("Close")}
|
|
85
86
|
</Button>
|
|
86
87
|
<Button
|
|
87
88
|
size="small"
|
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/TombstoneForm.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* // This file is part of Invenio-App-Rdm
|
|
3
3
|
* // Copyright (C) 2023 CERN.
|
|
4
|
+
* // Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
* //
|
|
5
6
|
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
|
|
6
7
|
* // under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -129,7 +130,7 @@ export default class TombstoneForm extends Component {
|
|
|
129
130
|
this.handleVisibility(setFieldValue, true)
|
|
130
131
|
}
|
|
131
132
|
>
|
|
132
|
-
Public
|
|
133
|
+
{i18next.t("Public")}
|
|
133
134
|
</Button>
|
|
134
135
|
<Button
|
|
135
136
|
active={!values.is_visible}
|
|
@@ -139,7 +140,7 @@ export default class TombstoneForm extends Component {
|
|
|
139
140
|
this.handleVisibility(setFieldValue, false)
|
|
140
141
|
}
|
|
141
142
|
>
|
|
142
|
-
Hidden
|
|
143
|
+
{i18next.t("Hidden")}
|
|
143
144
|
</Button>
|
|
144
145
|
</Button.Group>
|
|
145
146
|
{!values.is_visible && isPublic && (
|
|
@@ -182,7 +183,7 @@ export default class TombstoneForm extends Component {
|
|
|
182
183
|
</Modal.Content>
|
|
183
184
|
<Modal.Actions>
|
|
184
185
|
<Button onClick={this.handleModalClose} floated="left">
|
|
185
|
-
Close
|
|
186
|
+
{i18next.t("Close")}
|
|
186
187
|
</Button>
|
|
187
188
|
<Button
|
|
188
189
|
size="small"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* This file is part of Invenio.
|
|
3
3
|
* Copyright (C) 2022 CERN.
|
|
4
|
+
* Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
5
|
*
|
|
5
6
|
* Invenio is free software; you can redistribute it and/or modify it
|
|
6
7
|
* under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -85,7 +86,7 @@ class SearchResultItemComponent extends Component {
|
|
|
85
86
|
)}
|
|
86
87
|
>
|
|
87
88
|
<Icon name="paperclip" />
|
|
88
|
-
Records
|
|
89
|
+
{i18next.t("Records")}
|
|
89
90
|
</a>
|
|
90
91
|
</Table.Cell>
|
|
91
92
|
<Table.Cell data-label={i18next.t("Status")}>
|
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file is part of InvenioRDM
|
|
2
2
|
// Copyright (C) 2022-2024 CERN.
|
|
3
|
+
// Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
3
4
|
//
|
|
4
5
|
// Invenio RDM is free software; you can redistribute it and/or modify it
|
|
5
6
|
// under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -25,7 +26,7 @@ class RecordsResultsListItem extends Component {
|
|
|
25
26
|
const createdDate = _get(
|
|
26
27
|
result,
|
|
27
28
|
"ui.created_date_l10n_long",
|
|
28
|
-
"No creation date found."
|
|
29
|
+
i18next.t("No creation date found.")
|
|
29
30
|
);
|
|
30
31
|
|
|
31
32
|
const creators = result.ui.creators.creators;
|
|
@@ -33,21 +34,21 @@ class RecordsResultsListItem extends Component {
|
|
|
33
34
|
const descriptionStripped = _get(
|
|
34
35
|
result,
|
|
35
36
|
"ui.description_stripped",
|
|
36
|
-
"No description"
|
|
37
|
+
i18next.t("No description")
|
|
37
38
|
);
|
|
38
39
|
|
|
39
40
|
const publicationDate = _get(
|
|
40
41
|
result,
|
|
41
42
|
"ui.publication_date_l10n_long",
|
|
42
|
-
"No publication date found."
|
|
43
|
+
i18next.t("No publication date found.")
|
|
43
44
|
);
|
|
44
45
|
const resourceType = _get(
|
|
45
46
|
result,
|
|
46
47
|
"ui.resource_type.title_l10n",
|
|
47
|
-
"No resource type"
|
|
48
|
+
i18next.t("No resource type")
|
|
48
49
|
);
|
|
49
50
|
const subjects = _get(result, "ui.subjects", []);
|
|
50
|
-
const title = _get(result, "metadata.title", "No title");
|
|
51
|
+
const title = _get(result, "metadata.title", i18next.t("No title"));
|
|
51
52
|
const version = _get(result, "ui.version", null);
|
|
52
53
|
const versions = _get(result, "versions");
|
|
53
54
|
const uniqueViews = _get(result, "stats.all_versions.unique_views", 0);
|
|
@@ -64,16 +64,16 @@ export class RDMDepositForm extends Component {
|
|
|
64
64
|
creators: {
|
|
65
65
|
...this.config.vocabularies.creators,
|
|
66
66
|
type: [
|
|
67
|
-
{ text: "Person", value: "personal" },
|
|
68
|
-
{ text: "Organization", value: "organizational" },
|
|
67
|
+
{ text: i18next.t("Person"), value: "personal" },
|
|
68
|
+
{ text: i18next.t("Organization"), value: "organizational" },
|
|
69
69
|
],
|
|
70
70
|
},
|
|
71
71
|
|
|
72
72
|
contributors: {
|
|
73
73
|
...this.config.vocabularies.contributors,
|
|
74
74
|
type: [
|
|
75
|
-
{ text: "Person", value: "personal" },
|
|
76
|
-
{ text: "Organization", value: "organizational" },
|
|
75
|
+
{ text: i18next.t("Person"), value: "personal" },
|
|
76
|
+
{ text: i18next.t("Organization"), value: "organizational" },
|
|
77
77
|
],
|
|
78
78
|
},
|
|
79
79
|
identifiers: {
|
|
@@ -336,6 +336,11 @@ export class RDMDepositForm extends Component {
|
|
|
336
336
|
},
|
|
337
337
|
initialQueryState: {
|
|
338
338
|
filters: [["tags", "recommended"]],
|
|
339
|
+
sortBy: "bestmatch",
|
|
340
|
+
sortOrder: "asc",
|
|
341
|
+
layout: "list",
|
|
342
|
+
page: 1,
|
|
343
|
+
size: 12,
|
|
339
344
|
},
|
|
340
345
|
}}
|
|
341
346
|
serializeLicenses={(result) => ({
|
|
@@ -394,8 +399,8 @@ export class RDMDepositForm extends Component {
|
|
|
394
399
|
schema="contributors"
|
|
395
400
|
autocompleteNames={this.config.autocomplete_names}
|
|
396
401
|
modal={{
|
|
397
|
-
addLabel: "Add contributor",
|
|
398
|
-
editLabel: "Edit contributor",
|
|
402
|
+
addLabel: i18next.t("Add contributor"),
|
|
403
|
+
editLabel: i18next.t("Edit contributor"),
|
|
399
404
|
}}
|
|
400
405
|
/>
|
|
401
406
|
</Overridable>
|
|
@@ -497,7 +502,7 @@ export class RDMDepositForm extends Component {
|
|
|
497
502
|
size: 5,
|
|
498
503
|
},
|
|
499
504
|
}}
|
|
500
|
-
label="Awards/Grants"
|
|
505
|
+
label={i18next.t("Awards/Grants")}
|
|
501
506
|
labelIcon="money bill alternate outline"
|
|
502
507
|
deserializeAward={(award) => {
|
|
503
508
|
return {
|
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/AccessRequestForm.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
// This file is part of InvenioRDM
|
|
2
|
+
// Copyright (C) 2024 CERN.
|
|
3
|
+
// Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
4
|
+
//
|
|
5
|
+
// Invenio RDM Records is free software; you can redistribute it and/or modify it
|
|
6
|
+
// under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
1
8
|
import _get from "lodash/get";
|
|
2
9
|
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
|
3
10
|
import isEmpty from "lodash/isEmpty";
|
|
@@ -149,7 +156,7 @@ export class AccessRequestForm extends Component {
|
|
|
149
156
|
<TextField
|
|
150
157
|
required
|
|
151
158
|
fieldPath="email"
|
|
152
|
-
label="Your email address"
|
|
159
|
+
label={i18next.t("Your email address")}
|
|
153
160
|
placeholder={i18next.t("Email address")}
|
|
154
161
|
icon="at"
|
|
155
162
|
iconPosition="left"
|
|
@@ -217,15 +224,17 @@ export class AccessRequestForm extends Component {
|
|
|
217
224
|
}}
|
|
218
225
|
</Formik>
|
|
219
226
|
<Modal open={modalOpen}>
|
|
220
|
-
<Modal.Header>Email confirmation needed</Modal.Header>
|
|
227
|
+
<Modal.Header>{i18next.t("Email confirmation needed")}</Modal.Header>
|
|
221
228
|
<Modal.Content>
|
|
222
229
|
<Modal.Description>
|
|
223
|
-
We have sent you an email to verify your address.
|
|
224
|
-
|
|
230
|
+
{i18next.t("We have sent you an email to verify your address.")}
|
|
231
|
+
{i18next.t(`
|
|
232
|
+
Please check the email and follow the instructions to complete the access request.
|
|
233
|
+
`)}
|
|
225
234
|
</Modal.Description>
|
|
226
235
|
</Modal.Content>
|
|
227
236
|
<Modal.Actions>
|
|
228
|
-
<Button onClick={this.handleModalClose}>Close</Button>
|
|
237
|
+
<Button onClick={this.handleModalClose}>{i18next.t("Close")}</Button>
|
|
229
238
|
</Modal.Actions>
|
|
230
239
|
</Modal>
|
|
231
240
|
</>
|
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js
CHANGED
|
@@ -87,9 +87,9 @@ export class RecordCommunitiesList extends Component {
|
|
|
87
87
|
</Header>
|
|
88
88
|
{community.parent && (
|
|
89
89
|
<HeaderSubheader>
|
|
90
|
-
Part of{" "}
|
|
90
|
+
{i18next.t("Part of")}{" "}
|
|
91
91
|
<a href={`/communities/${community.parent.slug}`}>
|
|
92
|
-
{community.parent.metadata.title}
|
|
92
|
+
{i18next.t(community.parent.metadata.title)}
|
|
93
93
|
</a>
|
|
94
94
|
</HeaderSubheader>
|
|
95
95
|
)}
|