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,5 +1,5 @@
|
|
|
1
1
|
// This file is part of InvenioRDM
|
|
2
|
-
// Copyright (C) 2020-
|
|
2
|
+
// Copyright (C) 2020-2023 CERN.
|
|
3
3
|
// Copyright (C) 2020-2021 Northwestern University.
|
|
4
4
|
// Copyright (C) 2021 Graz University of Technology.
|
|
5
5
|
// Copyright (C) 2021 New York University.
|
|
@@ -7,176 +7,41 @@
|
|
|
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
|
-
import {
|
|
11
|
-
RequestAcceptButton,
|
|
12
|
-
RequestCancelButton,
|
|
13
|
-
RequestDeclineButton,
|
|
14
|
-
} from "@js/invenio_requests/components/Buttons";
|
|
15
|
-
import {
|
|
16
|
-
RequestAcceptModalTrigger,
|
|
17
|
-
RequestCancelModalTrigger,
|
|
18
|
-
RequestDeclineModalTrigger,
|
|
19
|
-
} from "@js/invenio_requests/components/ModalTriggers";
|
|
20
|
-
import {
|
|
21
|
-
LabelStatusAccept,
|
|
22
|
-
LabelStatusCancel,
|
|
23
|
-
LabelStatusDecline,
|
|
24
|
-
LabelStatusDelete,
|
|
25
|
-
LabelStatusExpire,
|
|
26
|
-
LabelStatusSubmit,
|
|
27
|
-
LabelTypeCommunityInclusion,
|
|
28
|
-
LabelTypeCommunityInvitation,
|
|
29
|
-
LabelTypeCommunitySubmission,
|
|
30
|
-
} from "@js/invenio_requests/request";
|
|
31
10
|
import { createSearchAppInit } from "@js/invenio_search_ui";
|
|
32
11
|
import {
|
|
33
12
|
ContribBucketAggregationElement,
|
|
34
13
|
ContribBucketAggregationValuesElement,
|
|
35
14
|
ContribSearchAppFacets,
|
|
36
|
-
InvenioSearchPagination,
|
|
37
|
-
SearchAppFacets,
|
|
38
|
-
SearchAppResultsPane,
|
|
39
15
|
} from "@js/invenio_search_ui/components";
|
|
40
|
-
import { i18next } from "@translations/invenio_app_rdm/i18next";
|
|
41
|
-
import _get from "lodash/get";
|
|
42
|
-
import _truncate from "lodash/truncate";
|
|
43
16
|
import PropTypes from "prop-types";
|
|
44
|
-
import React
|
|
45
|
-
import { GridResponsiveSidebarColumn } from "react-invenio-forms";
|
|
17
|
+
import React from "react";
|
|
46
18
|
import { overrideStore, parametrize } from "react-overridable";
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
Button,
|
|
50
|
-
Card,
|
|
51
|
-
Container,
|
|
52
|
-
Grid,
|
|
53
|
-
Header,
|
|
54
|
-
Icon,
|
|
55
|
-
Segment,
|
|
56
|
-
} from "semantic-ui-react";
|
|
19
|
+
import { withState } from "react-searchkit";
|
|
20
|
+
import { defaultContribComponents } from "@js/invenio_requests/contrib";
|
|
57
21
|
import { RDMRecordSearchBarElement } from "../search/components";
|
|
58
|
-
import {
|
|
59
|
-
|
|
60
|
-
|
|
22
|
+
import {
|
|
23
|
+
MobileRequestItem,
|
|
24
|
+
ComputerTabletRequestItem,
|
|
25
|
+
RequestsSearchLayout,
|
|
26
|
+
RequestsEmptyResultsWithState,
|
|
27
|
+
RequestsResults,
|
|
28
|
+
} from "@js/invenio_requests/search";
|
|
61
29
|
|
|
62
30
|
const appName = "InvenioAppRdm.DashboardRequests";
|
|
63
31
|
|
|
64
|
-
export const RequestsResults = ({
|
|
65
|
-
sortOptions,
|
|
66
|
-
paginationOptions,
|
|
67
|
-
currentResultsState,
|
|
68
|
-
}) => {
|
|
69
|
-
const { total } = currentResultsState.data;
|
|
70
|
-
return (
|
|
71
|
-
total && (
|
|
72
|
-
<Grid>
|
|
73
|
-
<Grid.Row>
|
|
74
|
-
<Grid.Column width={16}>
|
|
75
|
-
<Segment>
|
|
76
|
-
<Grid>
|
|
77
|
-
<Grid.Row
|
|
78
|
-
verticalAlign="middle"
|
|
79
|
-
className="small pt-5 pb-5 highlight-background"
|
|
80
|
-
>
|
|
81
|
-
<Grid.Column
|
|
82
|
-
mobile={16}
|
|
83
|
-
tablet={4}
|
|
84
|
-
computer={4}
|
|
85
|
-
className="mt-5 mb-5"
|
|
86
|
-
>
|
|
87
|
-
<Count
|
|
88
|
-
label={() => (
|
|
89
|
-
<>
|
|
90
|
-
{total} {i18next.t("result(s) found")}
|
|
91
|
-
</>
|
|
92
|
-
)}
|
|
93
|
-
/>
|
|
94
|
-
</Grid.Column>
|
|
95
|
-
<Grid.Column
|
|
96
|
-
mobile={16}
|
|
97
|
-
tablet={12}
|
|
98
|
-
computer={12}
|
|
99
|
-
className="text-align-right-tablet text-align-right-computer"
|
|
100
|
-
>
|
|
101
|
-
{sortOptions && (
|
|
102
|
-
<Sort
|
|
103
|
-
values={sortOptions}
|
|
104
|
-
label={(cmp) => (
|
|
105
|
-
<>
|
|
106
|
-
<label className="mr-10">{i18next.t("Sort by")}</label>
|
|
107
|
-
{cmp}
|
|
108
|
-
</>
|
|
109
|
-
)}
|
|
110
|
-
/>
|
|
111
|
-
)}
|
|
112
|
-
</Grid.Column>
|
|
113
|
-
</Grid.Row>
|
|
114
|
-
|
|
115
|
-
<Grid.Row>
|
|
116
|
-
<Grid.Column>
|
|
117
|
-
<ResultsList />
|
|
118
|
-
</Grid.Column>
|
|
119
|
-
</Grid.Row>
|
|
120
|
-
</Grid>
|
|
121
|
-
</Segment>
|
|
122
|
-
</Grid.Column>
|
|
123
|
-
</Grid.Row>
|
|
124
|
-
<InvenioSearchPagination paginationOptions={paginationOptions} />
|
|
125
|
-
</Grid>
|
|
126
|
-
)
|
|
127
|
-
);
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
RequestsResults.propTypes = {
|
|
131
|
-
sortOptions: PropTypes.array.isRequired,
|
|
132
|
-
paginationOptions: PropTypes.object.isRequired,
|
|
133
|
-
currentResultsState: PropTypes.object.isRequired,
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export function RequestsResultsGridItemTemplate({ result, index }) {
|
|
137
|
-
return (
|
|
138
|
-
<Card fluid key={index} href={`/me/requests/${result.metadata.id}`}>
|
|
139
|
-
<Card.Content>
|
|
140
|
-
<Card.Header>{result.metadata.title}</Card.Header>
|
|
141
|
-
<Card.Description>
|
|
142
|
-
<div dangerouslySetInnerHTML={{ __html: result.metadata.description }} />
|
|
143
|
-
</Card.Description>
|
|
144
|
-
</Card.Content>
|
|
145
|
-
</Card>
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
RequestsResultsGridItemTemplate.propTypes = {
|
|
150
|
-
result: PropTypes.object.isRequired,
|
|
151
|
-
index: PropTypes.string.isRequired,
|
|
152
|
-
};
|
|
153
|
-
|
|
154
32
|
export function RequestsResultsItemTemplateDashboard({ result }) {
|
|
155
|
-
const ComputerTabletRequestsItemWithState = withState(
|
|
156
|
-
const MobileRequestsItemWithState = withState(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
if (isCreatorUser) {
|
|
163
|
-
creatorName =
|
|
164
|
-
result.expanded?.created_by.profile?.full_name ||
|
|
165
|
-
result.expanded?.created_by.username ||
|
|
166
|
-
createdBy.user;
|
|
167
|
-
} else if (isCreatorCommunity) {
|
|
168
|
-
creatorName = result.expanded?.created_by.metadata?.title || createdBy.community;
|
|
33
|
+
const ComputerTabletRequestsItemWithState = withState(ComputerTabletRequestItem);
|
|
34
|
+
const MobileRequestsItemWithState = withState(MobileRequestItem);
|
|
35
|
+
let detailsURL;
|
|
36
|
+
if (result.type === "user-access-request") {
|
|
37
|
+
detailsURL = `/access/requests/${result.id}`;
|
|
38
|
+
} else {
|
|
39
|
+
detailsURL = `/me/requests/${result.id}`;
|
|
169
40
|
}
|
|
170
|
-
const extraData = {
|
|
171
|
-
differenceInDays: timestampToRelativeTime(createdDate.toISOString()),
|
|
172
|
-
isCreatorCommunity: isCreatorCommunity,
|
|
173
|
-
creatorName: creatorName,
|
|
174
|
-
};
|
|
175
|
-
|
|
176
41
|
return (
|
|
177
42
|
<>
|
|
178
|
-
<ComputerTabletRequestsItemWithState result={result}
|
|
179
|
-
<MobileRequestsItemWithState result={result}
|
|
43
|
+
<ComputerTabletRequestsItemWithState result={result} detailsURL={detailsURL} />
|
|
44
|
+
<MobileRequestsItemWithState result={result} detailsURL={detailsURL} />
|
|
180
45
|
</>
|
|
181
46
|
);
|
|
182
47
|
}
|
|
@@ -185,272 +50,22 @@ RequestsResultsItemTemplateDashboard.propTypes = {
|
|
|
185
50
|
result: PropTypes.object.isRequired,
|
|
186
51
|
};
|
|
187
52
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
export const RDMRecordResultsGridItem = ({ result, index }) => {
|
|
192
|
-
const descriptionStripped = _get(result, "ui.description_stripped", "No description");
|
|
193
|
-
return (
|
|
194
|
-
<Card fluid key={index} href={`/me/requests/${result.id}`}>
|
|
195
|
-
<Card.Content>
|
|
196
|
-
<Card.Header>{result.metadata.title}</Card.Header>
|
|
197
|
-
<Card.Description>
|
|
198
|
-
{_truncate(descriptionStripped, { length: 200 })}
|
|
199
|
-
</Card.Description>
|
|
200
|
-
</Card.Content>
|
|
201
|
-
</Card>
|
|
202
|
-
);
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
RDMRecordResultsGridItem.propTypes = {
|
|
206
|
-
result: PropTypes.object.isRequired,
|
|
207
|
-
index: PropTypes.string.isRequired,
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
export class RequestStatusFilterComponent extends Component {
|
|
211
|
-
constructor(props) {
|
|
212
|
-
super(props);
|
|
213
|
-
const { currentQueryState } = this.props;
|
|
214
|
-
const userSelectionFilters = currentQueryState.filters;
|
|
215
|
-
const openFilter = userSelectionFilters.find((obj) => obj.includes("is_open"));
|
|
216
|
-
this.state = {
|
|
217
|
-
open: openFilter ? openFilter.includes("true") : undefined,
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Updates queryFilters based on selection and removing previous filters
|
|
223
|
-
* @param {string} OpenStatus true if open requests and false if closed requests
|
|
224
|
-
*/
|
|
225
|
-
retrieveRequests = (OpenStatus) => {
|
|
226
|
-
const { currentQueryState, updateQueryState } = this.props;
|
|
227
|
-
const { open } = this.state;
|
|
228
|
-
|
|
229
|
-
if (open === OpenStatus) {
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
this.setState({
|
|
233
|
-
open: OpenStatus,
|
|
234
|
-
});
|
|
235
|
-
currentQueryState.filters = [];
|
|
236
|
-
currentQueryState.filters.push(["is_open", OpenStatus]);
|
|
237
|
-
updateQueryState(currentQueryState);
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
retrieveOpenRequests = () => {
|
|
241
|
-
this.retrieveRequests(true);
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
retrieveClosedRequests = () => {
|
|
245
|
-
this.retrieveRequests(false);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
render() {
|
|
249
|
-
const { open } = this.state;
|
|
250
|
-
return (
|
|
251
|
-
<Button.Group basic>
|
|
252
|
-
<Button
|
|
253
|
-
className="request-search-filter"
|
|
254
|
-
onClick={this.retrieveOpenRequests}
|
|
255
|
-
active={open === true}
|
|
256
|
-
>
|
|
257
|
-
{i18next.t("Open")}
|
|
258
|
-
</Button>
|
|
259
|
-
<Button
|
|
260
|
-
className="request-search-filter"
|
|
261
|
-
onClick={this.retrieveClosedRequests}
|
|
262
|
-
active={open === false}
|
|
263
|
-
>
|
|
264
|
-
{i18next.t("Closed")}
|
|
265
|
-
</Button>
|
|
266
|
-
</Button.Group>
|
|
267
|
-
);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
RequestStatusFilterComponent.propTypes = {
|
|
272
|
-
updateQueryState: PropTypes.func.isRequired,
|
|
273
|
-
currentQueryState: PropTypes.object.isRequired,
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
export const RequestStatusFilter = withState(RequestStatusFilterComponent);
|
|
277
|
-
|
|
278
|
-
export const RDMRequestsSearchLayout = (props) => {
|
|
279
|
-
const [sidebarVisible, setSidebarVisible] = React.useState(false);
|
|
280
|
-
const { config } = props;
|
|
281
|
-
return (
|
|
282
|
-
<Container>
|
|
283
|
-
<Grid>
|
|
284
|
-
<Grid.Row>
|
|
285
|
-
<Grid.Column only="mobile tablet" mobile={3} tablet={1}>
|
|
286
|
-
<Button
|
|
287
|
-
basic
|
|
288
|
-
size="medium"
|
|
289
|
-
icon="sliders"
|
|
290
|
-
onClick={() => setSidebarVisible(true)}
|
|
291
|
-
aria-label={i18next.t("Filter results")}
|
|
292
|
-
className="rel-mb-1"
|
|
293
|
-
/>
|
|
294
|
-
</Grid.Column>
|
|
295
|
-
|
|
296
|
-
<Grid.Column
|
|
297
|
-
mobile={13}
|
|
298
|
-
tablet={4}
|
|
299
|
-
computer={3}
|
|
300
|
-
floated="right"
|
|
301
|
-
className="text-align-right-mobile"
|
|
302
|
-
>
|
|
303
|
-
<RequestStatusFilter className="rel-mb-1" />
|
|
304
|
-
</Grid.Column>
|
|
305
|
-
|
|
306
|
-
<Grid.Column mobile={16} tablet={11} computer={9}>
|
|
307
|
-
<SearchBar placeholder={i18next.t("Search in my requests...")} />
|
|
308
|
-
</Grid.Column>
|
|
309
|
-
</Grid.Row>
|
|
310
|
-
|
|
311
|
-
<Grid.Row>
|
|
312
|
-
<GridResponsiveSidebarColumn
|
|
313
|
-
width={4}
|
|
314
|
-
open={sidebarVisible}
|
|
315
|
-
onHideClick={() => setSidebarVisible(false)}
|
|
316
|
-
>
|
|
317
|
-
<SearchAppFacets aggs={config.aggs} appName={appName} />
|
|
318
|
-
</GridResponsiveSidebarColumn>
|
|
319
|
-
<Grid.Column mobile={16} tablet={16} computer={12}>
|
|
320
|
-
<SearchAppResultsPane
|
|
321
|
-
layoutOptions={config.layoutOptions}
|
|
322
|
-
appName={appName}
|
|
323
|
-
/>
|
|
324
|
-
</Grid.Column>
|
|
325
|
-
</Grid.Row>
|
|
326
|
-
</Grid>
|
|
327
|
-
</Container>
|
|
328
|
-
);
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
RDMRequestsSearchLayout.propTypes = {
|
|
332
|
-
config: PropTypes.object.isRequired,
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
export const RDMRequestsEmptyResults = (props) => {
|
|
336
|
-
const { queryString, userSelectionFilters, updateQueryState } = props;
|
|
337
|
-
const isOpen = userSelectionFilters.some(
|
|
338
|
-
(obj) => obj.includes("is_open") && obj.includes("true")
|
|
339
|
-
);
|
|
340
|
-
const filtersToNotReset = userSelectionFilters.find((obj) => obj.includes("is_open"));
|
|
341
|
-
const elementsToReset = {
|
|
342
|
-
queryString: "",
|
|
343
|
-
page: 1,
|
|
344
|
-
filters: [filtersToNotReset],
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
const AllDone = () => {
|
|
348
|
-
return (
|
|
349
|
-
<Header as="h1" icon>
|
|
350
|
-
{i18next.t("All done!")}
|
|
351
|
-
<Header.Subheader>
|
|
352
|
-
{i18next.t("You've caught up with all open requests.")}
|
|
353
|
-
</Header.Subheader>
|
|
354
|
-
</Header>
|
|
355
|
-
);
|
|
356
|
-
};
|
|
357
|
-
|
|
358
|
-
const NoResults = () => {
|
|
359
|
-
return (
|
|
360
|
-
<>
|
|
361
|
-
<Header icon>
|
|
362
|
-
<Icon name="search" />
|
|
363
|
-
{i18next.t("No requests found!")}
|
|
364
|
-
</Header>
|
|
365
|
-
{queryString && (
|
|
366
|
-
<Button primary onClick={() => updateQueryState(elementsToReset)}>
|
|
367
|
-
{i18next.t("Reset search")}
|
|
368
|
-
</Button>
|
|
369
|
-
)}
|
|
370
|
-
</>
|
|
371
|
-
);
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
const allRequestsDone = isOpen && !queryString;
|
|
375
|
-
return (
|
|
376
|
-
<Segment placeholder textAlign="center">
|
|
377
|
-
{allRequestsDone ? <AllDone /> : <NoResults />}
|
|
378
|
-
</Segment>
|
|
379
|
-
);
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
RDMRequestsEmptyResults.propTypes = {
|
|
383
|
-
queryString: PropTypes.string.isRequired,
|
|
384
|
-
updateQueryState: PropTypes.func.isRequired,
|
|
385
|
-
userSelectionFilters: PropTypes.array.isRequired,
|
|
386
|
-
};
|
|
387
|
-
|
|
388
|
-
export const RDMRequestsEmptyResultsWithState = withState(RDMRequestsEmptyResults);
|
|
389
|
-
|
|
390
|
-
const RequestAcceptModalTriggerWithConfig = parametrize(RequestAcceptModalTrigger, {
|
|
391
|
-
size: "mini",
|
|
392
|
-
className: "ml-5",
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
const RequestDeclineModalTriggerWithConfig = parametrize(RequestDeclineModalTrigger, {
|
|
396
|
-
size: "mini",
|
|
397
|
-
className: "ml-5",
|
|
53
|
+
const RequestsSearchLayoutWithApp = parametrize(RequestsSearchLayout, {
|
|
54
|
+
appName: appName,
|
|
55
|
+
showSharedFilters: true,
|
|
398
56
|
});
|
|
399
57
|
|
|
400
|
-
const RequestCancelModalTriggerWithConfig = parametrize(RequestCancelModalTrigger, {
|
|
401
|
-
size: "mini",
|
|
402
|
-
className: "ml-5",
|
|
403
|
-
});
|
|
404
|
-
|
|
405
|
-
const CommunitySubmission = () => (
|
|
406
|
-
<LabelTypeCommunitySubmission className="primary" size="small" />
|
|
407
|
-
);
|
|
408
|
-
|
|
409
|
-
const CommunityInclusion = () => (
|
|
410
|
-
<LabelTypeCommunityInclusion className="primary" size="small" />
|
|
411
|
-
);
|
|
412
|
-
|
|
413
|
-
const CommunityInvitation = () => (
|
|
414
|
-
<LabelTypeCommunityInvitation className="primary" size="small" />
|
|
415
|
-
);
|
|
416
|
-
|
|
417
|
-
const Submitted = () => <LabelStatusSubmit className="primary" size="small" />;
|
|
418
|
-
|
|
419
|
-
const Deleted = () => <LabelStatusDelete className="negative" size="small" />;
|
|
420
|
-
|
|
421
|
-
const Accepted = () => <LabelStatusAccept className="positive" size="small" />;
|
|
422
|
-
|
|
423
|
-
const Declined = () => <LabelStatusDecline className="negative" size="small" />;
|
|
424
|
-
|
|
425
|
-
const Cancelled = () => <LabelStatusCancel className="neutral" size="small" />;
|
|
426
|
-
|
|
427
|
-
const Expired = () => <LabelStatusExpire className="expired" size="small" />;
|
|
428
|
-
|
|
429
58
|
export const defaultComponents = {
|
|
430
59
|
[`${appName}.BucketAggregation.element`]: ContribBucketAggregationElement,
|
|
431
60
|
[`${appName}.BucketAggregationValues.element`]: ContribBucketAggregationValuesElement,
|
|
432
61
|
[`${appName}.SearchApp.facets`]: ContribSearchAppFacets,
|
|
433
62
|
[`${appName}.ResultsList.item`]: RequestsResultsItemTemplateDashboard,
|
|
434
|
-
[`${appName}.ResultsGrid.item`]:
|
|
435
|
-
[`${appName}.SearchApp.layout`]:
|
|
63
|
+
[`${appName}.ResultsGrid.item`]: () => null,
|
|
64
|
+
[`${appName}.SearchApp.layout`]: RequestsSearchLayoutWithApp,
|
|
436
65
|
[`${appName}.SearchApp.results`]: RequestsResults,
|
|
437
66
|
[`${appName}.SearchBar.element`]: RDMRecordSearchBarElement,
|
|
438
|
-
[`${appName}.EmptyResults.element`]:
|
|
439
|
-
|
|
440
|
-
[`RequestTypeLabel.layout.community-inclusion`]: CommunityInclusion,
|
|
441
|
-
[`RequestTypeLabel.layout.community-invitation`]: CommunityInvitation,
|
|
442
|
-
[`RequestStatusLabel.layout.submitted`]: Submitted,
|
|
443
|
-
[`RequestStatusLabel.layout.deleted`]: Deleted,
|
|
444
|
-
[`RequestStatusLabel.layout.accepted`]: Accepted,
|
|
445
|
-
[`RequestStatusLabel.layout.declined`]: Declined,
|
|
446
|
-
[`RequestStatusLabel.layout.cancelled`]: Cancelled,
|
|
447
|
-
[`RequestStatusLabel.layout.expired`]: Expired,
|
|
448
|
-
[`RequestActionModalTrigger.accept`]: RequestAcceptModalTriggerWithConfig,
|
|
449
|
-
[`RequestActionModalTrigger.decline`]: RequestDeclineModalTriggerWithConfig,
|
|
450
|
-
[`RequestActionModalTrigger.cancel`]: RequestCancelModalTriggerWithConfig,
|
|
451
|
-
[`RequestActionButton.cancel`]: RequestCancelButton,
|
|
452
|
-
[`RequestActionButton.decline`]: RequestDeclineButton,
|
|
453
|
-
[`RequestActionButton.accept`]: RequestAcceptButton,
|
|
67
|
+
[`${appName}.EmptyResults.element`]: RequestsEmptyResultsWithState,
|
|
68
|
+
...defaultContribComponents,
|
|
454
69
|
};
|
|
455
70
|
|
|
456
71
|
const overriddenComponents = overrideStore.getAll();
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// Copyright (C) 2020-2021 Northwestern University.
|
|
4
4
|
// Copyright (C) 2021 Graz University of Technology.
|
|
5
5
|
// Copyright (C) 2021 New York University.
|
|
6
|
+
// Copyright (C) 2024 KTH Royal Institute of Technology.
|
|
6
7
|
//
|
|
7
8
|
// Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
8
9
|
// under the terms of the MIT License; see LICENSE file for more details.
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
RDMRecordSearchBarElement,
|
|
20
21
|
RDMToggleComponent,
|
|
21
22
|
} from "../search/components";
|
|
22
|
-
import { http } from "react-invenio-forms";
|
|
23
23
|
import { DashboardResultView, DashboardSearchLayoutHOC } from "./base";
|
|
24
24
|
import { createSearchAppInit } from "@js/invenio_search_ui";
|
|
25
25
|
import { ComputerTabletUploadsItem } from "./uploads_items/ComputerTabletUploadsItem";
|
|
@@ -41,15 +41,10 @@ const statuses = {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export const RDMRecordResultsListItem = ({ result }) => {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
window.location = `/uploads/${result.id}`;
|
|
49
|
-
})
|
|
50
|
-
.catch((error) => {
|
|
51
|
-
console.log(error.response.data);
|
|
52
|
-
});
|
|
44
|
+
const viewDraft = () => {
|
|
45
|
+
// The upload view is responsible to redirect the user to the upload form or
|
|
46
|
+
// the preview page depending on the permissions they have.
|
|
47
|
+
window.location = `/uploads/${result.id}`;
|
|
53
48
|
};
|
|
54
49
|
|
|
55
50
|
const isPublished = result.is_published;
|
|
@@ -88,14 +83,14 @@ export const RDMRecordResultsListItem = ({ result }) => {
|
|
|
88
83
|
<>
|
|
89
84
|
<ComputerTabletUploadsItem
|
|
90
85
|
result={result}
|
|
91
|
-
|
|
86
|
+
viewDraft={viewDraft}
|
|
92
87
|
statuses={statuses}
|
|
93
88
|
access={access}
|
|
94
89
|
uiMetadata={uiMetadata}
|
|
95
90
|
/>
|
|
96
91
|
<MobileUploadsItem
|
|
97
92
|
result={result}
|
|
98
|
-
|
|
93
|
+
viewDraft={viewDraft}
|
|
99
94
|
statuses={statuses}
|
|
100
95
|
access={access}
|
|
101
96
|
uiMetadata={uiMetadata}
|
|
@@ -112,7 +107,11 @@ RDMRecordResultsListItem.propTypes = {
|
|
|
112
107
|
// these components in RDM result broken.
|
|
113
108
|
|
|
114
109
|
export const RDMRecordResultsGridItem = ({ result, index }) => {
|
|
115
|
-
const descriptionStripped = _get(
|
|
110
|
+
const descriptionStripped = _get(
|
|
111
|
+
result,
|
|
112
|
+
"ui.description_stripped",
|
|
113
|
+
i18next.t("No description")
|
|
114
|
+
);
|
|
116
115
|
return (
|
|
117
116
|
<Card fluid key={index} href={`/records/${result.id}`}>
|
|
118
117
|
<Card.Content>
|
|
@@ -176,10 +175,12 @@ export const DashboardUploadsSearchLayout = DashboardSearchLayoutHOC({
|
|
|
176
175
|
/>
|
|
177
176
|
),
|
|
178
177
|
appName: appName,
|
|
178
|
+
mineLabel: i18next.t("My uploads"),
|
|
179
|
+
showSharedFilters: true,
|
|
179
180
|
});
|
|
180
181
|
|
|
181
182
|
const ContribSearchAppFacetsWithConfig = parametrize(ContribSearchAppFacets, {
|
|
182
|
-
|
|
183
|
+
toggle: true,
|
|
183
184
|
});
|
|
184
185
|
|
|
185
186
|
const DashboardResultViewWAppName = parametrize(DashboardResultView, {
|