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
|
@@ -1,37 +1,62 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
#
|
|
3
|
-
# Copyright (C) 2019-
|
|
3
|
+
# Copyright (C) 2019-2025 CERN.
|
|
4
4
|
# Copyright (C) 2019-2021 Northwestern University.
|
|
5
|
-
# Copyright (C)
|
|
5
|
+
# Copyright (C) 2021-2023 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
10
|
"""Routes for record-related pages provided by Invenio-App-RDM."""
|
|
11
11
|
|
|
12
|
+
import itertools
|
|
12
13
|
from os.path import splitext
|
|
14
|
+
from pathlib import Path
|
|
13
15
|
|
|
14
16
|
from flask import abort, current_app, g, redirect, render_template, request, url_for
|
|
15
17
|
from flask_login import current_user
|
|
16
18
|
from invenio_base.utils import obj_or_import_string
|
|
17
|
-
from
|
|
19
|
+
from invenio_communities.communities.resources.serializer import (
|
|
20
|
+
UICommunityJSONSerializer,
|
|
21
|
+
)
|
|
22
|
+
from invenio_communities.errors import CommunityDeletedError
|
|
23
|
+
from invenio_communities.proxies import current_communities
|
|
24
|
+
from invenio_communities.views.communities import render_community_theme_template
|
|
25
|
+
from invenio_previewer.extensions import default as default_previewer
|
|
18
26
|
from invenio_previewer.proxies import current_previewer
|
|
19
27
|
from invenio_rdm_records.proxies import current_rdm_records
|
|
28
|
+
from invenio_rdm_records.records.systemfields.access.access_settings import (
|
|
29
|
+
AccessSettings,
|
|
30
|
+
)
|
|
20
31
|
from invenio_rdm_records.resources.serializers import UIJSONSerializer
|
|
21
32
|
from invenio_stats.proxies import current_stats
|
|
33
|
+
from invenio_users_resources.proxies import current_user_resources
|
|
22
34
|
from marshmallow import ValidationError
|
|
23
35
|
|
|
24
|
-
from invenio_app_rdm.records_ui.
|
|
36
|
+
from invenio_app_rdm.records_ui.previewer.iiif_simple import (
|
|
37
|
+
previewable_extensions as image_extensions,
|
|
38
|
+
)
|
|
25
39
|
|
|
40
|
+
from ..utils import evaluate_record_deletion, get_external_resources
|
|
26
41
|
from .decorators import (
|
|
42
|
+
add_signposting_content_resources,
|
|
43
|
+
add_signposting_landing_page,
|
|
44
|
+
add_signposting_metadata_resources,
|
|
27
45
|
pass_file_item,
|
|
28
46
|
pass_file_metadata,
|
|
47
|
+
pass_include_deleted,
|
|
29
48
|
pass_is_preview,
|
|
30
49
|
pass_record_files,
|
|
31
50
|
pass_record_from_pid,
|
|
32
51
|
pass_record_latest,
|
|
52
|
+
pass_record_media_files,
|
|
33
53
|
pass_record_or_draft,
|
|
34
54
|
)
|
|
55
|
+
from .deposits import (
|
|
56
|
+
VocabulariesOptions,
|
|
57
|
+
get_user_communities_memberships,
|
|
58
|
+
load_custom_fields,
|
|
59
|
+
)
|
|
35
60
|
|
|
36
61
|
|
|
37
62
|
def get_record_community(record):
|
|
@@ -54,11 +79,22 @@ def get_record_community(record):
|
|
|
54
79
|
) or expanded_parent.get("communities", {}).get("default")
|
|
55
80
|
|
|
56
81
|
if community_review or community_default:
|
|
57
|
-
|
|
58
|
-
if
|
|
82
|
+
is_community_pid_deleted = expanded_community.get("is_ghost", False)
|
|
83
|
+
if is_community_pid_deleted:
|
|
84
|
+
# community pid is not found in search i.e its pid is deleted
|
|
85
|
+
return None, community_id
|
|
86
|
+
|
|
87
|
+
# resolve the community again to check the deletion status
|
|
88
|
+
# deleted communities with tombstones are not identified as ghost records
|
|
89
|
+
# at the moment because `read_many()` function is not filtering them out
|
|
90
|
+
try:
|
|
91
|
+
community = current_communities.service.read(
|
|
92
|
+
id_=community_id, identity=g.identity
|
|
93
|
+
)
|
|
94
|
+
# community has not tombstone
|
|
95
|
+
return community, community_id
|
|
96
|
+
except CommunityDeletedError:
|
|
59
97
|
return None, community_id
|
|
60
|
-
else:
|
|
61
|
-
return expanded_community, community_id
|
|
62
98
|
else:
|
|
63
99
|
return None, None
|
|
64
100
|
|
|
@@ -70,10 +106,11 @@ class PreviewFile:
|
|
|
70
106
|
`invenio_previewer.api.PreviewFile`.
|
|
71
107
|
"""
|
|
72
108
|
|
|
73
|
-
def __init__(self, file_item, record_pid_value, url=None):
|
|
109
|
+
def __init__(self, file_item, record_pid_value, record=None, url=None):
|
|
74
110
|
"""Create a new PreviewFile."""
|
|
75
111
|
self.file = file_item
|
|
76
112
|
self.data = file_item.data
|
|
113
|
+
self.record = record
|
|
77
114
|
self.size = self.data["size"]
|
|
78
115
|
self.filename = self.data["key"]
|
|
79
116
|
self.bucket = self.data["bucket_id"]
|
|
@@ -105,70 +142,47 @@ class PreviewFile:
|
|
|
105
142
|
#
|
|
106
143
|
|
|
107
144
|
|
|
108
|
-
def _get_query(query_name):
|
|
109
|
-
"""Build the statistics query from configuration."""
|
|
110
|
-
query_config = current_stats.queries[query_name]
|
|
111
|
-
return query_config.cls(name=query_config.name, **query_config.params)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
def _get_stats(recid, parent_recid):
|
|
115
|
-
"""Fetch the statistics for the given record."""
|
|
116
|
-
try:
|
|
117
|
-
views = _get_query("record-view").run(recid=recid)
|
|
118
|
-
views_all = _get_query("record-view-all-versions").run(
|
|
119
|
-
parent_recid=parent_recid
|
|
120
|
-
)
|
|
121
|
-
except Exception as e:
|
|
122
|
-
# e.g. opensearchpy.exceptions.NotFoundError
|
|
123
|
-
# when the aggregation search index hasn't been created yet
|
|
124
|
-
current_app.logger.warning(e)
|
|
125
|
-
|
|
126
|
-
fallback_result = {
|
|
127
|
-
"views": 0,
|
|
128
|
-
"unique_views": 0,
|
|
129
|
-
}
|
|
130
|
-
views = views_all = downloads = downloads_all = fallback_result
|
|
131
|
-
|
|
132
|
-
try:
|
|
133
|
-
downloads = _get_query("record-download").run(recid=recid)
|
|
134
|
-
downloads_all = _get_query("record-download-all-versions").run(
|
|
135
|
-
parent_recid=parent_recid
|
|
136
|
-
)
|
|
137
|
-
except Exception as e:
|
|
138
|
-
# same as above, but for failure in the download statistics
|
|
139
|
-
# because they are a separate index that can fail independently
|
|
140
|
-
current_app.logger.warning(e)
|
|
141
|
-
|
|
142
|
-
fallback_result = {
|
|
143
|
-
"downloads": 0,
|
|
144
|
-
"unique_downloads": 0,
|
|
145
|
-
"data_volume": 0,
|
|
146
|
-
}
|
|
147
|
-
downloads = downloads_all = fallback_result
|
|
148
|
-
|
|
149
|
-
stats = {
|
|
150
|
-
"this_version": {
|
|
151
|
-
**views,
|
|
152
|
-
**downloads,
|
|
153
|
-
},
|
|
154
|
-
"all_versions": {
|
|
155
|
-
**views_all,
|
|
156
|
-
**downloads_all,
|
|
157
|
-
},
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return stats
|
|
161
|
-
|
|
162
|
-
|
|
163
145
|
@pass_is_preview
|
|
146
|
+
@pass_include_deleted
|
|
164
147
|
@pass_record_or_draft(expand=True)
|
|
165
148
|
@pass_record_files
|
|
166
|
-
|
|
149
|
+
@pass_record_media_files
|
|
150
|
+
@add_signposting_landing_page
|
|
151
|
+
def record_detail(
|
|
152
|
+
pid_value, record, files, media_files, is_preview=False, include_deleted=False
|
|
153
|
+
):
|
|
167
154
|
"""Record detail page (aka landing page)."""
|
|
168
155
|
files_dict = None if files is None else files.to_dict()
|
|
156
|
+
media_files_dict = None if media_files is None else media_files.to_dict()
|
|
157
|
+
|
|
158
|
+
access = record._record.parent["access"]
|
|
159
|
+
if "settings" not in access or access["settings"] is None:
|
|
160
|
+
record._record.parent["access"]["settings"] = AccessSettings({}).dump()
|
|
161
|
+
|
|
169
162
|
record_ui = UIJSONSerializer().dump_obj(record.to_dict())
|
|
170
163
|
|
|
164
|
+
record_deletion = evaluate_record_deletion(record._record, g.identity)
|
|
165
|
+
|
|
166
|
+
# The deletion options are only needed if the user is allowed to delete the given record.
|
|
167
|
+
record_deletion_options = (
|
|
168
|
+
VocabulariesOptions().deletion_request_removal_reasons()
|
|
169
|
+
if record_deletion["allowed"]
|
|
170
|
+
else []
|
|
171
|
+
)
|
|
172
|
+
|
|
171
173
|
is_draft = record_ui["is_draft"]
|
|
174
|
+
custom_fields = load_custom_fields()
|
|
175
|
+
# keep only landing page configurable custom fields
|
|
176
|
+
custom_fields["ui"] = [
|
|
177
|
+
cf for cf in custom_fields["ui"] if not cf.get("hide_from_landing_page", False)
|
|
178
|
+
]
|
|
179
|
+
avatar = None
|
|
180
|
+
|
|
181
|
+
if current_user.is_authenticated:
|
|
182
|
+
avatar = current_user_resources.users_service.links_item_tpl.expand(
|
|
183
|
+
g.identity, current_user
|
|
184
|
+
)["avatar"]
|
|
185
|
+
|
|
172
186
|
if is_preview and is_draft:
|
|
173
187
|
# it is possible to save incomplete drafts that break the normal
|
|
174
188
|
# (preview) landing page rendering
|
|
@@ -180,6 +194,36 @@ def record_detail(pid_value, record, files, is_preview=False):
|
|
|
180
194
|
)
|
|
181
195
|
except ValidationError:
|
|
182
196
|
abort(404)
|
|
197
|
+
# inject parent doi format for new drafts so we can show in preview if parent doi is required
|
|
198
|
+
if current_app.config["DATACITE_ENABLED"]:
|
|
199
|
+
service = current_rdm_records.records_service
|
|
200
|
+
datacite_provider = [
|
|
201
|
+
v["datacite"]
|
|
202
|
+
for p, v in service.config.parent_pids_providers.items()
|
|
203
|
+
if p == "doi" and "datacite" in v
|
|
204
|
+
]
|
|
205
|
+
if datacite_provider:
|
|
206
|
+
should_mint_parent_doi = True
|
|
207
|
+
is_doi_required = (
|
|
208
|
+
current_app.config.get("RDM_PARENT_PERSISTENT_IDENTIFIERS", {})
|
|
209
|
+
.get("doi", {})
|
|
210
|
+
.get("required")
|
|
211
|
+
)
|
|
212
|
+
if not is_doi_required:
|
|
213
|
+
# check if the draft has a reserved doi and mint parent doi only in that case
|
|
214
|
+
record_doi = record._record.pids.get("doi", {})
|
|
215
|
+
is_doi_reserved = record_doi.get(
|
|
216
|
+
"provider", ""
|
|
217
|
+
) == "datacite" and record_doi.get("identifier")
|
|
218
|
+
if not is_doi_reserved:
|
|
219
|
+
should_mint_parent_doi = False
|
|
220
|
+
|
|
221
|
+
if should_mint_parent_doi:
|
|
222
|
+
datacite_provider = datacite_provider[0]
|
|
223
|
+
parent_doi = datacite_provider.client.generate_doi(
|
|
224
|
+
record._record.parent
|
|
225
|
+
)
|
|
226
|
+
record_ui["ui"]["new_draft_parent_doi"] = parent_doi
|
|
183
227
|
|
|
184
228
|
# emit a record view stats event
|
|
185
229
|
emitter = current_stats.get_event_emitter("record-view")
|
|
@@ -187,23 +231,52 @@ def record_detail(pid_value, record, files, is_preview=False):
|
|
|
187
231
|
emitter(current_app, record=record._record, via_api=False)
|
|
188
232
|
|
|
189
233
|
resolved_community, _ = get_record_community(record_ui)
|
|
190
|
-
|
|
234
|
+
resolved_community_ui = (
|
|
235
|
+
UICommunityJSONSerializer().dump_obj(resolved_community.to_dict())
|
|
236
|
+
if resolved_community
|
|
237
|
+
else None
|
|
238
|
+
)
|
|
239
|
+
theme = resolved_community_ui.get("theme", {}) if resolved_community else None
|
|
240
|
+
|
|
241
|
+
return render_community_theme_template(
|
|
191
242
|
current_app.config.get("APP_RDM_RECORD_LANDING_PAGE_TEMPLATE"),
|
|
192
|
-
|
|
243
|
+
theme=theme,
|
|
244
|
+
record=record,
|
|
245
|
+
record_ui=record_ui,
|
|
193
246
|
files=files_dict,
|
|
247
|
+
media_files=media_files_dict,
|
|
248
|
+
user_communities_memberships=get_user_communities_memberships(),
|
|
194
249
|
permissions=record.has_permissions_to(
|
|
195
|
-
[
|
|
250
|
+
[
|
|
251
|
+
"edit",
|
|
252
|
+
"new_version",
|
|
253
|
+
"manage",
|
|
254
|
+
"update_draft",
|
|
255
|
+
"read_files",
|
|
256
|
+
"review",
|
|
257
|
+
"view",
|
|
258
|
+
"media_read_files",
|
|
259
|
+
"moderate",
|
|
260
|
+
"request_deletion",
|
|
261
|
+
"immediately_delete",
|
|
262
|
+
]
|
|
196
263
|
),
|
|
197
|
-
custom_fields_ui=
|
|
264
|
+
custom_fields_ui=custom_fields["ui"],
|
|
198
265
|
is_preview=is_preview,
|
|
266
|
+
include_deleted=include_deleted,
|
|
199
267
|
is_draft=is_draft,
|
|
200
|
-
stats=_get_stats(record_ui["id"], record_ui["parent"]["id"]),
|
|
201
268
|
community=resolved_community,
|
|
269
|
+
community_ui=resolved_community_ui,
|
|
270
|
+
external_resources=get_external_resources(record),
|
|
271
|
+
user_avatar=avatar,
|
|
272
|
+
record_deletion=record_deletion,
|
|
273
|
+
record_deletion_options=record_deletion_options,
|
|
202
274
|
)
|
|
203
275
|
|
|
204
276
|
|
|
205
277
|
@pass_is_preview
|
|
206
278
|
@pass_record_or_draft(expand=False)
|
|
279
|
+
@add_signposting_metadata_resources
|
|
207
280
|
def record_export(
|
|
208
281
|
pid_value, record, export_format=None, permissions=None, is_preview=False
|
|
209
282
|
):
|
|
@@ -214,10 +287,7 @@ def record_export(
|
|
|
214
287
|
abort(404)
|
|
215
288
|
|
|
216
289
|
serializer = obj_or_import_string(exporter["serializer"])(
|
|
217
|
-
|
|
218
|
-
"indent": 2,
|
|
219
|
-
"sort_keys": True,
|
|
220
|
-
}
|
|
290
|
+
**exporter.get("params", {})
|
|
221
291
|
)
|
|
222
292
|
exported_record = serializer.serialize_object(record.to_dict())
|
|
223
293
|
contentType = exporter.get("content-type", export_format)
|
|
@@ -230,6 +300,7 @@ def record_export(
|
|
|
230
300
|
|
|
231
301
|
|
|
232
302
|
@pass_is_preview
|
|
303
|
+
@pass_include_deleted
|
|
233
304
|
@pass_record_or_draft(expand=False)
|
|
234
305
|
@pass_file_metadata
|
|
235
306
|
def record_file_preview(
|
|
@@ -238,13 +309,10 @@ def record_file_preview(
|
|
|
238
309
|
pid_type="recid",
|
|
239
310
|
file_metadata=None,
|
|
240
311
|
is_preview=False,
|
|
312
|
+
include_deleted=False,
|
|
241
313
|
**kwargs,
|
|
242
314
|
):
|
|
243
315
|
"""Render a preview of the specified file."""
|
|
244
|
-
# Try to see if specific previewer is set
|
|
245
|
-
# TODO: what's the analog of: file_previewer = fileobj.get("previewer") ?
|
|
246
|
-
file_previewer = file_metadata.data.get("previewer")
|
|
247
|
-
|
|
248
316
|
url = url_for(
|
|
249
317
|
"invenio_app_rdm_records.record_file_download",
|
|
250
318
|
pid_value=pid_value,
|
|
@@ -253,18 +321,25 @@ def record_file_preview(
|
|
|
253
321
|
)
|
|
254
322
|
|
|
255
323
|
# Find a suitable previewer
|
|
256
|
-
fileobj = PreviewFile(file_metadata, pid_value, url)
|
|
257
|
-
for
|
|
258
|
-
|
|
259
|
-
|
|
324
|
+
fileobj = PreviewFile(file_metadata, pid_value, record, url)
|
|
325
|
+
# Try to see if specific previewer preference is set for the file
|
|
326
|
+
file_previewer = (file_metadata.data.get("metadata") or {}).get("previewer")
|
|
327
|
+
if file_previewer:
|
|
328
|
+
previewer = current_previewer.previewers.get(file_previewer)
|
|
329
|
+
if previewer and previewer.can_preview(fileobj):
|
|
330
|
+
return previewer.preview(fileobj)
|
|
331
|
+
|
|
332
|
+
# Go through all previewers to find the first one that can preview the file
|
|
333
|
+
for plugin in current_previewer.iter_previewers():
|
|
260
334
|
if plugin.can_preview(fileobj):
|
|
261
335
|
return plugin.preview(fileobj)
|
|
262
336
|
|
|
263
|
-
return
|
|
337
|
+
return default_previewer.preview(fileobj)
|
|
264
338
|
|
|
265
339
|
|
|
266
340
|
@pass_is_preview
|
|
267
|
-
@pass_file_item
|
|
341
|
+
@pass_file_item(is_media=False)
|
|
342
|
+
@add_signposting_content_resources
|
|
268
343
|
def record_file_download(pid_value, file_item=None, is_preview=False, **kwargs):
|
|
269
344
|
"""Download a file from a record."""
|
|
270
345
|
download = bool(request.args.get("download"))
|
|
@@ -278,16 +353,61 @@ def record_file_download(pid_value, file_item=None, is_preview=False, **kwargs):
|
|
|
278
353
|
return file_item.send_file(as_attachment=download)
|
|
279
354
|
|
|
280
355
|
|
|
356
|
+
@pass_record_or_draft(expand=False)
|
|
357
|
+
def record_thumbnail(pid_value, size, record=None, **kwargs):
|
|
358
|
+
"""Display a record's thumbnail."""
|
|
359
|
+
# Verify against allowed thumbnail sizes
|
|
360
|
+
if size not in current_app.config["APP_RDM_RECORD_THUMBNAIL_SIZES"]:
|
|
361
|
+
abort(404)
|
|
362
|
+
files = record.data.get("files", {})
|
|
363
|
+
default_preview = files.get("default_preview")
|
|
364
|
+
file_entries = files.get("entries", {})
|
|
365
|
+
if file_entries:
|
|
366
|
+
file_key = next(
|
|
367
|
+
(
|
|
368
|
+
key
|
|
369
|
+
for key in itertools.chain([default_preview], file_entries)
|
|
370
|
+
if key and Path(key).suffix[1:] in image_extensions
|
|
371
|
+
),
|
|
372
|
+
None,
|
|
373
|
+
)
|
|
374
|
+
if file_key:
|
|
375
|
+
file = current_rdm_records.records_service.files.read_file_metadata(
|
|
376
|
+
id_=pid_value, file_key=file_key, identity=g.identity
|
|
377
|
+
)
|
|
378
|
+
iiif_base_url = file["links"]["iiif_base"]
|
|
379
|
+
return redirect(f"{iiif_base_url}/full/{size},/0/default.png")
|
|
380
|
+
return abort(404)
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
# Media files download
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
@pass_is_preview
|
|
387
|
+
@pass_file_item(is_media=True)
|
|
388
|
+
def record_media_file_download(pid_value, file_item=None, is_preview=False, **kwargs):
|
|
389
|
+
"""Download a media file from a record."""
|
|
390
|
+
download = bool(request.args.get("download"))
|
|
391
|
+
|
|
392
|
+
# emit a file download stats event
|
|
393
|
+
emitter = current_stats.get_event_emitter("file-download")
|
|
394
|
+
if file_item is not None and emitter is not None:
|
|
395
|
+
obj = file_item._file.object_version
|
|
396
|
+
emitter(current_app, record=file_item._record, obj=obj, via_api=False)
|
|
397
|
+
|
|
398
|
+
return file_item.send_file(as_attachment=download)
|
|
399
|
+
|
|
400
|
+
|
|
281
401
|
@pass_record_latest
|
|
282
402
|
def record_latest(record=None, **kwargs):
|
|
283
|
-
"""Redirect to record'
|
|
284
|
-
return redirect(record["links"]["self_html"], code=
|
|
403
|
+
"""Redirect to record's latest version page."""
|
|
404
|
+
return redirect(record["links"]["self_html"], code=302)
|
|
285
405
|
|
|
286
406
|
|
|
287
407
|
@pass_record_from_pid
|
|
288
408
|
def record_from_pid(record=None, **kwargs):
|
|
289
|
-
"""Redirect to record'
|
|
290
|
-
return redirect(record["links"]["self_html"], code=
|
|
409
|
+
"""Redirect to record's latest version page."""
|
|
410
|
+
return redirect(record["links"]["self_html"], code=302)
|
|
291
411
|
|
|
292
412
|
|
|
293
413
|
#
|
|
@@ -298,14 +418,60 @@ def not_found_error(error):
|
|
|
298
418
|
return render_template(current_app.config["THEME_404_TEMPLATE"]), 404
|
|
299
419
|
|
|
300
420
|
|
|
421
|
+
def draft_not_found_error(error):
|
|
422
|
+
"""Handler for draft not found while published record exists."""
|
|
423
|
+
return (
|
|
424
|
+
render_template(
|
|
425
|
+
"invenio_app_rdm/records/draft_not_found.html",
|
|
426
|
+
record_id=error.pid_value,
|
|
427
|
+
),
|
|
428
|
+
404,
|
|
429
|
+
)
|
|
430
|
+
|
|
431
|
+
|
|
301
432
|
def record_tombstone_error(error):
|
|
302
433
|
"""Tombstone page."""
|
|
303
|
-
|
|
434
|
+
# the RecordDeletedError will have the following properties,
|
|
435
|
+
# while the PIDDeletedError won't
|
|
436
|
+
record = getattr(error, "record", None)
|
|
437
|
+
if (record_ui := getattr(error, "result_item", None)) is not None:
|
|
438
|
+
if record is None:
|
|
439
|
+
record = record_ui._record
|
|
440
|
+
|
|
441
|
+
record_ui = UIJSONSerializer().dump_obj(record_ui.to_dict())
|
|
442
|
+
|
|
443
|
+
# render a 404 page if the tombstone isn't visible
|
|
444
|
+
if not record.tombstone.is_visible:
|
|
445
|
+
return not_found_error(error)
|
|
446
|
+
|
|
447
|
+
# we only render a tombstone page if there is a record with a visible tombstone
|
|
448
|
+
return (
|
|
449
|
+
render_template(
|
|
450
|
+
"invenio_app_rdm/records/tombstone.html",
|
|
451
|
+
record=record_ui,
|
|
452
|
+
),
|
|
453
|
+
410,
|
|
454
|
+
)
|
|
304
455
|
|
|
305
456
|
|
|
306
457
|
def record_permission_denied_error(error):
|
|
307
|
-
"""Handle permission
|
|
458
|
+
"""Handle permission denied error on record views."""
|
|
308
459
|
if not current_user.is_authenticated:
|
|
309
460
|
# trigger the flask-login unauthorized handler
|
|
310
461
|
return current_app.login_manager.unauthorized()
|
|
462
|
+
|
|
463
|
+
record = getattr(error, "record", None)
|
|
464
|
+
|
|
465
|
+
if record:
|
|
466
|
+
is_restricted = record.get("access", {}).get("record", None) == "restricted"
|
|
467
|
+
has_doi = "doi" in record.get("pids", {})
|
|
468
|
+
if is_restricted and has_doi:
|
|
469
|
+
return (
|
|
470
|
+
render_template(
|
|
471
|
+
"invenio_app_rdm/records/restricted_with_doi_tombstone.html",
|
|
472
|
+
record=record,
|
|
473
|
+
),
|
|
474
|
+
403,
|
|
475
|
+
)
|
|
476
|
+
|
|
311
477
|
return render_template(current_app.config["THEME_403_TEMPLATE"]), 403
|
invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-submission/index.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
This file is part of Invenio.
|
|
4
|
-
Copyright (C) 2016-
|
|
4
|
+
Copyright (C) 2016-2025 CERN.
|
|
5
5
|
|
|
6
6
|
Invenio is free software; you can redistribute it and/or modify it
|
|
7
7
|
under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -23,15 +23,13 @@
|
|
|
23
23
|
{% set back_button_url = url_for("invenio_communities.communities_requests", pid_value=community.id) %}
|
|
24
24
|
{% endif %}
|
|
25
25
|
{% from "invenio_requests/macros/request_header.html" import inclusion_request_header %}
|
|
26
|
-
{{
|
|
27
|
-
inclusion_request_header(
|
|
26
|
+
{{ inclusion_request_header(
|
|
28
27
|
request=invenio_request,
|
|
29
28
|
record=record,
|
|
30
29
|
accepted=request_is_accepted,
|
|
31
30
|
back_button_url=back_button_url,
|
|
32
31
|
back_button_text=_("Back to requests")
|
|
33
|
-
)
|
|
34
|
-
}}
|
|
32
|
+
) }}
|
|
35
33
|
{%- endblock request_header %}
|
|
36
34
|
|
|
37
35
|
{% block request_timeline %}
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
{{ _("Conversation") }}
|
|
55
53
|
</a>
|
|
56
54
|
|
|
57
|
-
{% if
|
|
55
|
+
{% if record_ui %}
|
|
58
56
|
<a
|
|
59
57
|
role="tab"
|
|
60
58
|
class="item"
|
|
@@ -66,6 +64,19 @@
|
|
|
66
64
|
{{ _("Record") }}
|
|
67
65
|
</a>
|
|
68
66
|
{% endif %}
|
|
67
|
+
|
|
68
|
+
{% if checks %}
|
|
69
|
+
<a
|
|
70
|
+
role="tab"
|
|
71
|
+
class="item"
|
|
72
|
+
data-tab="checks"
|
|
73
|
+
aria-selected="false"
|
|
74
|
+
aria-controls="checks-tab-panel"
|
|
75
|
+
id="checks-tab"
|
|
76
|
+
>
|
|
77
|
+
<i class="{% include 'invenio_checks/requests/overall_severity_level.html' %}"></i> {{ _("Checks") }}
|
|
78
|
+
</a>
|
|
79
|
+
{% endif %}
|
|
69
80
|
</div>
|
|
70
81
|
|
|
71
82
|
<div
|
|
@@ -78,7 +89,21 @@
|
|
|
78
89
|
{{ super() }}
|
|
79
90
|
</div>
|
|
80
91
|
|
|
81
|
-
{% if
|
|
92
|
+
{% if checks %}
|
|
93
|
+
<div
|
|
94
|
+
class="ui bottom attached tab segment borderless"
|
|
95
|
+
data-tab="checks"
|
|
96
|
+
role="tabpanel"
|
|
97
|
+
aria-labelledby="checks-tab"
|
|
98
|
+
id="checks-tab-panel"
|
|
99
|
+
hidden="hidden"
|
|
100
|
+
>
|
|
101
|
+
{% include "invenio_checks/requests/details.html" %}
|
|
102
|
+
</div>
|
|
103
|
+
{% endif %}
|
|
104
|
+
|
|
105
|
+
{# The record tab content needs to be last since the HTML structure is complex and breaks following tab contents #}
|
|
106
|
+
{% if record_ui %}
|
|
82
107
|
<div
|
|
83
108
|
class="ui bottom attached tab segment borderless"
|
|
84
109
|
data-tab="record"
|
|
@@ -89,8 +114,9 @@
|
|
|
89
114
|
>
|
|
90
115
|
{% set use_theme_basic_template = false %}
|
|
91
116
|
{% set preview_submission_request = true %}
|
|
92
|
-
{% include
|
|
117
|
+
{% include config.APP_RDM_RECORD_LANDING_PAGE_TEMPLATE %}
|
|
93
118
|
</div>
|
|
94
119
|
{% endif %}
|
|
120
|
+
|
|
95
121
|
</div>
|
|
96
122
|
{% endblock request_timeline %}
|
invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/file-modification/index.html
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
This file is part of Invenio.
|
|
4
|
+
Copyright (C) 2016-2025 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
|
+
{% extends "invenio_requests/details/index.html" %}
|
|
11
|
+
|
|
12
|
+
{% set active_dashboard_menu_item = 'requests' %}
|
|
13
|
+
{% set active_community_header_menu_item = 'requests' %}
|
|
14
|
+
|
|
15
|
+
{%- block request_header %}
|
|
16
|
+
{% set back_button_url = url_for("invenio_app_rdm_users.requests") %}
|
|
17
|
+
{% from "invenio_requests/macros/request_header.html" import inclusion_request_header %}
|
|
18
|
+
{{ inclusion_request_header(
|
|
19
|
+
request=invenio_request,
|
|
20
|
+
record=record,
|
|
21
|
+
accepted=request_is_accepted,
|
|
22
|
+
back_button_url=back_button_url,
|
|
23
|
+
back_button_text=_("Back to requests")
|
|
24
|
+
) }}
|
|
25
|
+
{%- endblock request_header %}
|
|
26
|
+
|
|
27
|
+
{% block request_timeline %}
|
|
28
|
+
<div
|
|
29
|
+
class="ui container rdm-tab-container fluid rel-pt-2 ml-0-mobile mr-0-mobile"
|
|
30
|
+
id="request-request-deletion-tab-container"
|
|
31
|
+
>
|
|
32
|
+
<div
|
|
33
|
+
class="ui secondary pointing menu rdm-tab-menu"
|
|
34
|
+
id="request-deletion-request-tab"
|
|
35
|
+
>
|
|
36
|
+
<a
|
|
37
|
+
class="active item"
|
|
38
|
+
data-tab="conversation"
|
|
39
|
+
role="tab"
|
|
40
|
+
aria-selected="true"
|
|
41
|
+
aria-controls="conversation-tab-panel"
|
|
42
|
+
id="conversation-tab"
|
|
43
|
+
>
|
|
44
|
+
{{ _("Conversation") }}
|
|
45
|
+
</a>
|
|
46
|
+
|
|
47
|
+
{% if record_ui %}
|
|
48
|
+
<a
|
|
49
|
+
role="tab"
|
|
50
|
+
class="item"
|
|
51
|
+
data-tab="record"
|
|
52
|
+
aria-selected="false"
|
|
53
|
+
aria-controls="record-tab-panel"
|
|
54
|
+
id="record-tab"
|
|
55
|
+
>
|
|
56
|
+
{{ _("Record") }}
|
|
57
|
+
</a>
|
|
58
|
+
{% endif %}
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div
|
|
62
|
+
class="ui bottom attached tab segment active borderless p-0"
|
|
63
|
+
data-tab="conversation"
|
|
64
|
+
role="tabpanel"
|
|
65
|
+
aria-labelledby="conversation-tab"
|
|
66
|
+
id="conversation-tab-panel"
|
|
67
|
+
>
|
|
68
|
+
{{ super() }}
|
|
69
|
+
</div>
|
|
70
|
+
|
|
71
|
+
{# The record tab content needs to be last since the HTML structure is complex and breaks following tab contents #}
|
|
72
|
+
{% if record_ui %}
|
|
73
|
+
<div
|
|
74
|
+
class="ui bottom attached tab segment borderless"
|
|
75
|
+
data-tab="record"
|
|
76
|
+
role="tabpanel"
|
|
77
|
+
aria-labelledby="record-tab"
|
|
78
|
+
id="record-tab-panel"
|
|
79
|
+
hidden="hidden"
|
|
80
|
+
>
|
|
81
|
+
{% set use_theme_basic_template = false %}
|
|
82
|
+
{% set preview_submission_request = true %}
|
|
83
|
+
{% include config.APP_RDM_RECORD_LANDING_PAGE_TEMPLATE %}
|
|
84
|
+
</div>
|
|
85
|
+
{% endif %}
|
|
86
|
+
|
|
87
|
+
</div>
|
|
88
|
+
{% endblock request_timeline %}
|