invenio-app-rdm 8.0.0.dev9__py2.py3-none-any.whl → 14.0.0b4.dev4__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 +13 -4
- invenio_app_rdm/administration/__init__.py +8 -0
- invenio_app_rdm/administration/audit_logs/__init__.py +12 -0
- 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 +93 -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/administration/user_moderation/__init__.py +11 -0
- 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/administration/views/__init__.py +11 -0
- invenio_app_rdm/administration/views/ui.py +21 -0
- invenio_app_rdm/cli.py +95 -0
- invenio_app_rdm/communities_ui/__init__.py +9 -0
- invenio_app_rdm/communities_ui/searchapp.py +27 -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/records/index.html +24 -0
- invenio_app_rdm/communities_ui/views/__init__.py +13 -0
- invenio_app_rdm/communities_ui/views/communities.py +206 -0
- invenio_app_rdm/communities_ui/views/ui.py +93 -0
- invenio_app_rdm/config.py +1072 -182
- invenio_app_rdm/ext.py +157 -0
- invenio_app_rdm/fixtures/__init__.py +56 -0
- invenio_app_rdm/fixtures/data/oai_sets.yaml +6 -0
- invenio_app_rdm/fixtures/oai_sets.py +20 -0
- invenio_app_rdm/fixtures/pages/.gitkeep +1 -0
- invenio_app_rdm/fixtures/pages.py +76 -0
- invenio_app_rdm/records_ui/previewer/__init__.py +9 -0
- invenio_app_rdm/records_ui/previewer/iiif_simple.py +51 -0
- invenio_app_rdm/records_ui/searchapp.py +46 -232
- invenio_app_rdm/records_ui/sitemap.py +44 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/deposit.html +63 -18
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html +316 -169
- 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 +299 -167
- 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 +34 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/details.html +20 -15
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/export.html +18 -41
- 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 +33 -6
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/metrics.html +5 -9
- 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 +112 -90
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/subjects.html +21 -19
- 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 +3 -2
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/iiif_preview.html +3 -7
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html +69 -48
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html +234 -49
- 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 +170 -71
- 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/stats_popup.html +21 -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/search.html +3 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/tombstone.html +55 -12
- invenio_app_rdm/records_ui/utils.py +127 -2
- invenio_app_rdm/records_ui/views/__init__.py +114 -38
- invenio_app_rdm/records_ui/views/decorators.py +395 -117
- invenio_app_rdm/records_ui/views/deposits.py +414 -104
- invenio_app_rdm/records_ui/views/filters.py +118 -11
- invenio_app_rdm/records_ui/views/records.py +395 -66
- invenio_app_rdm/redirector/__init__.py +8 -0
- invenio_app_rdm/redirector/resource.py +106 -0
- invenio_app_rdm/redirector/views.py +18 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-inclusion/index.html +14 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-invitation/community_dashboard.html +38 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-invitation/user_dashboard.html +26 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-submission/index.html +129 -0
- 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 +78 -0
- 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/__init__.py +1 -3
- invenio_app_rdm/requests_ui/views/requests.py +345 -53
- invenio_app_rdm/requests_ui/views/ui.py +38 -9
- invenio_app_rdm/tasks.py +45 -0
- 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 +79 -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/UserModerationBulkActions.js +0 -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 +84 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSearchBarElement.js +44 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSingleSearchBarElement.js +46 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/components.js +3 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/index.js +66 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/CompactStats.js +52 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/CopyButton.js +61 -39
- 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 +189 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +788 -307
- 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 +27 -13
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/frontpage/RecordsList.js +165 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/frontpage/index.js +23 -0
- 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 +179 -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 +30 -16
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ExportDropdown.js +68 -0
- 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 +68 -73
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js +150 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesListModal.js +90 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesSearch.js +109 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesSearchItem.js +58 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/index.js +3 -0
- 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 +123 -43
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordVersionsList.js +143 -79
- 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 +111 -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 +236 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksTab.js +106 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessRequests/AccessRequestsTab.js +239 -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} +23 -6
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/ShareModal.js +252 -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 +92 -124
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/theme.js +131 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/index.js +13 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/mapping.js +12 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/AccessRequestExpiration.js +61 -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 +165 -299
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/index.js +48 -20
- 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 +164 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/base.js +210 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/communities.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/requests.js +78 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js +210 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads_items/ComputerTabletUploadsItem.js +155 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads_items/MobileUploadsItem.js +154 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js +85 -74
- 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 +26 -70
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/licenses.less +5 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/previewer/iiif_simple.less +16 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/form.overrides +170 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/form.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/grid.overrides +110 -17
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/grid.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/menu.overrides +395 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/menu.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.overrides +34 -8
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.variables +6 -9
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.overrides +185 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.variables +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.overrides +103 -15
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.variables +5 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.overrides +121 -13
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.variables +6 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/header.overrides +61 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/header.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/icon.overrides +29 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/icon.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/image.overrides +115 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/image.variables +4 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/input.overrides +50 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/input.variables +5 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/label.overrides +116 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/label.variables +0 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/list.overrides +68 -37
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/list.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/segment.overrides +80 -7
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/segment.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/reset.overrides +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/reset.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/site.overrides +557 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/site.variables +142 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/accordion.overrides +161 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/accordion.variables +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/checkbox.overrides +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/checkbox.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/dropdown.overrides +116 -12
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/dropdown.variables +4 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/modal.overrides +151 -0
- 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/tab.overrides +3 -23
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/tab.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/transition.overrides +67 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/transition.variables +3 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/theme.less +71 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.overrides +168 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.variables +2 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.overrides +463 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.variables +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.overrides +164 -10
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.variables +0 -0
- 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 +951 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ar/translations.json +307 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/bg/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/bg/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ca/messages.po +896 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ca/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/cs/messages.po +961 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/cs/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/da/messages.po +897 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/da/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de/messages.po +830 -160
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de/translations.json +282 -88
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/el/messages.po +883 -4
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/el/translations.json +259 -65
- 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 +290 -63
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es/messages.po +960 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et/messages.po +896 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr/messages.po +960 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hr/messages.po +901 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hr/translations.json +289 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu/messages.po +952 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/index.js +17 -6
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/it/messages.po +905 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/it/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ja/messages.po +889 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ja/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ka/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ka/translations.json +283 -0
- 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 +907 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/lt/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/no/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/no/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pl/messages.po +910 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pl/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pt/messages.po +901 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pt/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ro/messages.po +908 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ro/translations.json +289 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ru/messages.po +958 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ru/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sk/messages.po +908 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sk/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv/messages.po +951 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/tr/messages.po +952 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/tr/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk/messages.po +910 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_CN/messages.po +891 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_CN/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_TW/messages.po +889 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_TW/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/package.json +5 -8
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/translations.pot +872 -142
- invenio_app_rdm/theme/static/images/gnd-icon.svg +27 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/administration_page.html +19 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html +33 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html +31 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html +32 -79
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/frontpage.html +40 -57
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header.html +114 -76
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header_frontpage.html +16 -13
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header_login.html +151 -61
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.de.html +3 -3
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.en.html +12 -7
- 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.en.html +197 -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 +98 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/javascript.html +12 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/macros/records_list.html +50 -0
- 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 +63 -0
- 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/semantic-ui/invenio_previewer/latest_record.html +18 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_previewer/rdm_abstract_previewer.html +30 -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 +106 -37
- invenio_app_rdm/theme/webpack.py +72 -36
- invenio_app_rdm/translations/ar/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ar/LC_MESSAGES/messages.po +1389 -0
- invenio_app_rdm/translations/bg/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/bg/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ca/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ca/LC_MESSAGES/messages.po +1362 -0
- invenio_app_rdm/translations/cs/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/cs/LC_MESSAGES/messages.po +1398 -0
- invenio_app_rdm/translations/da/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/da/LC_MESSAGES/messages.po +1363 -0
- invenio_app_rdm/translations/de/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/de/LC_MESSAGES/messages.po +1085 -372
- invenio_app_rdm/translations/el/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/el/LC_MESSAGES/messages.po +987 -367
- invenio_app_rdm/translations/es/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/es/LC_MESSAGES/messages.po +1389 -0
- invenio_app_rdm/translations/et/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/et/LC_MESSAGES/messages.po +1364 -0
- invenio_app_rdm/translations/fa/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fa/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/fr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fr/LC_MESSAGES/messages.po +1390 -0
- invenio_app_rdm/translations/hr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hr/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/hu/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hu/LC_MESSAGES/messages.po +1402 -0
- invenio_app_rdm/translations/it/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/it/LC_MESSAGES/messages.po +1366 -0
- invenio_app_rdm/translations/ja/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ja/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ka/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ka/LC_MESSAGES/messages.po +1361 -0
- 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 +1361 -0
- invenio_app_rdm/translations/messages.pot +1046 -271
- invenio_app_rdm/translations/no/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/no/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/pl/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/pl/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/pt/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/pt/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ro/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ro/LC_MESSAGES/messages.po +1391 -0
- invenio_app_rdm/translations/ru/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ru/LC_MESSAGES/messages.po +1384 -0
- invenio_app_rdm/translations/sk/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sk/LC_MESSAGES/messages.po +1362 -0
- invenio_app_rdm/translations/sv/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sv/LC_MESSAGES/messages.po +1400 -0
- invenio_app_rdm/translations/tr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/tr/LC_MESSAGES/messages.po +1340 -63
- invenio_app_rdm/translations/uk/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/uk/LC_MESSAGES/messages.po +1363 -0
- invenio_app_rdm/translations/zh_CN/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/zh_CN/LC_MESSAGES/messages.po +1363 -0
- invenio_app_rdm/translations/zh_TW/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/zh_TW/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/upgrade_scripts/fix_migrated_records_from_1_0_to_2_0.py +1 -0
- invenio_app_rdm/upgrade_scripts/fix_migrated_records_from_8_0_to_9_0.py +90 -0
- invenio_app_rdm/upgrade_scripts/migrate_10_0_to_11_0.py +47 -0
- 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_13_0_to_14_0.py +268 -0
- invenio_app_rdm/upgrade_scripts/migrate_2_0_to_3_0.py +7 -3
- invenio_app_rdm/upgrade_scripts/migrate_3_0_to_4_0.py +4 -6
- invenio_app_rdm/upgrade_scripts/migrate_4_0_to_6_0.py +30 -43
- invenio_app_rdm/upgrade_scripts/migrate_6_0_to_7_0.py +1 -5
- invenio_app_rdm/upgrade_scripts/migrate_7_0_to_8_0.py +7 -11
- invenio_app_rdm/upgrade_scripts/migrate_8_0_to_9_0.py +98 -0
- invenio_app_rdm/upgrade_scripts/migrate_9_0_to_10_0.py +43 -0
- invenio_app_rdm/users/schemas.py +27 -0
- invenio_app_rdm/users_ui/__init__.py +9 -0
- invenio_app_rdm/users_ui/searchapp.py +53 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/base.html +21 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/communities.html +25 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/header.html +46 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/requests.html +24 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/uploads.html +25 -0
- invenio_app_rdm/users_ui/views/__init__.py +14 -0
- invenio_app_rdm/users_ui/views/dashboard.py +59 -0
- invenio_app_rdm/users_ui/views/ui.py +68 -0
- invenio_app_rdm/utils/files.py +120 -0
- invenio_app_rdm/views.py +21 -0
- invenio_app_rdm-14.0.0b4.dev4.dist-info/METADATA +627 -0
- invenio_app_rdm-14.0.0b4.dev4.dist-info/RECORD +508 -0
- {invenio_app_rdm-8.0.0.dev9.dist-info → invenio_app_rdm-14.0.0b4.dev4.dist-info}/WHEEL +1 -1
- invenio_app_rdm-14.0.0b4.dev4.dist-info/entry_points.txt +44 -0
- invenio_app_rdm/admin.py +0 -36
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/dashboard.html +0 -47
- invenio_app_rdm/records_ui/views/utils.py +0 -27
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/Image.js +0 -36
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareModal.js +0 -257
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/base.js +0 -140
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/communities.js +0 -200
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/requests.js +0 -394
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/uploads.js +0 -287
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/index.js +0 -155
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm_requests/menuTabInit.js +0 -24
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/deposit.less +0 -158
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/export_page.less +0 -20
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/footer.less +0 -88
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/frontpage.less +0 -97
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/details.less +0 -53
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/sidebar.less +0 -47
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page.less +0 -423
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/navbar.less +0 -305
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/search.less +0 -52
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme.less +0 -492
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/variables.less +0 -60
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm_requests/theme.less +0 -22
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/i18next-scanner.config.js +0 -63
- 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 -39
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/scripts/initCatalog.js +0 -20
- invenio_app_rdm/theme/templates/semantic-ui/invenio_requests/community-submission/index.html +0 -67
- invenio_app_rdm/version.py +0 -23
- invenio_app_rdm-8.0.0.dev9.dist-info/AUTHORS.rst +0 -11
- invenio_app_rdm-8.0.0.dev9.dist-info/METADATA +0 -74
- invenio_app_rdm-8.0.0.dev9.dist-info/RECORD +0 -179
- invenio_app_rdm-8.0.0.dev9.dist-info/entry_points.txt +0 -14
- /invenio_app_rdm/{translations/.gitkeep → fixtures/data/pages.yaml} +0 -0
- {invenio_app_rdm-8.0.0.dev9.dist-info → invenio_app_rdm-14.0.0b4.dev4.dist-info/licenses}/LICENSE +0 -0
- {invenio_app_rdm-8.0.0.dev9.dist-info → invenio_app_rdm-14.0.0b4.dev4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
This file is part of Invenio.
|
|
4
|
+
Copyright (C) 2016-2024 CERN.
|
|
5
|
+
|
|
6
|
+
Invenio 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
|
+
{#
|
|
11
|
+
Renders the request details page when requesting a subcommunity
|
|
12
|
+
#}
|
|
13
|
+
|
|
14
|
+
{% extends "invenio_requests/details/index.html" %}
|
|
15
|
+
|
|
16
|
+
{% set active_dashboard_menu_item = 'requests' %}
|
|
17
|
+
{% set active_community_header_menu_item = 'requests' %}
|
|
18
|
+
|
|
19
|
+
{%- block request_header %}
|
|
20
|
+
{% if permissions.can_search_requests %}
|
|
21
|
+
{% set back_button_url = url_for("invenio_communities.communities_requests", pid_value=community.slug) %}
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% from "invenio_requests/macros/request_header.html" import inclusion_request_header %}
|
|
24
|
+
{{ inclusion_request_header(
|
|
25
|
+
request=invenio_request,
|
|
26
|
+
record=record,
|
|
27
|
+
accepted=request_is_accepted,
|
|
28
|
+
back_button_url=back_button_url,
|
|
29
|
+
back_button_text=_("Back to requests")
|
|
30
|
+
) }}
|
|
31
|
+
{%- endblock request_header %}
|
|
32
|
+
|
|
33
|
+
{% block request_timeline %}
|
|
34
|
+
<div
|
|
35
|
+
class="ui container rdm-tab-container fluid rel-pt-2 ml-0-mobile mr-0-mobile"
|
|
36
|
+
id="request-community-submission-tab-container"
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
class="ui bottom attached tab segment active borderless p-0"
|
|
40
|
+
data-tab="conversation"
|
|
41
|
+
role="tabpanel"
|
|
42
|
+
aria-labelledby="conversation-tab"
|
|
43
|
+
id="conversation-tab-panel"
|
|
44
|
+
>
|
|
45
|
+
{{ super() }}
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
</div>
|
|
49
|
+
{% endblock request_timeline %}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
This file is part of Invenio.
|
|
4
|
+
Copyright (C) 2024 CERN.
|
|
5
|
+
|
|
6
|
+
Invenio 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
|
+
{#
|
|
11
|
+
Renders the request details page when requesting a subcommunity
|
|
12
|
+
#}
|
|
13
|
+
|
|
14
|
+
{% extends "invenio_requests/details/index.html" %}
|
|
15
|
+
|
|
16
|
+
{% set active_dashboard_menu_item = 'requests' %}
|
|
17
|
+
{% set active_community_header_menu_item = 'requests' %}
|
|
18
|
+
|
|
19
|
+
{%- block request_header %}
|
|
20
|
+
{% if permissions.can_search_requests %}
|
|
21
|
+
{% set back_button_url = url_for("invenio_communities.communities_requests", pid_value=community.slug) %}
|
|
22
|
+
{% endif %}
|
|
23
|
+
{% from "invenio_requests/macros/request_header.html" import inclusion_request_header %}
|
|
24
|
+
{{ inclusion_request_header(
|
|
25
|
+
request=invenio_request,
|
|
26
|
+
record=record,
|
|
27
|
+
accepted=request_is_accepted,
|
|
28
|
+
back_button_url=back_button_url,
|
|
29
|
+
back_button_text=_("Back to requests")
|
|
30
|
+
) }}
|
|
31
|
+
{%- endblock request_header %}
|
|
32
|
+
|
|
33
|
+
{% block request_timeline %}
|
|
34
|
+
<div
|
|
35
|
+
class="ui container rdm-tab-container fluid rel-pt-2 ml-0-mobile mr-0-mobile"
|
|
36
|
+
id="request-community-submission-tab-container"
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
class="ui bottom attached tab segment active borderless p-0"
|
|
40
|
+
data-tab="conversation"
|
|
41
|
+
role="tabpanel"
|
|
42
|
+
aria-labelledby="conversation-tab"
|
|
43
|
+
id="conversation-tab-panel"
|
|
44
|
+
>
|
|
45
|
+
{{ super() }}
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
</div>
|
|
49
|
+
{% endblock request_timeline %}
|
invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/user-access-request/index.html
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
This file is part of Invenio.
|
|
4
|
+
Copyright (C) 2023 TU Wien.
|
|
5
|
+
|
|
6
|
+
Invenio 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
|
+
{% set title = invenio_request.title %}
|
|
10
|
+
{% extends "invenio_requests/details/index.html" %}
|
|
11
|
+
{% from "invenio_requests/macros/request_header.html" import inclusion_request_header %}
|
|
12
|
+
|
|
13
|
+
{% block page_body %}
|
|
14
|
+
{%- if not (current_user and current_user.is_authenticated) %}
|
|
15
|
+
<div class=rel-mt-2>
|
|
16
|
+
{{ super.super() }}
|
|
17
|
+
</div>
|
|
18
|
+
{% else %}
|
|
19
|
+
{{ super.super() }}
|
|
20
|
+
{% endif %}
|
|
21
|
+
{%- block request_body %}
|
|
22
|
+
<div class="ui container request-detail-page">
|
|
23
|
+
|
|
24
|
+
{% block request_header %}
|
|
25
|
+
{% set back_button_url = url_for("invenio_app_rdm_users.requests") %}
|
|
26
|
+
{{ inclusion_request_header(
|
|
27
|
+
back_button_url=back_button_url,
|
|
28
|
+
back_button_text=_("Back to requests"),
|
|
29
|
+
request=invenio_request,
|
|
30
|
+
accepted=request_is_accepted
|
|
31
|
+
) }}
|
|
32
|
+
|
|
33
|
+
<div>
|
|
34
|
+
<p>
|
|
35
|
+
<strong>Access level:</strong>
|
|
36
|
+
{{ invenio_request.payload.permission }}
|
|
37
|
+
</p>
|
|
38
|
+
<p>
|
|
39
|
+
<strong>Record:</strong>
|
|
40
|
+
<a
|
|
41
|
+
href="{{ url_for('invenio_app_rdm_records.record_detail', pid_value=invenio_request.topic.record) }}"
|
|
42
|
+
rel="noopener noreferrer" target="_blank"
|
|
43
|
+
title="{{ _('Opens in new tab') }}"
|
|
44
|
+
>
|
|
45
|
+
{{ invenio_request.topic.record }}
|
|
46
|
+
</a>
|
|
47
|
+
</p>
|
|
48
|
+
</div>
|
|
49
|
+
{% endblock %}
|
|
50
|
+
{%- block request_timeline %}
|
|
51
|
+
{{ super() }}
|
|
52
|
+
{%- endblock request_timeline %}
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
{% endblock request_body %}
|
|
56
|
+
{% endblock page_body %}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
{% set active_dashboard_menu_item = 'requests' %}
|
|
@@ -1,82 +1,374 @@
|
|
|
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
5
|
# Copyright (C) 2022 TU Wien.
|
|
6
6
|
#
|
|
7
7
|
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
8
8
|
# under the terms of the MIT License; see LICENSE file for more details.
|
|
9
|
+
|
|
9
10
|
"""Request views module."""
|
|
10
11
|
|
|
11
|
-
from flask import g, render_template
|
|
12
|
-
from flask_login import login_required
|
|
12
|
+
from flask import current_app, g, render_template
|
|
13
|
+
from flask_login import current_user, login_required
|
|
14
|
+
from invenio_checks.api import ChecksAPI
|
|
15
|
+
from invenio_communities.config import COMMUNITIES_ROLES
|
|
16
|
+
from invenio_communities.members.services.request import CommunityInvitation
|
|
17
|
+
from invenio_communities.proxies import current_identities_cache
|
|
18
|
+
from invenio_communities.subcommunities.services.request import (
|
|
19
|
+
SubCommunityInvitationRequest,
|
|
20
|
+
SubCommunityRequest,
|
|
21
|
+
)
|
|
22
|
+
from invenio_communities.utils import identity_cache_key
|
|
23
|
+
from invenio_communities.views.communities import render_community_theme_template
|
|
24
|
+
from invenio_communities.views.decorators import pass_community
|
|
25
|
+
from invenio_i18n.ext import current_i18n
|
|
26
|
+
from invenio_pidstore.errors import PIDDoesNotExistError
|
|
13
27
|
from invenio_rdm_records.proxies import current_rdm_records_service
|
|
28
|
+
from invenio_rdm_records.requests import CommunityInclusion, CommunitySubmission
|
|
14
29
|
from invenio_rdm_records.resources.serializers import UIJSONSerializer
|
|
30
|
+
from invenio_rdm_records.services.errors import RecordDeletedException
|
|
31
|
+
from invenio_rdm_records.services.generators import CommunityInclusionNeed
|
|
32
|
+
from invenio_records_resources.services.errors import PermissionDeniedError
|
|
33
|
+
from invenio_requests.customizations import AcceptAction
|
|
34
|
+
from invenio_requests.resolvers.registry import ResolverRegistry
|
|
15
35
|
from invenio_requests.views.decorators import pass_request
|
|
16
|
-
from
|
|
36
|
+
from invenio_users_resources.proxies import current_user_resources
|
|
37
|
+
from invenio_vocabularies.proxies import current_service as vocabulary_service
|
|
38
|
+
from marshmallow_utils.fields.babel import gettext_from_dict
|
|
17
39
|
from sqlalchemy.orm.exc import NoResultFound
|
|
18
40
|
|
|
41
|
+
from ...records_ui.utils import get_external_resources
|
|
42
|
+
from ...records_ui.views.decorators import (
|
|
43
|
+
draft_files_service,
|
|
44
|
+
draft_media_files_service,
|
|
45
|
+
files_service,
|
|
46
|
+
media_files_service,
|
|
47
|
+
)
|
|
48
|
+
from ...records_ui.views.deposits import (
|
|
49
|
+
get_user_communities_memberships,
|
|
50
|
+
load_custom_fields,
|
|
51
|
+
)
|
|
19
52
|
|
|
20
|
-
@login_required
|
|
21
|
-
@pass_request
|
|
22
|
-
def requests_detail(request=None, pid_value=None):
|
|
23
|
-
"""Community detail page."""
|
|
24
|
-
request_dict = request.to_dict()
|
|
25
53
|
|
|
26
|
-
|
|
54
|
+
def _resolve_topic_record(request):
|
|
55
|
+
"""Resolve the record in the topic, when it is a draft or a published record."""
|
|
56
|
+
creator_id = request["expanded"].get("created_by", {}).get("id", None)
|
|
57
|
+
user_owns_request = str(creator_id) == str(current_user.id)
|
|
58
|
+
|
|
59
|
+
if request["is_closed"] and not user_owns_request:
|
|
60
|
+
return dict(permissions={}, record_ui=None, record=None)
|
|
61
|
+
|
|
62
|
+
record = None
|
|
63
|
+
# parse the topic field to get the draft/record pid `record:abcd-efgh`
|
|
64
|
+
entity = ResolverRegistry.resolve_entity_proxy(request["topic"])
|
|
65
|
+
pid = entity._parse_ref_dict_id()
|
|
66
|
+
|
|
67
|
+
request_type = request["type"]
|
|
68
|
+
is_record_inclusion = request_type == CommunityInclusion.type_id
|
|
69
|
+
|
|
27
70
|
try:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
71
|
+
if is_record_inclusion:
|
|
72
|
+
community = request["receiver"]["community"]
|
|
73
|
+
# Get the roles that can curate and in consequence should be able to see the record of the inclusion request
|
|
74
|
+
can_curate_roles = {
|
|
75
|
+
role["name"]
|
|
76
|
+
for role in COMMUNITIES_ROLES
|
|
77
|
+
if role.get("can_curate", False)
|
|
78
|
+
}
|
|
79
|
+
cache_key = identity_cache_key(g.identity)
|
|
80
|
+
user_community_roles = current_identities_cache.get(cache_key)
|
|
81
|
+
for community_id, role in user_community_roles:
|
|
82
|
+
if community_id == community and role in can_curate_roles:
|
|
83
|
+
# This need should not be reused, see CommunityInclusionReviewers generator docstring for more info
|
|
84
|
+
community_inclusion_need = CommunityInclusionNeed(
|
|
85
|
+
pid
|
|
86
|
+
) # pid is the record pid
|
|
87
|
+
g.identity.provides.add(community_inclusion_need)
|
|
88
|
+
break
|
|
89
|
+
# read published record
|
|
90
|
+
record = current_rdm_records_service.read(g.identity, pid, expand=True)
|
|
91
|
+
else:
|
|
92
|
+
# read draft
|
|
93
|
+
record = current_rdm_records_service.read_draft(
|
|
94
|
+
g.identity, pid, expand=True
|
|
95
|
+
)
|
|
96
|
+
except (NoResultFound, PIDDoesNotExistError, RecordDeletedException):
|
|
97
|
+
# We catch PIDDoesNotExistError because a published record with
|
|
98
|
+
# a soft-deleted draft will raise this error. The lines below
|
|
99
|
+
# will catch the case that a id does not exists and raise a
|
|
100
|
+
# PIDDoesNotExistError that can be handled as 404 in the resource
|
|
101
|
+
# layer.
|
|
102
|
+
try:
|
|
103
|
+
# read published record
|
|
104
|
+
record = current_rdm_records_service.read(g.identity, pid, expand=True)
|
|
105
|
+
except (NoResultFound, RecordDeletedException):
|
|
106
|
+
# record tab not displayed when the record is not found
|
|
107
|
+
# the request is probably not open anymore
|
|
108
|
+
pass
|
|
109
|
+
|
|
110
|
+
if record:
|
|
111
|
+
record_ui = UIJSONSerializer().dump_obj(record.to_dict())
|
|
112
|
+
permissions = record.has_permissions_to(
|
|
113
|
+
[
|
|
114
|
+
"edit",
|
|
115
|
+
"new_version",
|
|
116
|
+
"manage",
|
|
117
|
+
"update_draft",
|
|
118
|
+
"read_files",
|
|
119
|
+
"review",
|
|
120
|
+
"read",
|
|
121
|
+
]
|
|
122
|
+
)
|
|
123
|
+
return dict(
|
|
124
|
+
permissions=permissions,
|
|
125
|
+
record_ui=record_ui,
|
|
126
|
+
record=record,
|
|
127
|
+
)
|
|
128
|
+
|
|
129
|
+
return dict(permissions={}, record_ui=None, record=None)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
def _resolve_record_or_draft_files(record, request):
|
|
133
|
+
"""Resolve the record's or draft's files."""
|
|
134
|
+
request_type = request["type"]
|
|
135
|
+
is_record_inclusion = request_type == CommunityInclusion.type_id
|
|
136
|
+
if record and record["files"]["enabled"]:
|
|
137
|
+
record_pid = record["id"]
|
|
46
138
|
try:
|
|
47
|
-
|
|
48
|
-
id_=
|
|
139
|
+
if is_record_inclusion:
|
|
140
|
+
files = files_service().list_files(id_=record_pid, identity=g.identity)
|
|
141
|
+
else:
|
|
142
|
+
files = draft_files_service().list_files(
|
|
143
|
+
id_=record_pid, identity=g.identity
|
|
144
|
+
)
|
|
145
|
+
except NoResultFound:
|
|
146
|
+
files = files_service().list_files(id_=record_pid, identity=g.identity)
|
|
147
|
+
return files.to_dict()
|
|
148
|
+
return None
|
|
49
149
|
|
|
150
|
+
|
|
151
|
+
def _resolve_record_or_draft_media_files(record, request):
|
|
152
|
+
"""Resolve the record's or draft's media files."""
|
|
153
|
+
request_type = request["type"]
|
|
154
|
+
is_record_inclusion = request_type == CommunityInclusion.type_id
|
|
155
|
+
if record and record["media_files"]["enabled"]:
|
|
156
|
+
record_pid = record["id"]
|
|
157
|
+
try:
|
|
158
|
+
if is_record_inclusion:
|
|
159
|
+
media_files = media_files_service().list_files(
|
|
160
|
+
id_=record_pid, identity=g.identity
|
|
161
|
+
)
|
|
162
|
+
else:
|
|
163
|
+
media_files = draft_media_files_service().list_files(
|
|
164
|
+
id_=record_pid, identity=g.identity
|
|
165
|
+
)
|
|
50
166
|
except NoResultFound:
|
|
51
|
-
|
|
52
|
-
id_=
|
|
167
|
+
media_files = media_files_service().list_files(
|
|
168
|
+
id_=record_pid, identity=g.identity
|
|
169
|
+
)
|
|
170
|
+
return media_files.to_dict()
|
|
171
|
+
return None
|
|
172
|
+
|
|
53
173
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
174
|
+
@login_required
|
|
175
|
+
@pass_request(expand=True)
|
|
176
|
+
def user_dashboard_request_view(request, **kwargs):
|
|
177
|
+
"""User dashboard request details view."""
|
|
178
|
+
avatar = current_user_resources.users_service.links_item_tpl.expand(
|
|
179
|
+
g.identity, current_user
|
|
180
|
+
)["avatar"]
|
|
61
181
|
|
|
62
|
-
|
|
182
|
+
request_type = request["type"]
|
|
183
|
+
request_is_accepted = request["status"] == AcceptAction.status_to
|
|
184
|
+
|
|
185
|
+
has_topic = request["topic"] is not None
|
|
186
|
+
has_record_topic = has_topic and "record" in request["topic"]
|
|
187
|
+
has_community_topic = has_topic and "community" in request["topic"]
|
|
188
|
+
is_record_inclusion = request_type == CommunityInclusion.type_id
|
|
189
|
+
request_permissions = request.has_permissions_to(
|
|
190
|
+
["action_accept", "lock_request", "create_comment", "reply_comment"]
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
if has_record_topic:
|
|
194
|
+
topic = _resolve_topic_record(request)
|
|
195
|
+
record_ui = topic["record_ui"]
|
|
196
|
+
record = topic["record"]
|
|
197
|
+
is_draft = record_ui["is_draft"] if record_ui else False
|
|
198
|
+
is_published = record_ui["is_published"] if record_ui else False
|
|
199
|
+
has_draft = record._record.has_draft if record else False
|
|
200
|
+
|
|
201
|
+
files = _resolve_record_or_draft_files(record_ui, request)
|
|
202
|
+
media_files = _resolve_record_or_draft_media_files(record_ui, request)
|
|
203
|
+
|
|
204
|
+
checks = None
|
|
205
|
+
if current_app.config.get("CHECKS_ENABLED", False) and record:
|
|
206
|
+
if is_record_inclusion and has_draft:
|
|
207
|
+
checks = ChecksAPI.get_runs(record._record, is_draft=True)
|
|
208
|
+
else:
|
|
209
|
+
checks = ChecksAPI.get_runs(record._record)
|
|
210
|
+
|
|
211
|
+
if request_type == "record-deletion":
|
|
212
|
+
reason_title = vocabulary_service.read(
|
|
213
|
+
g.identity,
|
|
214
|
+
("removalreasons", request["payload"]["reason"]),
|
|
215
|
+
).to_dict()
|
|
216
|
+
request["payload"]["reason_label"] = gettext_from_dict(
|
|
217
|
+
reason_title["title"],
|
|
218
|
+
current_i18n.locale,
|
|
219
|
+
current_app.config.get("BABEL_DEFAULT_LOCALE", "en"),
|
|
220
|
+
)
|
|
63
221
|
|
|
64
|
-
try:
|
|
65
222
|
return render_template(
|
|
66
|
-
f"invenio_requests/{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
223
|
+
f"invenio_requests/{request_type}/index.html",
|
|
224
|
+
base_template="invenio_app_rdm/users/base.html",
|
|
225
|
+
user_avatar=avatar,
|
|
226
|
+
invenio_request=request.to_dict(),
|
|
227
|
+
record_ui=record_ui,
|
|
228
|
+
record=record,
|
|
229
|
+
checks=checks,
|
|
230
|
+
permissions={**topic["permissions"], **request_permissions},
|
|
231
|
+
is_preview=is_draft, # preview only when draft
|
|
71
232
|
is_draft=is_draft,
|
|
72
|
-
|
|
73
|
-
|
|
233
|
+
is_published=is_published,
|
|
234
|
+
has_draft=has_draft,
|
|
235
|
+
request_is_accepted=request_is_accepted,
|
|
236
|
+
files=files,
|
|
237
|
+
media_files=media_files,
|
|
238
|
+
is_user_dashboard=True,
|
|
239
|
+
custom_fields_ui=load_custom_fields()["ui"],
|
|
240
|
+
user_communities_memberships=get_user_communities_memberships(),
|
|
241
|
+
external_resources=get_external_resources(record),
|
|
242
|
+
include_deleted=False,
|
|
74
243
|
)
|
|
75
244
|
|
|
76
|
-
|
|
245
|
+
elif has_community_topic or not has_topic:
|
|
77
246
|
return render_template(
|
|
78
|
-
"invenio_requests/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
247
|
+
f"invenio_requests/{request_type}/user_dashboard.html",
|
|
248
|
+
base_template="invenio_app_rdm/users/base.html",
|
|
249
|
+
user_avatar=avatar,
|
|
250
|
+
invenio_request=request.to_dict(),
|
|
251
|
+
request_is_accepted=request_is_accepted,
|
|
252
|
+
permissions={**request_permissions},
|
|
253
|
+
include_deleted=False,
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
topic = _resolve_topic_record(request)
|
|
257
|
+
record_ui = topic["record_ui"]
|
|
258
|
+
|
|
259
|
+
return render_template(
|
|
260
|
+
f"invenio_requests/{request_type}/index.html",
|
|
261
|
+
base_template="invenio_app_rdm/users/base.html",
|
|
262
|
+
user_avatar=avatar,
|
|
263
|
+
record=record,
|
|
264
|
+
record_ui=record_ui,
|
|
265
|
+
permissions={**topic["permissions"], **request_permissions},
|
|
266
|
+
invenio_request=request.to_dict(),
|
|
267
|
+
request_is_accepted=request_is_accepted,
|
|
268
|
+
include_deleted=False,
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
@login_required
|
|
273
|
+
@pass_request(expand=True)
|
|
274
|
+
@pass_community(serialize=True)
|
|
275
|
+
def community_dashboard_request_view(request, community, community_ui, **kwargs):
|
|
276
|
+
"""Community dashboard requests details view."""
|
|
277
|
+
avatar = current_user_resources.users_service.links_item_tpl.expand(
|
|
278
|
+
g.identity, current_user
|
|
279
|
+
)["avatar"]
|
|
280
|
+
|
|
281
|
+
request_type = request["type"]
|
|
282
|
+
|
|
283
|
+
is_draft_submission = request_type == CommunitySubmission.type_id
|
|
284
|
+
is_record_inclusion = request_type == CommunityInclusion.type_id
|
|
285
|
+
is_member_invitation = request_type == CommunityInvitation.type_id
|
|
286
|
+
is_subcommunity_request = request_type == SubCommunityRequest.type_id
|
|
287
|
+
is_subcommunity_invitation_request = (
|
|
288
|
+
request_type == SubCommunityInvitationRequest.type_id
|
|
289
|
+
)
|
|
290
|
+
request_is_accepted = request["status"] == AcceptAction.status_to
|
|
291
|
+
|
|
292
|
+
permissions = community.has_permissions_to(
|
|
293
|
+
["update", "read", "search_requests", "search_invites", "submit_record"]
|
|
294
|
+
)
|
|
295
|
+
request_permissions = request.has_permissions_to(
|
|
296
|
+
["action_accept", "lock_request", "create_comment", "reply_comment"]
|
|
297
|
+
)
|
|
298
|
+
# Add request specific permissions so that reviewers can be selected from community curators
|
|
299
|
+
permissions.update(request_permissions)
|
|
300
|
+
|
|
301
|
+
if is_draft_submission or is_record_inclusion:
|
|
302
|
+
topic = _resolve_topic_record(request)
|
|
303
|
+
record_ui = topic["record_ui"]
|
|
304
|
+
record = topic["record"]
|
|
305
|
+
is_draft = record_ui["is_draft"] if record_ui else False
|
|
306
|
+
is_published = record_ui["is_published"] if record_ui else False
|
|
307
|
+
has_draft = record._record.has_draft if record else False
|
|
308
|
+
permissions.update(topic["permissions"])
|
|
309
|
+
|
|
310
|
+
files = _resolve_record_or_draft_files(record_ui, request)
|
|
311
|
+
media_files = _resolve_record_or_draft_media_files(record_ui, request)
|
|
312
|
+
|
|
313
|
+
checks = None
|
|
314
|
+
if current_app.config.get("CHECKS_ENABLED", False) and record:
|
|
315
|
+
if is_record_inclusion and has_draft:
|
|
316
|
+
checks = ChecksAPI.get_runs(record._record, is_draft=True)
|
|
317
|
+
else:
|
|
318
|
+
checks = ChecksAPI.get_runs(record._record)
|
|
319
|
+
|
|
320
|
+
return render_community_theme_template(
|
|
321
|
+
f"invenio_requests/{request_type}/index.html",
|
|
322
|
+
theme=community.to_dict().get("theme", {}),
|
|
323
|
+
base_template="invenio_communities/details/base.html",
|
|
324
|
+
invenio_request=request.to_dict(),
|
|
325
|
+
record=record,
|
|
326
|
+
record_ui=record_ui,
|
|
327
|
+
community=community,
|
|
328
|
+
community_ui=community_ui,
|
|
329
|
+
checks=checks,
|
|
330
|
+
permissions=permissions,
|
|
331
|
+
is_preview=is_draft, # preview only when draft
|
|
332
|
+
is_draft=is_draft,
|
|
333
|
+
has_draft=has_draft,
|
|
334
|
+
is_published=is_published,
|
|
335
|
+
request_is_accepted=request_is_accepted,
|
|
336
|
+
files=files,
|
|
337
|
+
media_files=media_files,
|
|
338
|
+
user_avatar=avatar,
|
|
339
|
+
custom_fields_ui=load_custom_fields()["ui"],
|
|
340
|
+
user_communities_memberships=get_user_communities_memberships(),
|
|
341
|
+
external_resources=get_external_resources(record),
|
|
342
|
+
include_deleted=False,
|
|
343
|
+
)
|
|
344
|
+
|
|
345
|
+
elif is_member_invitation:
|
|
346
|
+
if not permissions["can_search_invites"]:
|
|
347
|
+
raise PermissionDeniedError()
|
|
348
|
+
|
|
349
|
+
return render_community_theme_template(
|
|
350
|
+
f"invenio_requests/{request_type}/community_dashboard.html",
|
|
351
|
+
theme=community.to_dict().get("theme", {}),
|
|
352
|
+
base_template="invenio_communities/details/members/base.html",
|
|
353
|
+
invenio_request=request.to_dict(),
|
|
354
|
+
community=community,
|
|
355
|
+
community_ui=community_ui,
|
|
356
|
+
permissions=permissions,
|
|
357
|
+
request_is_accepted=request_is_accepted,
|
|
358
|
+
user_avatar=avatar,
|
|
359
|
+
include_deleted=False,
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
elif is_subcommunity_request or is_subcommunity_invitation_request:
|
|
363
|
+
return render_community_theme_template(
|
|
364
|
+
f"invenio_requests/{request_type}/index.html",
|
|
365
|
+
theme=community.to_dict().get("theme", {}),
|
|
366
|
+
base_template="invenio_communities/details/base.html",
|
|
367
|
+
invenio_request=request.to_dict(),
|
|
368
|
+
community=community,
|
|
369
|
+
community_ui=community_ui,
|
|
370
|
+
permissions=permissions,
|
|
371
|
+
request_is_accepted=request_is_accepted,
|
|
372
|
+
user_avatar=avatar,
|
|
373
|
+
include_deleted=False,
|
|
82
374
|
)
|
|
@@ -10,11 +10,20 @@
|
|
|
10
10
|
|
|
11
11
|
from flask import Blueprint
|
|
12
12
|
from invenio_pidstore.errors import PIDDeletedError, PIDDoesNotExistError
|
|
13
|
+
from invenio_rdm_records.access_requests_ui.views import (
|
|
14
|
+
read_request,
|
|
15
|
+
verify_access_request_token,
|
|
16
|
+
)
|
|
13
17
|
from invenio_records_resources.services.errors import PermissionDeniedError
|
|
14
|
-
from invenio_requests.views.ui import
|
|
15
|
-
|
|
18
|
+
from invenio_requests.views.ui import (
|
|
19
|
+
not_found_error,
|
|
20
|
+
record_permission_denied_error,
|
|
21
|
+
record_tombstone_error,
|
|
22
|
+
)
|
|
23
|
+
from sqlalchemy.exc import NoResultFound
|
|
16
24
|
|
|
17
|
-
from
|
|
25
|
+
from ...records_ui.searchapp import search_app_context
|
|
26
|
+
from .requests import community_dashboard_request_view, user_dashboard_request_view
|
|
18
27
|
|
|
19
28
|
|
|
20
29
|
def create_ui_blueprint(app):
|
|
@@ -25,19 +34,39 @@ def create_ui_blueprint(app):
|
|
|
25
34
|
"invenio_app_rdm_requests",
|
|
26
35
|
__name__,
|
|
27
36
|
template_folder="../templates",
|
|
28
|
-
static_folder=
|
|
37
|
+
static_folder="../static",
|
|
29
38
|
)
|
|
30
39
|
|
|
31
40
|
blueprint.add_url_rule(
|
|
32
|
-
routes["user-dashboard-
|
|
33
|
-
view_func=
|
|
41
|
+
routes["user-dashboard-request-details"],
|
|
42
|
+
view_func=user_dashboard_request_view,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
blueprint.add_url_rule(
|
|
46
|
+
routes["community-dashboard-request-details"],
|
|
47
|
+
view_func=community_dashboard_request_view,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
blueprint.add_url_rule(
|
|
51
|
+
routes["community-dashboard-invitation-details"],
|
|
52
|
+
view_func=community_dashboard_request_view,
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
blueprint.add_url_rule(
|
|
56
|
+
"/access/requests/confirm", view_func=verify_access_request_token
|
|
57
|
+
)
|
|
58
|
+
blueprint.add_url_rule(
|
|
59
|
+
"/access/requests/<request_pid_value>", view_func=read_request
|
|
34
60
|
)
|
|
35
61
|
|
|
36
62
|
# Register error handlers
|
|
37
63
|
blueprint.register_error_handler(
|
|
38
|
-
PermissionDeniedError, record_permission_denied_error
|
|
39
|
-
|
|
40
|
-
|
|
64
|
+
PermissionDeniedError, record_permission_denied_error
|
|
65
|
+
)
|
|
66
|
+
blueprint.register_error_handler(PIDDeletedError, record_tombstone_error)
|
|
41
67
|
blueprint.register_error_handler(PIDDoesNotExistError, not_found_error)
|
|
68
|
+
# due to requests found by ID, not PID (check service read method)
|
|
69
|
+
blueprint.register_error_handler(NoResultFound, not_found_error)
|
|
70
|
+
blueprint.app_context_processor(search_app_context)
|
|
42
71
|
|
|
43
72
|
return blueprint
|