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
invenio_app_rdm/__init__.py
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
|
-
# Copyright (C) 2019-
|
|
3
|
+
# Copyright (C) 2019-2025 CERN.
|
|
4
4
|
# Copyright (C) 2019-2022 Northwestern University.
|
|
5
|
+
# Copyright (C) 2024-2025 Graz University of Technology.
|
|
5
6
|
#
|
|
6
7
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
7
8
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -16,6 +17,6 @@
|
|
|
16
17
|
#
|
|
17
18
|
# See PEP 0440 for details - https://www.python.org/dev/peps/pep-0440
|
|
18
19
|
|
|
19
|
-
__version__ = "
|
|
20
|
+
__version__ = "14.0.0b1.dev8"
|
|
20
21
|
|
|
21
22
|
__all__ = ("__version__",)
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
|
-
# This file is part of Invenio.
|
|
4
|
-
# Copyright (C) 2019 CERN.
|
|
5
3
|
# Copyright (C) 2023 CERN.
|
|
6
4
|
#
|
|
7
5
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
8
6
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
9
7
|
|
|
10
|
-
"""
|
|
8
|
+
"""Invenio app rdm administration module."""
|
invenio_app_rdm/{stats/templates/events/record_view → administration/audit_logs}/__init__.py
RENAMED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
|
-
#
|
|
4
|
-
# Copyright (C) 2018 CERN.
|
|
5
|
-
# Copyright (C) 2023 TU Wien.
|
|
3
|
+
# Copyright (C) 2025 CERN.
|
|
6
4
|
#
|
|
7
5
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
8
6
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
9
7
|
|
|
10
|
-
"""
|
|
8
|
+
"""Audit logs administration module."""
|
|
9
|
+
|
|
10
|
+
from .audit_logs import AuditLogListView
|
|
11
|
+
|
|
12
|
+
__all__ = "AuditLogListView"
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2025 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
|
+
"""Invenio administration view module for audit logs."""
|
|
9
|
+
from flask import current_app
|
|
10
|
+
from invenio_administration.views.base import AdminResourceListView
|
|
11
|
+
from invenio_i18n import lazy_gettext as _
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AuditLogListView(AdminResourceListView):
|
|
15
|
+
"""Audit logs admin search view."""
|
|
16
|
+
|
|
17
|
+
api_endpoint = "/audit-logs/"
|
|
18
|
+
extension_name = "invenio-audit-logs"
|
|
19
|
+
name = "audit-logs"
|
|
20
|
+
resource_config = "audit_log_resource"
|
|
21
|
+
|
|
22
|
+
title = "Audit Logs"
|
|
23
|
+
menu_label = "Audit Logs"
|
|
24
|
+
category = "Logs"
|
|
25
|
+
pid_path = "id"
|
|
26
|
+
icon = "file alternate"
|
|
27
|
+
template = "invenio_app_rdm/administration/audit_logs.html"
|
|
28
|
+
order = 1
|
|
29
|
+
search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
30
|
+
|
|
31
|
+
display_search = True
|
|
32
|
+
display_delete = False
|
|
33
|
+
display_create = False
|
|
34
|
+
display_edit = False
|
|
35
|
+
|
|
36
|
+
item_field_list = {
|
|
37
|
+
"resource.type": {
|
|
38
|
+
"text": _("Resource"),
|
|
39
|
+
"order": 1,
|
|
40
|
+
"width": 2,
|
|
41
|
+
},
|
|
42
|
+
"resource.id": {
|
|
43
|
+
"text": _("Resource ID"),
|
|
44
|
+
"order": 2,
|
|
45
|
+
},
|
|
46
|
+
"action": {
|
|
47
|
+
"text": _("Action"),
|
|
48
|
+
"order": 3,
|
|
49
|
+
},
|
|
50
|
+
"user.id": {
|
|
51
|
+
"text": _("User"),
|
|
52
|
+
"order": 4,
|
|
53
|
+
},
|
|
54
|
+
"created": {
|
|
55
|
+
"text": _("Created"),
|
|
56
|
+
"order": 5,
|
|
57
|
+
},
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
actions = {
|
|
61
|
+
"view_log": {
|
|
62
|
+
"text": _("View Log"),
|
|
63
|
+
"payload_schema": None,
|
|
64
|
+
"order": 1,
|
|
65
|
+
},
|
|
66
|
+
"view_changes": {
|
|
67
|
+
"text": _("View Changes"),
|
|
68
|
+
"payload_schema": None,
|
|
69
|
+
"order": 2,
|
|
70
|
+
"show_for": ["record.publish"],
|
|
71
|
+
},
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
search_config_name = "AUDIT_LOGS_SEARCH"
|
|
75
|
+
search_facets_config_name = "AUDIT_LOGS_FACETS"
|
|
76
|
+
search_sort_config_name = "AUDIT_LOGS_SORT_OPTIONS"
|
|
77
|
+
|
|
78
|
+
@staticmethod
|
|
79
|
+
def disabled():
|
|
80
|
+
"""Disable the view on demand."""
|
|
81
|
+
return not current_app.config["AUDIT_LOGS_ENABLED"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 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
|
+
"""Invenio administration module for user resources."""
|
|
9
|
+
|
|
10
|
+
from .domains import (
|
|
11
|
+
DomainsCreateView,
|
|
12
|
+
DomainsDetailView,
|
|
13
|
+
DomainsEditView,
|
|
14
|
+
DomainsListView,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
__all__ = (
|
|
18
|
+
"DomainsCreateView",
|
|
19
|
+
"DomainsDetailView",
|
|
20
|
+
"DomainsEditView",
|
|
21
|
+
"DomainsListView",
|
|
22
|
+
)
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 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
|
+
"""Invenio administration domains view module."""
|
|
9
|
+
|
|
10
|
+
from invenio_administration.views.base import (
|
|
11
|
+
AdminResourceCreateView,
|
|
12
|
+
AdminResourceDetailView,
|
|
13
|
+
AdminResourceEditView,
|
|
14
|
+
AdminResourceListView,
|
|
15
|
+
)
|
|
16
|
+
from invenio_i18n import lazy_gettext as _
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class DomainAdminMixin:
|
|
20
|
+
"""Common admin properties."""
|
|
21
|
+
|
|
22
|
+
resource_config = "domains_resource"
|
|
23
|
+
extension_name = "invenio-users-resources"
|
|
24
|
+
|
|
25
|
+
api_endpoint = "/domains"
|
|
26
|
+
pid_path = "domain"
|
|
27
|
+
|
|
28
|
+
create_view_name = "domains_create"
|
|
29
|
+
list_view_name = "domains"
|
|
30
|
+
|
|
31
|
+
display_search = True
|
|
32
|
+
display_delete = True
|
|
33
|
+
display_create = True
|
|
34
|
+
display_edit = True
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class DomainsListView(DomainAdminMixin, AdminResourceListView):
|
|
38
|
+
"""Search admin view."""
|
|
39
|
+
|
|
40
|
+
name = "domains"
|
|
41
|
+
title = _("Domains")
|
|
42
|
+
menu_label = _("Domains")
|
|
43
|
+
category = _("Site management")
|
|
44
|
+
icon = "world"
|
|
45
|
+
|
|
46
|
+
item_field_list = {
|
|
47
|
+
"domain": {"text": _("Domain"), "order": 1, "width": 3},
|
|
48
|
+
"tld": {"text": _("TLD"), "order": 2, "width": 1},
|
|
49
|
+
"status_name": {"text": _("Status"), "order": 3, "width": 1},
|
|
50
|
+
"num_users": {"text": _("Users"), "order": 6, "width": 1},
|
|
51
|
+
"num_active": {"text": _("Active"), "order": 7, "width": 1},
|
|
52
|
+
"num_inactive": {"text": _("Inactive"), "order": 8, "width": 1},
|
|
53
|
+
"num_confirmed": {"text": _("Confirmed"), "order": 9, "width": 1},
|
|
54
|
+
"num_verified": {"text": _("Verified"), "order": 10, "width": 1},
|
|
55
|
+
"num_blocked": {"text": _("Blocked"), "order": 11, "width": 1},
|
|
56
|
+
"links": {"text": "", "order": 13, "width": 1},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
search_config_name = "USERS_RESOURCES_DOMAINS_SEARCH"
|
|
60
|
+
search_sort_config_name = "USERS_RESOURCES_DOMAINS_SORT_OPTIONS"
|
|
61
|
+
search_facets_config_name = "USERS_RESOURCES_DOMAINS_SEARCH_FACETS"
|
|
62
|
+
|
|
63
|
+
template = "invenio_app_rdm/administration/domains_search.html"
|
|
64
|
+
|
|
65
|
+
search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class FormMixin:
|
|
69
|
+
"""Mixin class for form fields."""
|
|
70
|
+
|
|
71
|
+
form_fields = {
|
|
72
|
+
"domain": {
|
|
73
|
+
"order": 1,
|
|
74
|
+
"text": _("Domain"),
|
|
75
|
+
"description": _("Domain name (all lowercase)"),
|
|
76
|
+
},
|
|
77
|
+
"status_name": {
|
|
78
|
+
"order": 2,
|
|
79
|
+
"required": True,
|
|
80
|
+
"text": _("Status"),
|
|
81
|
+
"description": _(
|
|
82
|
+
"Status of the domain. One of new (domain needs review), moderated (users in domain require moderation), verified (users in domain does not require moderation) or blocked (users cannot register using this domain)."
|
|
83
|
+
),
|
|
84
|
+
"options": [
|
|
85
|
+
{"title_l10n": "New", "id": "new"},
|
|
86
|
+
{"title_l10n": "Moderated", "id": "moderated"},
|
|
87
|
+
{"title_l10n": "Verified", "id": "verified"},
|
|
88
|
+
{"title_l10n": "Blocked", "id": "blocked"},
|
|
89
|
+
],
|
|
90
|
+
"placeholder": "Select a status",
|
|
91
|
+
},
|
|
92
|
+
"category_name": {
|
|
93
|
+
"order": 3,
|
|
94
|
+
"text": _("Category"),
|
|
95
|
+
"description": _("A label to categorise the domain."),
|
|
96
|
+
"options": [
|
|
97
|
+
# TODO: Needs to be dynmaically loaded from domain category table.
|
|
98
|
+
{"title_l10n": "Organization", "id": "organization"},
|
|
99
|
+
{"title_l10n": "Company", "id": "company"},
|
|
100
|
+
{"title_l10n": "Mail provider", "id": "mailprovider"},
|
|
101
|
+
{"title_l10n": "Spammer", "id": "spammer"},
|
|
102
|
+
],
|
|
103
|
+
"placeholder": "Select a category",
|
|
104
|
+
},
|
|
105
|
+
"flagged": {
|
|
106
|
+
"order": 4,
|
|
107
|
+
"text": _("Flagged"),
|
|
108
|
+
"description": _(
|
|
109
|
+
"Used by automatic processes to flag the domain as requiring review."
|
|
110
|
+
),
|
|
111
|
+
},
|
|
112
|
+
"flagged_source": {
|
|
113
|
+
"order": 5,
|
|
114
|
+
"text": _("Source of flag"),
|
|
115
|
+
"description": _("Which source flagged the domain."),
|
|
116
|
+
},
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
class DomainsCreateView(DomainAdminMixin, FormMixin, AdminResourceCreateView):
|
|
121
|
+
"""Configuration for Banner create view."""
|
|
122
|
+
|
|
123
|
+
name = "domains_create"
|
|
124
|
+
url = "/domains/create"
|
|
125
|
+
title = _("Create domain")
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class DomainsEditView(DomainAdminMixin, FormMixin, AdminResourceEditView):
|
|
129
|
+
"""Domain edit view."""
|
|
130
|
+
|
|
131
|
+
name = "domains_edit"
|
|
132
|
+
url = "/domains/<pid_value>/edit"
|
|
133
|
+
title = _("Edit domain")
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
class DomainsDetailView(DomainAdminMixin, AdminResourceDetailView):
|
|
137
|
+
"""Domain detail view."""
|
|
138
|
+
|
|
139
|
+
url = "/domains/<pid_value>"
|
|
140
|
+
name = "domains_details"
|
|
141
|
+
title = _("Domain details")
|
|
142
|
+
|
|
143
|
+
item_field_list = {
|
|
144
|
+
"domain": {"text": _("Domain"), "order": 1},
|
|
145
|
+
"tld": {"text": _("Top-level domain"), "order": 2},
|
|
146
|
+
"status_name": {"text": _("Status"), "order": 3},
|
|
147
|
+
"category_name": {"text": _("Category"), "order": 4},
|
|
148
|
+
"flagged": {"text": _("Flagged"), "order": 5},
|
|
149
|
+
"flagged_source": {"text": _("Source of flag"), "order": 6},
|
|
150
|
+
"created": {"text": _("Created"), "order": 7},
|
|
151
|
+
"updated": {"text": _("Updated"), "order": 8},
|
|
152
|
+
"org": {"text": _("Organisation"), "order": 9},
|
|
153
|
+
"num_users": {"text": _("Users"), "order": 10},
|
|
154
|
+
"num_active": {"text": _("Active"), "order": 11},
|
|
155
|
+
"num_inactive": {"text": _("Inactive"), "order": 12},
|
|
156
|
+
"num_confirmed": {"text": _("Confirmed"), "order": 13},
|
|
157
|
+
"num_verified": {"text": _("Verified"), "order": 14},
|
|
158
|
+
"num_blocked": {"text": _("Blocked"), "order": 15},
|
|
159
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2025 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
|
+
"""Requests moderation administration module."""
|
|
8
|
+
|
|
9
|
+
from .requests import ModerationRequestDetailView, ModerationRequestListView
|
|
10
|
+
|
|
11
|
+
__all__ = ("ModerationRequestListView", "ModerationRequestDetailView")
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2025 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
|
+
"""Invenio administration view module for requests moderation."""
|
|
8
|
+
|
|
9
|
+
from functools import partial
|
|
10
|
+
|
|
11
|
+
from flask import current_app, g
|
|
12
|
+
from flask_login import current_user
|
|
13
|
+
from invenio_administration.views.base import (
|
|
14
|
+
AdminResourceDetailView,
|
|
15
|
+
AdminResourceListView,
|
|
16
|
+
)
|
|
17
|
+
from invenio_i18n import lazy_gettext as _
|
|
18
|
+
from invenio_i18n.ext import current_i18n
|
|
19
|
+
from invenio_rdm_records.requests import RecordDeletion
|
|
20
|
+
from invenio_requests.proxies import current_requests
|
|
21
|
+
from invenio_search_ui.searchconfig import search_app_config
|
|
22
|
+
from invenio_users_resources.proxies import current_user_resources
|
|
23
|
+
from invenio_vocabularies.proxies import current_service as vocabulary_service
|
|
24
|
+
from marshmallow_utils.fields.babel import gettext_from_dict
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ModerationRequestListView(AdminResourceListView):
|
|
28
|
+
"""Requests moderation admin search view."""
|
|
29
|
+
|
|
30
|
+
api_endpoint = "/requests"
|
|
31
|
+
extension_name = "invenio-requests"
|
|
32
|
+
name = "requests"
|
|
33
|
+
resource_config = "requests_resource"
|
|
34
|
+
request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
35
|
+
title = _("Requests")
|
|
36
|
+
menu_label = _("Requests")
|
|
37
|
+
category = _("Moderation")
|
|
38
|
+
pid_path = "id"
|
|
39
|
+
icon = "mail"
|
|
40
|
+
template = "invenio_app_rdm/administration/requests.html"
|
|
41
|
+
order = 1
|
|
42
|
+
|
|
43
|
+
display_search = True
|
|
44
|
+
display_delete = False
|
|
45
|
+
display_create = False
|
|
46
|
+
display_edit = False
|
|
47
|
+
display_read = False
|
|
48
|
+
|
|
49
|
+
search_config_name = "APP_RDM_MODERATION_REQUEST_SEARCH"
|
|
50
|
+
search_facets_config_name = "APP_RDM_MODERATION_REQUEST_FACETS"
|
|
51
|
+
search_sort_config_name = "APP_RDM_MODERATION_REQUEST_SORT_OPTIONS"
|
|
52
|
+
|
|
53
|
+
item_field_list = {
|
|
54
|
+
"type": {"text": _("Type"), "order": 1, "width": 3},
|
|
55
|
+
"created": {"text": _("Created"), "order": 2, "width": 3},
|
|
56
|
+
"last_reply": {"text": _("Last reply"), "order": 3, "width": 3},
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def request_type(self):
|
|
61
|
+
"""Request type property."""
|
|
62
|
+
request_type = self.resource.service.request_type_registry.lookup(
|
|
63
|
+
"record-deletion"
|
|
64
|
+
)
|
|
65
|
+
return request_type
|
|
66
|
+
|
|
67
|
+
@classmethod
|
|
68
|
+
def get_service_schema(cls):
|
|
69
|
+
"""Get marshmallow schema of the assigned service."""
|
|
70
|
+
request_type = cls.resource.service.request_type_registry.lookup(
|
|
71
|
+
"record-deletion"
|
|
72
|
+
)
|
|
73
|
+
# handle dynamic schema class declaration for requests
|
|
74
|
+
schema_cls = request_type.marshmallow_schema()
|
|
75
|
+
schema = schema_cls()
|
|
76
|
+
return schema
|
|
77
|
+
|
|
78
|
+
@staticmethod
|
|
79
|
+
def disabled():
|
|
80
|
+
"""Disable the view on demand."""
|
|
81
|
+
return False
|
|
82
|
+
|
|
83
|
+
def init_search_config(self):
|
|
84
|
+
"""Build search view config."""
|
|
85
|
+
return partial(
|
|
86
|
+
search_app_config,
|
|
87
|
+
config_name=self.get_search_app_name(),
|
|
88
|
+
available_facets=current_app.config.get(self.search_facets_config_name),
|
|
89
|
+
sort_options=current_app.config[self.search_sort_config_name],
|
|
90
|
+
endpoint=self.get_api_endpoint(),
|
|
91
|
+
headers=self.get_search_request_headers(),
|
|
92
|
+
initial_filters=[["is_open", "true"]],
|
|
93
|
+
hidden_params=[
|
|
94
|
+
["expand", "1"],
|
|
95
|
+
["type", RecordDeletion.type_id],
|
|
96
|
+
],
|
|
97
|
+
pagination_options=(20, 50),
|
|
98
|
+
default_size=20,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class ModerationRequestDetailView(AdminResourceDetailView):
|
|
103
|
+
"""Configuration for moderation request detail view."""
|
|
104
|
+
|
|
105
|
+
url = "/requests/<pid_value>"
|
|
106
|
+
extension_name = "invenio-requests"
|
|
107
|
+
api_endpoint = "/requests"
|
|
108
|
+
name = "request_details"
|
|
109
|
+
resource_config = "requests_resource"
|
|
110
|
+
title = _("Request details")
|
|
111
|
+
display_delete = False
|
|
112
|
+
display_edit = False
|
|
113
|
+
|
|
114
|
+
pid_path = "id"
|
|
115
|
+
template = "invenio_app_rdm/administration/requests_details.html"
|
|
116
|
+
|
|
117
|
+
@classmethod
|
|
118
|
+
def get_service_schema(cls):
|
|
119
|
+
"""Get marshmallow schema of the assigned service."""
|
|
120
|
+
request_type = cls.resource.service.request_type_registry.lookup(
|
|
121
|
+
"record-deletion"
|
|
122
|
+
)
|
|
123
|
+
# handle dynamic schema class declaration for requests
|
|
124
|
+
schema_cls = request_type.marshmallow_schema()
|
|
125
|
+
schema = schema_cls()
|
|
126
|
+
return schema
|
|
127
|
+
|
|
128
|
+
def get_context(self, pid_value=None):
|
|
129
|
+
"""Create details view context."""
|
|
130
|
+
name = self.name
|
|
131
|
+
schema = self.get_service_schema()
|
|
132
|
+
serialized_schema = self._schema_to_json(schema)
|
|
133
|
+
fields = self.item_field_list
|
|
134
|
+
request = current_requests.requests_service.read(
|
|
135
|
+
id_=pid_value, identity=g.identity, expand=True
|
|
136
|
+
).to_dict()
|
|
137
|
+
avatar = current_user_resources.users_service.links_item_tpl.expand(
|
|
138
|
+
g.identity, current_user
|
|
139
|
+
)["avatar"]
|
|
140
|
+
permissions = []
|
|
141
|
+
if "reason" in request["payload"]:
|
|
142
|
+
reason_title = vocabulary_service.read(
|
|
143
|
+
g.identity,
|
|
144
|
+
("removalreasons", request["payload"]["reason"]),
|
|
145
|
+
).to_dict()
|
|
146
|
+
|
|
147
|
+
request["payload"]["reason_label"] = gettext_from_dict(
|
|
148
|
+
reason_title["title"],
|
|
149
|
+
current_i18n.locale,
|
|
150
|
+
current_app.config.get("BABEL_DEFAULT_LOCALE", "en"),
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
"invenio_request": request,
|
|
155
|
+
"user_avatar": avatar,
|
|
156
|
+
"permissions": permissions,
|
|
157
|
+
"request_headers": self.request_headers,
|
|
158
|
+
"name": name,
|
|
159
|
+
"resource_schema": serialized_schema,
|
|
160
|
+
"fields": fields,
|
|
161
|
+
"exclude_fields": self.item_field_exclude_list,
|
|
162
|
+
"ui_config": self.item_field_list,
|
|
163
|
+
"pid": pid_value,
|
|
164
|
+
"api_endpoint": self.get_api_endpoint(),
|
|
165
|
+
"title": self.title,
|
|
166
|
+
"list_endpoint": self.get_list_view_endpoint(),
|
|
167
|
+
"actions": self.serialize_actions(),
|
|
168
|
+
"pid_path": self.pid_path,
|
|
169
|
+
"display_edit": self.display_edit,
|
|
170
|
+
"display_delete": self.display_delete,
|
|
171
|
+
"list_ui_endpoint": self.get_list_view_endpoint(),
|
|
172
|
+
"resource_name": (
|
|
173
|
+
self.resource_name if self.resource_name else self.pid_path
|
|
174
|
+
),
|
|
175
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
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
|
+
"""Invenio app rdm records administration module."""
|
|
9
|
+
|
|
10
|
+
from invenio_app_rdm.administration.records.records import (
|
|
11
|
+
DraftAdminListView,
|
|
12
|
+
RecordAdminListView,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
__all__ = ("RecordAdminListView", "DraftAdminListView")
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2023-2025 CERN.
|
|
4
|
+
# Copyright (C) 2023 Graz University of Technology.
|
|
5
|
+
# Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
6
|
+
#
|
|
7
|
+
# Invenio-app-rdm is free software; you can redistribute it and/or
|
|
8
|
+
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
9
|
+
# details.
|
|
10
|
+
|
|
11
|
+
"""Invenio administration records and drafts list views."""
|
|
12
|
+
|
|
13
|
+
from functools import partial
|
|
14
|
+
|
|
15
|
+
from flask import current_app
|
|
16
|
+
from invenio_administration.views.base import AdminResourceListView
|
|
17
|
+
from invenio_i18n import lazy_gettext as _
|
|
18
|
+
from invenio_search_ui.searchconfig import search_app_config
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class RecordAdminListView(AdminResourceListView):
|
|
22
|
+
"""Configuration for the records list view."""
|
|
23
|
+
|
|
24
|
+
api_endpoint = "/records"
|
|
25
|
+
name = "records"
|
|
26
|
+
resource_config = "records_resource"
|
|
27
|
+
search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
28
|
+
title = _("Records")
|
|
29
|
+
menu_label = _("Records")
|
|
30
|
+
category = _("Deposits")
|
|
31
|
+
icon = "file"
|
|
32
|
+
template = "invenio_app_rdm/administration/records/records.html"
|
|
33
|
+
extension_name = "invenio-rdm-records"
|
|
34
|
+
order = 1
|
|
35
|
+
|
|
36
|
+
display_search = True
|
|
37
|
+
display_delete = False
|
|
38
|
+
display_edit = False
|
|
39
|
+
display_create = False
|
|
40
|
+
|
|
41
|
+
item_field_list = {
|
|
42
|
+
"title": {"text": _("Title"), "order": 1, "width": 6},
|
|
43
|
+
"owner": {"text": _("Owner"), "order": 2, "width": 1},
|
|
44
|
+
"created": {"text": _("Created"), "order": 4, "width": 2},
|
|
45
|
+
"files": {"text": _("Files"), "order": 5, "width": 1},
|
|
46
|
+
"stats": {"text": _("Stats"), "order": 6, "width": 1},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
actions = {
|
|
50
|
+
"delete": {
|
|
51
|
+
"text": _("Delete record"),
|
|
52
|
+
"payload_schema": None,
|
|
53
|
+
"order": 1,
|
|
54
|
+
},
|
|
55
|
+
"restore": {
|
|
56
|
+
"text": _("Restore record"),
|
|
57
|
+
"payload_schema": None,
|
|
58
|
+
"order": 1,
|
|
59
|
+
},
|
|
60
|
+
"compare": {
|
|
61
|
+
"text": _("Compare revisions"),
|
|
62
|
+
"payload_schema": None,
|
|
63
|
+
"order": 1,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
search_config_name = "RDM_SEARCH"
|
|
68
|
+
search_facets_config_name = "RDM_FACETS"
|
|
69
|
+
search_sort_config_name = "RDM_SORT_OPTIONS"
|
|
70
|
+
|
|
71
|
+
def _get_delete_schema(self):
|
|
72
|
+
return self.resource.service.config.schema_tombstone
|
|
73
|
+
|
|
74
|
+
@classmethod
|
|
75
|
+
def get_service_schema(cls):
|
|
76
|
+
"""Get marshmallow schema of the assigned service."""
|
|
77
|
+
schema = cls.resource.service.config.schema()
|
|
78
|
+
# handle dynamic schema class declaration for requests
|
|
79
|
+
return schema
|
|
80
|
+
|
|
81
|
+
def get_actions(self):
|
|
82
|
+
"""Get actions attribute."""
|
|
83
|
+
actions = super().get_actions()
|
|
84
|
+
actions["delete"]["payload_schema"] = self._get_delete_schema()
|
|
85
|
+
return actions
|
|
86
|
+
|
|
87
|
+
def init_search_config(self):
|
|
88
|
+
"""Build search view config."""
|
|
89
|
+
return partial(
|
|
90
|
+
search_app_config,
|
|
91
|
+
config_name=self.get_search_app_name(),
|
|
92
|
+
available_facets=current_app.config.get(self.search_facets_config_name),
|
|
93
|
+
sort_options=current_app.config[self.search_sort_config_name],
|
|
94
|
+
endpoint=self.get_api_endpoint(),
|
|
95
|
+
headers=self.get_search_request_headers(),
|
|
96
|
+
initial_filters=[["status", "P"]],
|
|
97
|
+
hidden_params=[
|
|
98
|
+
["expand", "1"],
|
|
99
|
+
["include_deleted", "1"],
|
|
100
|
+
],
|
|
101
|
+
pagination_options=(20, 50),
|
|
102
|
+
default_size=20,
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class DraftAdminListView(AdminResourceListView):
|
|
107
|
+
"""Configuration for the drafts list view."""
|
|
108
|
+
|
|
109
|
+
api_endpoint = "/user/records"
|
|
110
|
+
name = "drafts"
|
|
111
|
+
resource_config = "records_resource"
|
|
112
|
+
search_request_headers = {"Accept": "application/vnd.inveniordm.v1+json"}
|
|
113
|
+
title = _("Drafts")
|
|
114
|
+
menu_label = _("Drafts")
|
|
115
|
+
category = _("Deposits")
|
|
116
|
+
icon = "upload"
|
|
117
|
+
template = "invenio_app_rdm/administration/records/drafts.html"
|
|
118
|
+
extension_name = "invenio-rdm-records"
|
|
119
|
+
order = 2
|
|
120
|
+
|
|
121
|
+
display_search = True
|
|
122
|
+
display_delete = False
|
|
123
|
+
display_edit = False
|
|
124
|
+
display_create = False
|
|
125
|
+
|
|
126
|
+
item_field_list = {
|
|
127
|
+
"title": {"text": _("Title"), "order": 1, "width": 6},
|
|
128
|
+
"owner": {"text": _("Owner"), "order": 2, "width": 1},
|
|
129
|
+
"created": {"text": _("Created"), "order": 4, "width": 2},
|
|
130
|
+
"files": {"text": _("Files"), "order": 5, "width": 1},
|
|
131
|
+
"stats": {"text": _("Stats"), "order": 6, "width": 1},
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
actions = {
|
|
135
|
+
"set_quota": {
|
|
136
|
+
"text": _("Set quota"),
|
|
137
|
+
"payload_schema": None,
|
|
138
|
+
"order": 1,
|
|
139
|
+
},
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
search_config_name = "RDM_SEARCH_DRAFTS"
|
|
143
|
+
search_facets_config_name = "RDM_FACETS"
|
|
144
|
+
search_sort_config_name = "RDM_SORT_OPTIONS"
|
|
145
|
+
|
|
146
|
+
def init_search_config(self):
|
|
147
|
+
"""Build search view config."""
|
|
148
|
+
return partial(
|
|
149
|
+
search_app_config,
|
|
150
|
+
config_name=self.get_search_app_name(),
|
|
151
|
+
# records facets, not drafts to avoid published/unpublished
|
|
152
|
+
available_facets=current_app.config.get(self.search_facets_config_name),
|
|
153
|
+
sort_options=current_app.config[self.search_sort_config_name],
|
|
154
|
+
endpoint=self.get_api_endpoint(),
|
|
155
|
+
headers=self.get_search_request_headers(),
|
|
156
|
+
hidden_params=[
|
|
157
|
+
["expand", "1"],
|
|
158
|
+
["is_published", False],
|
|
159
|
+
["include_deleted", "1"],
|
|
160
|
+
],
|
|
161
|
+
pagination_options=(20, 50),
|
|
162
|
+
default_size=20,
|
|
163
|
+
)
|