invenio-app-rdm 12.0.0.dev8__py2.py3-none-any.whl → 14.0.0b1.dev8__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 +3 -2
- invenio_app_rdm/{stats/templates/events/record_view/v7 → administration}/__init__.py +1 -3
- invenio_app_rdm/{stats/templates/events/record_view → administration/audit_logs}/__init__.py +6 -4
- invenio_app_rdm/administration/audit_logs/audit_logs.py +81 -0
- invenio_app_rdm/administration/domains/__init__.py +22 -0
- invenio_app_rdm/administration/domains/domains.py +159 -0
- invenio_app_rdm/administration/moderation/__init__.py +11 -0
- invenio_app_rdm/administration/moderation/requests.py +175 -0
- invenio_app_rdm/administration/records/__init__.py +15 -0
- invenio_app_rdm/administration/records/records.py +163 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/audit_logs.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/domains_search.html +13 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/records/drafts.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/records/records.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/requests.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/requests_details.html +91 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/user_moderation.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/user_moderation_details.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/users_search.html +14 -0
- invenio_app_rdm/{stats/templates/aggregations/aggr_record_view/v7 → administration/user_moderation}/__init__.py +4 -3
- invenio_app_rdm/administration/user_moderation/user_moderation.py +175 -0
- invenio_app_rdm/administration/users/__init__.py +12 -0
- invenio_app_rdm/administration/users/users.py +130 -0
- invenio_app_rdm/{stats/templates/events/file_download/v7 → administration/views}/__init__.py +4 -3
- invenio_app_rdm/administration/views/ui.py +21 -0
- invenio_app_rdm/cli.py +37 -14
- invenio_app_rdm/communities_ui/searchapp.py +1 -0
- invenio_app_rdm/communities_ui/sitemap.py +63 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/collections/collection.html +60 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/collections/macros.html +43 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/details/browse/index.html +59 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/{details → records}/index.html +1 -1
- invenio_app_rdm/communities_ui/views/communities.py +183 -8
- invenio_app_rdm/communities_ui/views/ui.py +52 -42
- invenio_app_rdm/config.py +586 -90
- invenio_app_rdm/ext.py +157 -0
- invenio_app_rdm/fixtures/__init__.py +2 -2
- invenio_app_rdm/fixtures/pages.py +34 -12
- invenio_app_rdm/records_ui/searchapp.py +43 -0
- invenio_app_rdm/records_ui/sitemap.py +44 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/deposit.html +59 -16
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html +236 -141
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/access-form.html +64 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/citation.html +4 -3
- 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/creatibutors.html +22 -20
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/description.html +7 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/details.html +290 -230
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/doi.html +3 -24
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/meta.html +36 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/citations.html +6 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/communities.html +30 -22
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/details.html +20 -19
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/export.html +19 -16
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/external_resources.html +55 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/keywords_subjects.html +9 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html +62 -49
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/locations.html +23 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/manage_menu.html +24 -4
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/metrics.html +2 -2
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/technical_metadata.html +21 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/versions.html +15 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/stats.html +93 -79
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/subjects.html +1 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/draft_not_found.html +17 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/export.html +2 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html +54 -39
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html +182 -93
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/doi.html +36 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/files.html +152 -79
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/locations.html +62 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html +3 -2
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/restricted_with_doi_tombstone.html +33 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/tombstone.html +55 -12
- invenio_app_rdm/records_ui/utils.py +126 -1
- invenio_app_rdm/records_ui/views/__init__.py +75 -17
- invenio_app_rdm/records_ui/views/decorators.py +309 -38
- invenio_app_rdm/records_ui/views/deposits.py +302 -51
- invenio_app_rdm/records_ui/views/filters.py +74 -7
- invenio_app_rdm/records_ui/views/records.py +256 -90
- invenio_app_rdm/redirector/resource.py +1 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-submission/index.html +34 -8
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/file-modification/index.html +88 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/guest-access-request/index.html +66 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/macros/request_header.html +5 -3
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/record-deletion/index.html +95 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/subcommunity/index.html +49 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/subcommunity-invitation/index.html +49 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/user-access-request/index.html +59 -0
- invenio_app_rdm/requests_ui/views/requests.py +221 -42
- invenio_app_rdm/requests_ui/views/ui.py +17 -4
- invenio_app_rdm/tasks.py +6 -2
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/AuditLogActions.js +136 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/ViewJson.js +35 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/ViewRecentChanges.js +119 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/index.js +31 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/search/SearchResultItemLayout.js +87 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/search/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/CompareRevisionsDropdown.js +89 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js +92 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUserForm.js +199 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/RevisionsDiffViewer.js +80 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/SetQuotaAction.js +109 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/SetQuotaForm.js +196 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/index.js +27 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/search/SearchResultItemLayout.js +185 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/search/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/drafts/index.js +32 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/CompareRevisions.js +129 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RecordActions.js +75 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RecordResourceActions.js +185 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RemovalReasonsSelect.js +85 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RestoreConfirmation.js +108 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/TombstoneForm.js +212 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/api/api.js +38 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/api/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/api/routes.js +30 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/index.js +40 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/AdministrationSearchLayout.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/RecordSearchLayout.js +84 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/SearchResultItemLayout.js +171 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/filters/DeletionStatusFilter.js +121 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/filters/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/index.js +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/requests/RequestsSearchResultItem.js +81 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/requests/RequestsSearchbarLayout.js +48 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/requests/index.js +22 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/ModerationActions.js +103 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/index.js +29 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/SearchResultItemLayout.js +151 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/UserModerationSearchLayout.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/index.js +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/UserActions.js +263 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/api/api.js +42 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/api/index.js +8 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/api/routes.js +38 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/index.js +30 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/SearchResultItemLayout.js +202 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/UserSearchLayout.js +81 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/filters/UserStatusFilterComponent.js +114 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/filters/index.js +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/index.js +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/collectionRecordsSearch/index.js +61 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSearchAppLayout.js +2 -2
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSearchBarElement.js +1 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSingleSearchBarElement.js +1 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/index.js +8 -3
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/CompactStats.js +51 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/CopyButton.js +38 -19
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/DisplayPartOfCommunities.js +78 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/DisplayVerifiedCommunity.js +54 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/FileModificationUntil.js +45 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordDeletion/DeletionModal.js +354 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordDeletion/DeletionRadioGroup.js +44 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordDeletion.js +81 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js +61 -31
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +680 -486
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/ShareDraftButton.js +65 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/config.js +48 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/index.js +14 -2
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/frontpage/RecordsList.js +61 -21
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/AccessRequestForm.js +254 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/CommunitiesManagement.js +171 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/CommunitiesManagementDropdown.js +186 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/EditButton.js +10 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ExportDropdown.js +7 -2
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ManageButton.js +140 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ManageDefaultBrandingAction/ManageDefaultBrandingAction.js +129 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/PendingCommunitiesModal/PendingCommunitiesModal.js +63 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/PendingCommunitiesModal/PendingCommunitiesSearch.js +89 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/PendingCommunitiesModal/PendingCommunityRequestItem.js +33 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCitationField.js +55 -51
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js +87 -89
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesListModal.js +44 -30
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesSearch.js +39 -20
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesSearchItem.js +44 -17
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitySubmission/RecordCommunitySubmissionModal.js +171 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordManagement.js +111 -62
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordVersionsList.js +99 -61
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RemoveFromCommunity/RemoveFromCommunityAction.js +188 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/AccessDropdown.js +93 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/CreateAccessLink.js +98 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js +170 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchResultContainer.js +216 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksTab.js +104 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessRequests/AccessRequestsTab.js +230 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/AccessUsersGroups.js +178 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/AddUserGroupAccessModal.js +172 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/GroupsTab.js +88 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/PeopleTab.js +88 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/UserGroupAccessSearchResultItem.js +158 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/{ShareButton.js → ShareOptions/ShareButton.js} +13 -4
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/ShareModal.js +238 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/api/api.js +39 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/access.js +24 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/index.js +72 -25
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/theme.js +10 -6
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/mapping.js +6 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/AccessRequestExpiration.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/index.js +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineEdit.js +177 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineRead.js +50 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/overrides/TimelineFeedHeader.js +34 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/components.js +15 -13
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/index.js +1 -1
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/subcommunity/browse.js +28 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/theme.js +77 -9
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/base.js +122 -74
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/communities.js +1 -11
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/requests.js +27 -412
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js +15 -14
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads_items/ComputerTabletUploadsItem.js +47 -27
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads_items/MobileUploadsItem.js +43 -27
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js +32 -7
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/file_uploader/uppy.less +37 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/creatibutors.less +15 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/licenses.less +5 -3
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/form.overrides +15 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/grid.overrides +24 -33
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/menu.overrides +18 -3
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.overrides +19 -3
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.variables +2 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.overrides +78 -6
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.overrides +21 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.overrides +30 -7
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/header.overrides +17 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/icon.overrides +2 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/image.overrides +34 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/input.overrides +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/label.overrides +48 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/list.overrides +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/segment.overrides +16 -13
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/site.overrides +156 -97
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/site.variables +7 -3
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/accordion.overrides +35 -9
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/dropdown.overrides +28 -6
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/dropdown.variables +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/modal.overrides +40 -11
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/modal.variables +5 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/search.overrides +7 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/search.variables +0 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/transition.overrides +8 -8
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/theme.less +2 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.overrides +4 -2
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.overrides +20 -33
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/i18next.js +1 -1
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/_generatedTranslations.js +66 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ar/messages.po +805 -138
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ar/translations.json +306 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/bg/messages.po +690 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/bg/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ca/messages.po +700 -81
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ca/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/cs/messages.po +822 -139
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/cs/translations.json +294 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/da/messages.po +692 -67
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/da/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de/messages.po +819 -139
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/el/messages.po +699 -79
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/el/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en/messages.po +1000 -5
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en/translations.json +315 -2
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es/messages.po +811 -138
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et/messages.po +747 -134
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa/messages.po +689 -70
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr/messages.po +810 -127
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hr/messages.po +696 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hr/translations.json +288 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu/messages.po +804 -137
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/index.js +17 -66
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/it/messages.po +715 -88
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/it/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ja/messages.po +684 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ja/translations.json +276 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ka/messages.po +690 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ka/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ko/messages.po +889 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ko/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/lt/messages.po +703 -72
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/lt/translations.json +294 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/no/messages.po +690 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/no/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pl/messages.po +705 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pl/translations.json +294 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pt/messages.po +695 -70
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pt/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ro/messages.po +718 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ro/translations.json +288 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ru/messages.po +807 -125
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ru/translations.json +294 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sk/messages.po +714 -83
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sk/translations.json +294 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv/messages.po +809 -142
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/tr/messages.po +800 -129
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/tr/translations.json +282 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk/messages.po +717 -83
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk/translations.json +294 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_CN/messages.po +737 -124
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_CN/translations.json +276 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_TW/messages.po +684 -71
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_TW/translations.json +276 -86
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/package.json +5 -38
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/translations.pot +863 -127
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/administration_page.html +15 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html +8 -8
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html +12 -12
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html +33 -75
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header.html +42 -27
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header_frontpage.html +4 -2
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header_login.html +144 -113
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.de.html +2 -2
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.en.html +11 -6
- 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.en.html +149 -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 +15 -16
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/macros/records_list.html +33 -3
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page.html +36 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page_cover.html +13 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/robots.txt +15 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/searchbar.html +43 -15
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/settings/notifications.html +17 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/site_footer.html +29 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_communities/default_static_page.html +26 -0
- invenio_app_rdm/theme/templates/themes/default/invenio_app_rdm/header.html +147 -0
- invenio_app_rdm/theme/templates/themes/default/invenio_app_rdm/site_footer.html +42 -0
- invenio_app_rdm/theme/views.py +80 -28
- invenio_app_rdm/theme/webpack.py +38 -7
- invenio_app_rdm/translations/ar/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ar/LC_MESSAGES/messages.po +975 -378
- invenio_app_rdm/translations/bg/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/bg/LC_MESSAGES/messages.po +908 -279
- invenio_app_rdm/translations/ca/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ca/LC_MESSAGES/messages.po +913 -284
- invenio_app_rdm/translations/cs/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/cs/LC_MESSAGES/messages.po +1070 -406
- invenio_app_rdm/translations/da/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/da/LC_MESSAGES/messages.po +909 -274
- invenio_app_rdm/translations/de/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/de/LC_MESSAGES/messages.po +1018 -407
- invenio_app_rdm/translations/el/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/el/LC_MESSAGES/messages.po +916 -287
- invenio_app_rdm/translations/es/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/es/LC_MESSAGES/messages.po +964 -372
- invenio_app_rdm/translations/et/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/et/LC_MESSAGES/messages.po +939 -363
- invenio_app_rdm/translations/fa/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fa/LC_MESSAGES/messages.po +907 -278
- invenio_app_rdm/translations/fr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fr/LC_MESSAGES/messages.po +1033 -376
- invenio_app_rdm/translations/hr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hr/LC_MESSAGES/messages.po +908 -279
- invenio_app_rdm/translations/hu/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hu/LC_MESSAGES/messages.po +989 -372
- invenio_app_rdm/translations/it/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/it/LC_MESSAGES/messages.po +970 -337
- invenio_app_rdm/translations/ja/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ja/LC_MESSAGES/messages.po +908 -279
- invenio_app_rdm/translations/ka/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ka/LC_MESSAGES/messages.po +910 -281
- invenio_app_rdm/translations/ko/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ko/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/lt/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/lt/LC_MESSAGES/messages.po +911 -282
- invenio_app_rdm/translations/messages.pot +982 -289
- invenio_app_rdm/translations/no/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/no/LC_MESSAGES/messages.po +908 -279
- invenio_app_rdm/translations/pl/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/pl/LC_MESSAGES/messages.po +908 -279
- invenio_app_rdm/translations/pt/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/pt/LC_MESSAGES/messages.po +907 -278
- invenio_app_rdm/translations/ro/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ro/LC_MESSAGES/messages.po +1041 -382
- invenio_app_rdm/translations/ru/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ru/LC_MESSAGES/messages.po +1023 -371
- invenio_app_rdm/translations/sk/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sk/LC_MESSAGES/messages.po +917 -288
- invenio_app_rdm/translations/sv/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sv/LC_MESSAGES/messages.po +1007 -398
- invenio_app_rdm/translations/tr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/tr/LC_MESSAGES/messages.po +993 -342
- invenio_app_rdm/translations/uk/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/uk/LC_MESSAGES/messages.po +984 -353
- invenio_app_rdm/translations/zh_CN/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/zh_CN/LC_MESSAGES/messages.po +940 -348
- invenio_app_rdm/translations/zh_TW/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/zh_TW/LC_MESSAGES/messages.po +908 -279
- invenio_app_rdm/upgrade_scripts/fix_migrated_records_from_8_0_to_9_0.py +2 -2
- invenio_app_rdm/upgrade_scripts/migrate_10_0_to_11_0.py +1 -1
- invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py +205 -0
- invenio_app_rdm/upgrade_scripts/migrate_12_0_to_13_0.py +235 -0
- invenio_app_rdm/upgrade_scripts/migrate_2_0_to_3_0.py +1 -1
- invenio_app_rdm/upgrade_scripts/migrate_4_0_to_6_0.py +2 -3
- invenio_app_rdm/upgrade_scripts/migrate_6_0_to_7_0.py +0 -2
- invenio_app_rdm/upgrade_scripts/migrate_8_0_to_9_0.py +2 -2
- invenio_app_rdm/upgrade_scripts/migrate_9_0_to_10_0.py +1 -1
- invenio_app_rdm/users/schemas.py +27 -0
- invenio_app_rdm/users_ui/searchapp.py +9 -1
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/communities.html +1 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/header.html +23 -9
- invenio_app_rdm/users_ui/views/__init__.py +1 -1
- invenio_app_rdm/users_ui/views/dashboard.py +6 -1
- invenio_app_rdm/users_ui/views/ui.py +5 -28
- invenio_app_rdm/utils/files.py +1 -1
- invenio_app_rdm/views.py +21 -0
- invenio_app_rdm-14.0.0b1.dev8.dist-info/METADATA +552 -0
- invenio_app_rdm-14.0.0b1.dev8.dist-info/RECORD +505 -0
- {invenio_app_rdm-12.0.0.dev8.dist-info → invenio_app_rdm-14.0.0b1.dev8.dist-info}/WHEEL +1 -1
- invenio_app_rdm-14.0.0b1.dev8.dist-info/entry_points.txt +44 -0
- invenio_app_rdm/admin.py +0 -36
- invenio_app_rdm/stats/__init__.py +0 -24
- invenio_app_rdm/stats/event_builders.py +0 -112
- invenio_app_rdm/stats/permissions.py +0 -33
- invenio_app_rdm/stats/templates/aggregations/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/os-v1/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/os-v1/aggr-file-download-v1.0.0.json +0 -69
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/os-v2/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/os-v2/aggr-file-download-v1.0.0.json +0 -69
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/v7/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_file_download/v7/aggr-file-download-v1.0.0.json +0 -69
- invenio_app_rdm/stats/templates/aggregations/aggr_record_view/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_record_view/os-v1/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_record_view/os-v1/aggr-record-view-v1.0.0.json +0 -46
- invenio_app_rdm/stats/templates/aggregations/aggr_record_view/os-v2/__init__.py +0 -10
- invenio_app_rdm/stats/templates/aggregations/aggr_record_view/os-v2/aggr-record-view-v1.0.0.json +0 -46
- invenio_app_rdm/stats/templates/aggregations/aggr_record_view/v7/aggr-record-view-v1.0.0.json +0 -46
- invenio_app_rdm/stats/templates/events/__init__.py +0 -10
- invenio_app_rdm/stats/templates/events/file_download/__init__.py +0 -10
- invenio_app_rdm/stats/templates/events/file_download/os-v1/__init__.py +0 -10
- invenio_app_rdm/stats/templates/events/file_download/os-v1/file-download-v1.0.0.json +0 -93
- invenio_app_rdm/stats/templates/events/file_download/os-v2/__init__.py +0 -10
- invenio_app_rdm/stats/templates/events/file_download/os-v2/file-download-v1.0.0.json +0 -93
- invenio_app_rdm/stats/templates/events/file_download/v7/file-download-v1.0.0.json +0 -93
- invenio_app_rdm/stats/templates/events/record_view/os-v1/__init__.py +0 -10
- invenio_app_rdm/stats/templates/events/record_view/os-v1/record-view-v1.0.0.json +0 -70
- invenio_app_rdm/stats/templates/events/record_view/os-v2/__init__.py +0 -10
- invenio_app_rdm/stats/templates/events/record_view/os-v2/record-view-v1.0.0.json +0 -70
- invenio_app_rdm/stats/templates/events/record_view/v7/record-view-v1.0.0.json +0 -70
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareModal.js +0 -262
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/requests_items/ComputerTabletRequestsItem.js +0 -74
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/requests_items/MobileRequestsItem.js +0 -70
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/i18next-scanner.config.js +0 -64
- 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 -87
- 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 -87
- 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 -87
- 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 -87
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/package-lock.json +0 -1512
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/scripts/compileCatalog.js +0 -40
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/scripts/initCatalog.js +0 -20
- invenio_app_rdm/theme/static/robots.txt +0 -5
- 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/et_EE/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/et_EE/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/rw/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/rw/LC_MESSAGES/messages.po +0 -728
- invenio_app_rdm-12.0.0.dev8.dist-info/AUTHORS.rst +0 -11
- invenio_app_rdm-12.0.0.dev8.dist-info/METADATA +0 -103
- invenio_app_rdm-12.0.0.dev8.dist-info/RECORD +0 -402
- invenio_app_rdm-12.0.0.dev8.dist-info/entry_points.txt +0 -26
- /invenio_app_rdm/{translations/.gitkeep → theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/UserModerationBulkActions.js} +0 -0
- {invenio_app_rdm-12.0.0.dev8.dist-info → invenio_app_rdm-14.0.0b1.dev8.dist-info/licenses}/LICENSE +0 -0
- {invenio_app_rdm-12.0.0.dev8.dist-info → invenio_app_rdm-14.0.0b1.dev8.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* // This file is part of Invenio-App-Rdm
|
|
3
|
+
* // Copyright (C) 2025 CERN.
|
|
4
|
+
* // Copyright (C) 2025 Graz University of Technology.
|
|
5
|
+
* //
|
|
6
|
+
* // Invenio-App-Rdm is free software; you can redistribute it and/or modify it
|
|
7
|
+
* // under the terms of the MIT License; see LICENSE file for more details.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import React, { Component } from "react";
|
|
11
|
+
import PropTypes from "prop-types";
|
|
12
|
+
import { Grid, Container } from "semantic-ui-react";
|
|
13
|
+
import { Differ, Viewer } from "json-diff-kit";
|
|
14
|
+
|
|
15
|
+
export class RevisionsDiffViewer extends Component {
|
|
16
|
+
constructor(props) {
|
|
17
|
+
super(props);
|
|
18
|
+
this.differ = new Differ({
|
|
19
|
+
detectCircular: true,
|
|
20
|
+
maxDepth: null,
|
|
21
|
+
showModifications: true,
|
|
22
|
+
arrayDiffMethod: "lcs",
|
|
23
|
+
ignoreCase: false,
|
|
24
|
+
ignoreCaseForKey: false,
|
|
25
|
+
recursiveEqual: true,
|
|
26
|
+
});
|
|
27
|
+
this.state = {
|
|
28
|
+
currentDiff: undefined,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
componentDidUpdate(prevProps) {
|
|
33
|
+
const { diff } = this.props;
|
|
34
|
+
|
|
35
|
+
if (diff !== prevProps.diff) {
|
|
36
|
+
this.computeDiff();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
computeDiff = () => {
|
|
41
|
+
const { diff } = this.props;
|
|
42
|
+
const _diff = this.differ.diff(diff?.srcRevision, diff?.targetRevision);
|
|
43
|
+
this.setState({ currentDiff: _diff });
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
render() {
|
|
47
|
+
const { currentDiff, viewerProps } = this.state;
|
|
48
|
+
|
|
49
|
+
return currentDiff ? (
|
|
50
|
+
<Grid>
|
|
51
|
+
<Grid.Column width={16}>
|
|
52
|
+
<Container fluid>
|
|
53
|
+
<Viewer diff={currentDiff} {...viewerProps} />
|
|
54
|
+
</Container>
|
|
55
|
+
</Grid.Column>
|
|
56
|
+
</Grid>
|
|
57
|
+
) : null;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
RevisionsDiffViewer.propTypes = {
|
|
62
|
+
diff: PropTypes.object,
|
|
63
|
+
viewerProps: PropTypes.object,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
RevisionsDiffViewer.defaultProps = {
|
|
67
|
+
diff: {},
|
|
68
|
+
viewerProps: {
|
|
69
|
+
indent: 4,
|
|
70
|
+
lineNumbers: true,
|
|
71
|
+
highlightInlineDiff: true,
|
|
72
|
+
inlineDiffOptions: {
|
|
73
|
+
mode: "word",
|
|
74
|
+
wordSeparator: " ",
|
|
75
|
+
},
|
|
76
|
+
hideUnchangedLines: true,
|
|
77
|
+
syntaxHighlight: false,
|
|
78
|
+
virtual: true,
|
|
79
|
+
},
|
|
80
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* // This file is part of Invenio-App-Rdm
|
|
3
|
+
* // Copyright (C) 2023-2024 CERN.
|
|
4
|
+
* //
|
|
5
|
+
* // Invenio-App-Rdm 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
|
+
*/
|
|
8
|
+
|
|
9
|
+
import React, { Component } from "react";
|
|
10
|
+
import PropTypes from "prop-types";
|
|
11
|
+
import { Button, Modal, Icon, Checkbox } from "semantic-ui-react";
|
|
12
|
+
import { ActionModal } from "@js/invenio_administration";
|
|
13
|
+
import { SetQuotaForm } from "./SetQuotaForm";
|
|
14
|
+
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
|
15
|
+
|
|
16
|
+
export class SetQuotaAction extends Component {
|
|
17
|
+
constructor(props) {
|
|
18
|
+
super(props);
|
|
19
|
+
this.state = {
|
|
20
|
+
modalOpen: false,
|
|
21
|
+
setQuotaInBytes: false,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
onModalTriggerClick = (e, { payloadSchema, dataName, dataActionKey }) => {
|
|
26
|
+
this.setState({ modalOpen: true });
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
closeModal = () => {
|
|
30
|
+
this.setState({
|
|
31
|
+
modalOpen: false,
|
|
32
|
+
setQuotaInBytes: false,
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
handleSuccess = () => {
|
|
37
|
+
const { successCallback } = this.props;
|
|
38
|
+
this.setState({ modalOpen: false });
|
|
39
|
+
successCallback();
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
setQuotaValueInBytes = (event, data) => {
|
|
43
|
+
const { checked } = data;
|
|
44
|
+
this.setState({ setQuotaInBytes: checked });
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
render() {
|
|
48
|
+
const { resource, apiUrl, headerText, isRecord } = this.props;
|
|
49
|
+
const { modalOpen, setQuotaInBytes } = this.state;
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<>
|
|
53
|
+
<Button
|
|
54
|
+
key="set-quota"
|
|
55
|
+
onClick={this.onModalTriggerClick}
|
|
56
|
+
icon
|
|
57
|
+
fluid
|
|
58
|
+
basic
|
|
59
|
+
labelPosition="left"
|
|
60
|
+
>
|
|
61
|
+
<Icon name="disk" />
|
|
62
|
+
{i18next.t("Set Quota")}
|
|
63
|
+
</Button>
|
|
64
|
+
|
|
65
|
+
<ActionModal modalOpen={modalOpen} resource={resource}>
|
|
66
|
+
<Modal.Header className="flex justify-space-between">
|
|
67
|
+
<div>{headerText}</div>
|
|
68
|
+
<div>
|
|
69
|
+
<Checkbox
|
|
70
|
+
toggle
|
|
71
|
+
label={i18next.t("Set quota in bytes")}
|
|
72
|
+
onChange={this.setQuotaValueInBytes}
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
</Modal.Header>
|
|
76
|
+
{!isRecord && (
|
|
77
|
+
<Modal.Content>
|
|
78
|
+
<p>
|
|
79
|
+
<strong>{i18next.t("Note")}:</strong>{" "}
|
|
80
|
+
{i18next.t(
|
|
81
|
+
"This is the default quota that will be applied to any NEW records created by this user - it will NOT update quota of existing records."
|
|
82
|
+
)}
|
|
83
|
+
</p>
|
|
84
|
+
</Modal.Content>
|
|
85
|
+
)}
|
|
86
|
+
<SetQuotaForm
|
|
87
|
+
actionSuccessCallback={this.handleSuccess}
|
|
88
|
+
actionCancelCallback={this.closeModal}
|
|
89
|
+
resource={resource}
|
|
90
|
+
apiUrl={apiUrl}
|
|
91
|
+
setQuotaInBytes={setQuotaInBytes}
|
|
92
|
+
/>
|
|
93
|
+
</ActionModal>
|
|
94
|
+
</>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
SetQuotaAction.propTypes = {
|
|
100
|
+
resource: PropTypes.object.isRequired,
|
|
101
|
+
successCallback: PropTypes.func.isRequired,
|
|
102
|
+
apiUrl: PropTypes.string.isRequired,
|
|
103
|
+
headerText: PropTypes.string.isRequired,
|
|
104
|
+
isRecord: PropTypes.bool,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
SetQuotaAction.defaultProps = {
|
|
108
|
+
isRecord: false,
|
|
109
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* // This file is part of Invenio-App-Rdm
|
|
3
|
+
* // Copyright (C) 2023 CERN.
|
|
4
|
+
* //
|
|
5
|
+
* // Invenio-App-Rdm 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
|
+
*/
|
|
8
|
+
|
|
9
|
+
import React, { Component } from "react";
|
|
10
|
+
import PropTypes from "prop-types";
|
|
11
|
+
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
|
12
|
+
import { Formik } from "formik";
|
|
13
|
+
import {
|
|
14
|
+
withCancel,
|
|
15
|
+
ErrorMessage,
|
|
16
|
+
TextField,
|
|
17
|
+
TextAreaField,
|
|
18
|
+
http,
|
|
19
|
+
} from "react-invenio-forms";
|
|
20
|
+
import { Form, Button, Modal } from "semantic-ui-react";
|
|
21
|
+
import { NotificationContext } from "@js/invenio_administration";
|
|
22
|
+
import * as Yup from "yup";
|
|
23
|
+
|
|
24
|
+
export class SetQuotaForm extends Component {
|
|
25
|
+
constructor(props) {
|
|
26
|
+
super(props);
|
|
27
|
+
this.state = {
|
|
28
|
+
loading: false,
|
|
29
|
+
error: undefined,
|
|
30
|
+
};
|
|
31
|
+
this.tombstoneSchema = Yup.object({
|
|
32
|
+
quota_size: Yup.number().required().min(1),
|
|
33
|
+
max_file_size: Yup.number().required().min(1),
|
|
34
|
+
notes: Yup.string(),
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
componentWillUnmount() {
|
|
39
|
+
this.cancellableAction && this.cancellableAction.cancel();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static contextType = NotificationContext;
|
|
43
|
+
|
|
44
|
+
handleSubmit = async (values) => {
|
|
45
|
+
this.setState({ loading: true });
|
|
46
|
+
const { addNotification } = this.context;
|
|
47
|
+
const { resource, actionSuccessCallback, setQuotaInBytes, apiUrl } = this.props;
|
|
48
|
+
let { notes, quota_size: quotaSize, max_file_size: maxFileSize } = values;
|
|
49
|
+
|
|
50
|
+
const quotaInGb = !setQuotaInBytes && quotaSize;
|
|
51
|
+
|
|
52
|
+
if (!setQuotaInBytes) {
|
|
53
|
+
quotaSize *= 10 ** 9;
|
|
54
|
+
maxFileSize *= 10 ** 9;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
this.cancellableAction = withCancel(
|
|
58
|
+
http.post(apiUrl, {
|
|
59
|
+
notes,
|
|
60
|
+
quota_size: quotaSize,
|
|
61
|
+
max_file_size: maxFileSize,
|
|
62
|
+
})
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
try {
|
|
66
|
+
await this.cancellableAction.promise;
|
|
67
|
+
this.setState({ loading: false, error: undefined });
|
|
68
|
+
|
|
69
|
+
addNotification({
|
|
70
|
+
title: i18next.t("Success"),
|
|
71
|
+
content: i18next.t("Quota of {{id}} was set to {{quota}} {{unit}}", {
|
|
72
|
+
id: resource.id,
|
|
73
|
+
quota: quotaInGb || quotaSize,
|
|
74
|
+
unit: quotaInGb ? "GB" : "bytes",
|
|
75
|
+
}),
|
|
76
|
+
type: "success",
|
|
77
|
+
});
|
|
78
|
+
actionSuccessCallback();
|
|
79
|
+
} catch (error) {
|
|
80
|
+
if (error === "UNMOUNTED") return;
|
|
81
|
+
|
|
82
|
+
this.setState({
|
|
83
|
+
error: error?.response?.data?.message || error?.message,
|
|
84
|
+
loading: false,
|
|
85
|
+
});
|
|
86
|
+
console.error(error);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
handleModalClose = () => {
|
|
91
|
+
const { actionCancelCallback } = this.props;
|
|
92
|
+
actionCancelCallback();
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
initFormValues = () => {
|
|
96
|
+
// TODO take current quota
|
|
97
|
+
return {
|
|
98
|
+
quota_size: undefined,
|
|
99
|
+
max_file_size: undefined,
|
|
100
|
+
notes: undefined,
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
render() {
|
|
105
|
+
const { error, loading } = this.state;
|
|
106
|
+
const { setQuotaInBytes } = this.props;
|
|
107
|
+
|
|
108
|
+
return (
|
|
109
|
+
<Formik
|
|
110
|
+
onSubmit={this.handleSubmit}
|
|
111
|
+
enableReinitialize
|
|
112
|
+
initialValues={this.initFormValues()}
|
|
113
|
+
validateOnChange={false}
|
|
114
|
+
validateOnBlur={false}
|
|
115
|
+
validationSchema={this.tombstoneSchema}
|
|
116
|
+
>
|
|
117
|
+
{({ values, handleSubmit }) => {
|
|
118
|
+
return (
|
|
119
|
+
<>
|
|
120
|
+
{error && (
|
|
121
|
+
<Modal.Content>
|
|
122
|
+
<ErrorMessage
|
|
123
|
+
header={i18next.t("Unable to set quota.")}
|
|
124
|
+
content={i18next.t(error)}
|
|
125
|
+
icon="exclamation"
|
|
126
|
+
className="text-align-left"
|
|
127
|
+
negative
|
|
128
|
+
/>
|
|
129
|
+
</Modal.Content>
|
|
130
|
+
)}
|
|
131
|
+
<Modal.Content>
|
|
132
|
+
<Form className="full-width">
|
|
133
|
+
<Form.Field>
|
|
134
|
+
<TextField
|
|
135
|
+
required
|
|
136
|
+
fieldPath="quota_size"
|
|
137
|
+
label={i18next.t("Quota size ({{unit}})", {
|
|
138
|
+
unit: setQuotaInBytes ? "bytes" : "GB",
|
|
139
|
+
})}
|
|
140
|
+
placeholder={i18next.t("Enter quota size...")}
|
|
141
|
+
type="number"
|
|
142
|
+
/>
|
|
143
|
+
<TextField
|
|
144
|
+
required
|
|
145
|
+
fieldPath="max_file_size"
|
|
146
|
+
label={i18next.t("Max file size ({{unit}})", {
|
|
147
|
+
unit: setQuotaInBytes ? "bytes" : "GB",
|
|
148
|
+
})}
|
|
149
|
+
placeholder={i18next.t("Enter max file size...")}
|
|
150
|
+
type="number"
|
|
151
|
+
/>
|
|
152
|
+
</Form.Field>
|
|
153
|
+
<Form.Field>
|
|
154
|
+
<TextAreaField
|
|
155
|
+
fieldPath="notes"
|
|
156
|
+
label={i18next.t("Note")}
|
|
157
|
+
fluid
|
|
158
|
+
placeholder={i18next.t("Ticket 1234")}
|
|
159
|
+
/>
|
|
160
|
+
</Form.Field>
|
|
161
|
+
</Form>
|
|
162
|
+
</Modal.Content>
|
|
163
|
+
<Modal.Actions>
|
|
164
|
+
<Button onClick={this.handleModalClose} floated="left">
|
|
165
|
+
{i18next.t("Close")}
|
|
166
|
+
</Button>
|
|
167
|
+
<Button
|
|
168
|
+
size="small"
|
|
169
|
+
labelPosition="left"
|
|
170
|
+
icon="check"
|
|
171
|
+
color="green"
|
|
172
|
+
content={i18next.t("Set quota")}
|
|
173
|
+
onClick={(event) => handleSubmit(event)}
|
|
174
|
+
loading={loading}
|
|
175
|
+
disabled={loading}
|
|
176
|
+
/>
|
|
177
|
+
</Modal.Actions>
|
|
178
|
+
</>
|
|
179
|
+
);
|
|
180
|
+
}}
|
|
181
|
+
</Formik>
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
SetQuotaForm.propTypes = {
|
|
187
|
+
resource: PropTypes.object.isRequired,
|
|
188
|
+
actionSuccessCallback: PropTypes.func.isRequired,
|
|
189
|
+
actionCancelCallback: PropTypes.func.isRequired,
|
|
190
|
+
apiUrl: PropTypes.string.isRequired,
|
|
191
|
+
setQuotaInBytes: PropTypes.bool,
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
SetQuotaForm.defaultProps = {
|
|
195
|
+
setQuotaInBytes: false,
|
|
196
|
+
};
|
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* // This file is part of Invenio-App-Rdm
|
|
3
|
+
* // Copyright (C) 2023 CERN.
|
|
4
|
+
* //
|
|
5
|
+
* // Invenio-App-Rdm 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
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { SetQuotaAction } from "./SetQuotaAction";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// This file is part of InvenioCommunities
|
|
2
|
+
// Copyright (C) 2024 CERN.
|
|
3
|
+
//
|
|
4
|
+
// Invenio RDM is free software; you can redistribute it and/or modify it
|
|
5
|
+
// under the terms of the MIT License; see LICENSE file for more details.
|
|
6
|
+
|
|
7
|
+
import { initDefaultSearchComponents } from "@js/invenio_administration";
|
|
8
|
+
import { createSearchAppInit } from "@js/invenio_search_ui";
|
|
9
|
+
import { NotificationController } from "@js/invenio_administration";
|
|
10
|
+
import { SearchResultItemLayout } from "./search";
|
|
11
|
+
|
|
12
|
+
const domContainer = document.getElementById("invenio-search-config");
|
|
13
|
+
|
|
14
|
+
const defaultComponents = initDefaultSearchComponents(domContainer);
|
|
15
|
+
|
|
16
|
+
const overridenComponents = {
|
|
17
|
+
...defaultComponents,
|
|
18
|
+
"InvenioAdministration.SearchResultItem.layout": SearchResultItemLayout,
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
createSearchAppInit(
|
|
22
|
+
overridenComponents,
|
|
23
|
+
true,
|
|
24
|
+
"invenio-search-config",
|
|
25
|
+
false,
|
|
26
|
+
NotificationController
|
|
27
|
+
);
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of Invenio.
|
|
3
|
+
* Copyright (C) 2022-2024 CERN.
|
|
4
|
+
*
|
|
5
|
+
* Invenio 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
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { BoolFormatter, Actions } from "@js/invenio_administration";
|
|
10
|
+
import PropTypes from "prop-types";
|
|
11
|
+
import React, { Component } from "react";
|
|
12
|
+
import { Table, Dropdown, Icon, Button } from "semantic-ui-react";
|
|
13
|
+
import { withState } from "react-searchkit";
|
|
14
|
+
import { AdminUIRoutes } from "@js/invenio_administration/src/routes";
|
|
15
|
+
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
|
16
|
+
|
|
17
|
+
class SearchResultItemComponent extends Component {
|
|
18
|
+
refreshAfterAction = () => {
|
|
19
|
+
const { updateQueryState, currentQueryState } = this.props;
|
|
20
|
+
updateQueryState(currentQueryState);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
render() {
|
|
24
|
+
const {
|
|
25
|
+
title,
|
|
26
|
+
resourceName,
|
|
27
|
+
result,
|
|
28
|
+
displayEdit,
|
|
29
|
+
displayDelete,
|
|
30
|
+
actions,
|
|
31
|
+
idKeyPath,
|
|
32
|
+
listUIEndpoint,
|
|
33
|
+
} = this.props;
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<Table.Row>
|
|
37
|
+
{/*<Table.Cell>*/}
|
|
38
|
+
{/*We pass user ID to bulk actions - user moderation API takes user IDs*/}
|
|
39
|
+
{/*<SearchResultsRowCheckbox rowId={userId} data={result} />*/}
|
|
40
|
+
{/*</Table.Cell>*/}
|
|
41
|
+
<Table.Cell key={`domain-column-${result.id}`} data-label={i18next.t("Domain")}>
|
|
42
|
+
<a href={result.links.admin_self_html}>{result.domain}</a>
|
|
43
|
+
<BoolFormatter
|
|
44
|
+
tooltip={i18next.t("Flagged")}
|
|
45
|
+
icon="flag"
|
|
46
|
+
color="red"
|
|
47
|
+
value={result.flagged}
|
|
48
|
+
/>
|
|
49
|
+
<BoolFormatter
|
|
50
|
+
tooltip={i18next.t("Organization")}
|
|
51
|
+
icon="university"
|
|
52
|
+
color="black"
|
|
53
|
+
value={result.status_name === "organization"}
|
|
54
|
+
/>
|
|
55
|
+
<BoolFormatter
|
|
56
|
+
tooltip={i18next.t("Company")}
|
|
57
|
+
icon="building outline"
|
|
58
|
+
color="black"
|
|
59
|
+
value={result.category_name === "company"}
|
|
60
|
+
/>
|
|
61
|
+
<BoolFormatter
|
|
62
|
+
tooltip={i18next.t("Mail provider")}
|
|
63
|
+
icon="mail outline"
|
|
64
|
+
color="black"
|
|
65
|
+
value={result.status_name === "mail-provider"}
|
|
66
|
+
/>
|
|
67
|
+
<BoolFormatter
|
|
68
|
+
tooltip={i18next.t("Spammer")}
|
|
69
|
+
icon="warning"
|
|
70
|
+
color="yellow"
|
|
71
|
+
value={result.status_name === "spammer"}
|
|
72
|
+
/>
|
|
73
|
+
</Table.Cell>
|
|
74
|
+
<Table.Cell key={`domain-tld-${result.id}`} data-label={i18next.t("TLD")}>
|
|
75
|
+
{result.tld}
|
|
76
|
+
</Table.Cell>
|
|
77
|
+
<Table.Cell key={`domain-status-${result.id}`} data-label={i18next.t("Status")}>
|
|
78
|
+
<BoolFormatter
|
|
79
|
+
tooltip={i18next.t("New")}
|
|
80
|
+
icon="hourglass end"
|
|
81
|
+
color="grey"
|
|
82
|
+
value={result.status_name === "new"}
|
|
83
|
+
/>
|
|
84
|
+
<BoolFormatter
|
|
85
|
+
tooltip={i18next.t("Moderated")}
|
|
86
|
+
icon="eye"
|
|
87
|
+
color="grey"
|
|
88
|
+
value={result.status_name === "moderated"}
|
|
89
|
+
/>
|
|
90
|
+
<BoolFormatter
|
|
91
|
+
tooltip={i18next.t("Verified")}
|
|
92
|
+
icon="check"
|
|
93
|
+
color="green"
|
|
94
|
+
value={result.status_name === "verified"}
|
|
95
|
+
/>
|
|
96
|
+
<BoolFormatter
|
|
97
|
+
tooltip={i18next.t("Blocked")}
|
|
98
|
+
icon="ban"
|
|
99
|
+
color="red"
|
|
100
|
+
value={result.status_name === "blocked"}
|
|
101
|
+
/>
|
|
102
|
+
</Table.Cell>
|
|
103
|
+
<Table.Cell key={`domain-users-${result.id}`} data-label={i18next.t("Users")}>
|
|
104
|
+
{result.num_users}
|
|
105
|
+
</Table.Cell>
|
|
106
|
+
<Table.Cell key={`domain-active-${result.id}`} data-label={i18next.t("Active")}>
|
|
107
|
+
{result.num_active}
|
|
108
|
+
</Table.Cell>
|
|
109
|
+
<Table.Cell
|
|
110
|
+
key={`domain-inactive-${result.id}`}
|
|
111
|
+
data-label={i18next.t("Inactive")}
|
|
112
|
+
>
|
|
113
|
+
{result.num_inactive}
|
|
114
|
+
</Table.Cell>
|
|
115
|
+
<Table.Cell
|
|
116
|
+
key={`domain-confirmed-${result.id}`}
|
|
117
|
+
data-label={i18next.t("Confirmed")}
|
|
118
|
+
>
|
|
119
|
+
{result.num_confirmed}
|
|
120
|
+
</Table.Cell>
|
|
121
|
+
<Table.Cell
|
|
122
|
+
key={`domain-verified-${result.id}`}
|
|
123
|
+
data-label={i18next.t("Verified")}
|
|
124
|
+
>
|
|
125
|
+
{result.num_verified}
|
|
126
|
+
</Table.Cell>
|
|
127
|
+
<Table.Cell
|
|
128
|
+
key={`domain-blocked-${result.id}`}
|
|
129
|
+
data-label={i18next.t("Blocked")}
|
|
130
|
+
>
|
|
131
|
+
{result.num_blocked}
|
|
132
|
+
</Table.Cell>
|
|
133
|
+
<Table.Cell
|
|
134
|
+
collapsing
|
|
135
|
+
key={`domain-links-${result.id}`}
|
|
136
|
+
data-label={i18next.t("Links")}
|
|
137
|
+
className="word-break-all"
|
|
138
|
+
>
|
|
139
|
+
<Dropdown text={<Icon name="eye" />}>
|
|
140
|
+
<Dropdown.Menu>
|
|
141
|
+
<Dropdown.Item
|
|
142
|
+
as="a"
|
|
143
|
+
href={result.links.admin_users_html}
|
|
144
|
+
text={i18next.t("Users")}
|
|
145
|
+
/>
|
|
146
|
+
</Dropdown.Menu>
|
|
147
|
+
</Dropdown>
|
|
148
|
+
</Table.Cell>
|
|
149
|
+
<Table.Cell collapsing>
|
|
150
|
+
<Button.Group size="tiny" basic widths={5} compact className="margined">
|
|
151
|
+
<Actions
|
|
152
|
+
title={title}
|
|
153
|
+
resourceName={resourceName}
|
|
154
|
+
editUrl={AdminUIRoutes.editView(listUIEndpoint, result, idKeyPath)}
|
|
155
|
+
displayEdit={displayEdit}
|
|
156
|
+
displayDelete={displayDelete}
|
|
157
|
+
actions={actions}
|
|
158
|
+
resource={result}
|
|
159
|
+
idKeyPath={idKeyPath}
|
|
160
|
+
successCallback={this.refreshAfterAction}
|
|
161
|
+
listUIEndpoint={listUIEndpoint}
|
|
162
|
+
/>
|
|
163
|
+
</Button.Group>
|
|
164
|
+
</Table.Cell>
|
|
165
|
+
</Table.Row>
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
SearchResultItemComponent.propTypes = {
|
|
171
|
+
actions: PropTypes.object.isRequired,
|
|
172
|
+
currentQueryState: PropTypes.object.isRequired,
|
|
173
|
+
displayDelete: PropTypes.bool.isRequired,
|
|
174
|
+
displayEdit: PropTypes.bool.isRequired,
|
|
175
|
+
idKeyPath: PropTypes.string.isRequired,
|
|
176
|
+
listUIEndpoint: PropTypes.string.isRequired,
|
|
177
|
+
resourceName: PropTypes.string.isRequired,
|
|
178
|
+
result: PropTypes.object.isRequired,
|
|
179
|
+
title: PropTypes.string.isRequired,
|
|
180
|
+
updateQueryState: PropTypes.func.isRequired,
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
SearchResultItemComponent.defaultProps = {};
|
|
184
|
+
|
|
185
|
+
export const SearchResultItemLayout = withState(SearchResultItemComponent);
|
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/search/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* This file is part of Invenio.
|
|
3
|
+
* Copyright (C) 2024 CERN.
|
|
4
|
+
*
|
|
5
|
+
* Invenio 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
|
+
*/
|
|
8
|
+
|
|
9
|
+
export { SearchResultItemLayout } from "./SearchResultItemLayout";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This file is part of InvenioCommunities
|
|
2
|
+
// Copyright (C) 2023 CERN.
|
|
3
|
+
//
|
|
4
|
+
// Invenio RDM is free software; you can redistribute it and/or modify it
|
|
5
|
+
// under the terms of the MIT License; see LICENSE file for more details.
|
|
6
|
+
|
|
7
|
+
import { initDefaultSearchComponents } from "@js/invenio_administration";
|
|
8
|
+
import { createSearchAppInit } from "@js/invenio_search_ui";
|
|
9
|
+
import { NotificationController } from "@js/invenio_administration";
|
|
10
|
+
import { RecordResourceActions } from "../records/RecordResourceActions";
|
|
11
|
+
import { SearchResultItemLayout } from "../records/search";
|
|
12
|
+
import { SearchFacets } from "@js/invenio_administration";
|
|
13
|
+
|
|
14
|
+
const domContainer = document.getElementById("invenio-search-config");
|
|
15
|
+
|
|
16
|
+
const defaultComponents = initDefaultSearchComponents(domContainer);
|
|
17
|
+
|
|
18
|
+
const overridenComponents = {
|
|
19
|
+
...defaultComponents,
|
|
20
|
+
"InvenioAdministration.SearchResultItem.layout": SearchResultItemLayout,
|
|
21
|
+
// "SearchApp.layout": RecordSearchLayout,
|
|
22
|
+
"SearchApp.facets": SearchFacets,
|
|
23
|
+
"InvenioAdministration.ResourceActions": RecordResourceActions,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
createSearchAppInit(
|
|
27
|
+
overridenComponents,
|
|
28
|
+
true,
|
|
29
|
+
"invenio-search-config",
|
|
30
|
+
false,
|
|
31
|
+
NotificationController
|
|
32
|
+
);
|