invenio-app-rdm 8.0.0.dev9__py2.py3-none-any.whl → 14.0.0b4.dev4__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- invenio_app_rdm/__init__.py +13 -4
- invenio_app_rdm/administration/__init__.py +8 -0
- invenio_app_rdm/administration/audit_logs/__init__.py +12 -0
- invenio_app_rdm/administration/audit_logs/audit_logs.py +81 -0
- invenio_app_rdm/administration/domains/__init__.py +22 -0
- invenio_app_rdm/administration/domains/domains.py +159 -0
- invenio_app_rdm/administration/moderation/__init__.py +11 -0
- invenio_app_rdm/administration/moderation/requests.py +175 -0
- invenio_app_rdm/administration/records/__init__.py +15 -0
- invenio_app_rdm/administration/records/records.py +163 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/audit_logs.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/domains_search.html +13 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/records/drafts.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/records/records.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/requests.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/requests_details.html +93 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/user_moderation.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/user_moderation_details.html +14 -0
- invenio_app_rdm/administration/templates/semantic-ui/invenio_app_rdm/administration/users_search.html +14 -0
- invenio_app_rdm/administration/user_moderation/__init__.py +11 -0
- invenio_app_rdm/administration/user_moderation/user_moderation.py +175 -0
- invenio_app_rdm/administration/users/__init__.py +12 -0
- invenio_app_rdm/administration/users/users.py +130 -0
- invenio_app_rdm/administration/views/__init__.py +11 -0
- invenio_app_rdm/administration/views/ui.py +21 -0
- invenio_app_rdm/cli.py +95 -0
- invenio_app_rdm/communities_ui/__init__.py +9 -0
- invenio_app_rdm/communities_ui/searchapp.py +27 -0
- invenio_app_rdm/communities_ui/sitemap.py +63 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/collections/collection.html +60 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/collections/macros.html +43 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/details/browse/index.html +59 -0
- invenio_app_rdm/communities_ui/templates/semantic-ui/invenio_communities/records/index.html +24 -0
- invenio_app_rdm/communities_ui/views/__init__.py +13 -0
- invenio_app_rdm/communities_ui/views/communities.py +206 -0
- invenio_app_rdm/communities_ui/views/ui.py +93 -0
- invenio_app_rdm/config.py +1072 -182
- invenio_app_rdm/ext.py +157 -0
- invenio_app_rdm/fixtures/__init__.py +56 -0
- invenio_app_rdm/fixtures/data/oai_sets.yaml +6 -0
- invenio_app_rdm/fixtures/oai_sets.py +20 -0
- invenio_app_rdm/fixtures/pages/.gitkeep +1 -0
- invenio_app_rdm/fixtures/pages.py +76 -0
- invenio_app_rdm/records_ui/previewer/__init__.py +9 -0
- invenio_app_rdm/records_ui/previewer/iiif_simple.py +51 -0
- invenio_app_rdm/records_ui/searchapp.py +46 -232
- invenio_app_rdm/records_ui/sitemap.py +44 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/deposit.html +63 -18
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/detail.html +316 -169
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/access-form.html +64 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/citation.html +4 -3
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/contact.html +2 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/creatibutors.html +22 -20
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/description.html +7 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/details.html +299 -167
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/doi.html +3 -24
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/meta.html +36 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/citations.html +6 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/communities.html +34 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/details.html +20 -15
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/export.html +18 -41
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/external_resources.html +55 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/keywords_subjects.html +9 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/licenses.html +62 -49
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/locations.html +23 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/manage_menu.html +33 -6
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/metrics.html +5 -9
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/technical_metadata.html +21 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/side_bar/versions.html +15 -5
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/stats.html +112 -90
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/details/subjects.html +21 -19
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/draft_not_found.html +17 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/export.html +3 -2
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/iiif_preview.html +3 -7
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/creatibutors.html +69 -48
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/detail.html +234 -49
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/doi.html +36 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/files.html +170 -71
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/locations.html +62 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/stats_popup.html +21 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/macros/version.html +3 -2
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/restricted_with_doi_tombstone.html +33 -0
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/search.html +3 -1
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/tombstone.html +55 -12
- invenio_app_rdm/records_ui/utils.py +127 -2
- invenio_app_rdm/records_ui/views/__init__.py +114 -38
- invenio_app_rdm/records_ui/views/decorators.py +395 -117
- invenio_app_rdm/records_ui/views/deposits.py +414 -104
- invenio_app_rdm/records_ui/views/filters.py +118 -11
- invenio_app_rdm/records_ui/views/records.py +395 -66
- invenio_app_rdm/redirector/__init__.py +8 -0
- invenio_app_rdm/redirector/resource.py +106 -0
- invenio_app_rdm/redirector/views.py +18 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-inclusion/index.html +14 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-invitation/community_dashboard.html +38 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-invitation/user_dashboard.html +26 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/community-submission/index.html +129 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/file-modification/index.html +88 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/guest-access-request/index.html +66 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/macros/request_header.html +78 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/record-deletion/index.html +95 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/subcommunity/index.html +49 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/subcommunity-invitation/index.html +49 -0
- invenio_app_rdm/requests_ui/templates/semantic-ui/invenio_requests/user-access-request/index.html +59 -0
- invenio_app_rdm/requests_ui/views/__init__.py +1 -3
- invenio_app_rdm/requests_ui/views/requests.py +345 -53
- invenio_app_rdm/requests_ui/views/ui.py +38 -9
- invenio_app_rdm/tasks.py +45 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/AuditLogActions.js +136 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/ViewJson.js +35 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/ViewRecentChanges.js +119 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/index.js +31 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/search/SearchResultItemLayout.js +87 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/auditLogs/search/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/CompareRevisionsDropdown.js +89 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUser.js +92 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/ImpersonateUserForm.js +199 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/RevisionsDiffViewer.js +80 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/SetQuotaAction.js +109 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/SetQuotaForm.js +196 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/components/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/index.js +27 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/search/SearchResultItemLayout.js +185 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/domains/search/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/drafts/index.js +32 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/CompareRevisions.js +129 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RecordActions.js +75 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RecordResourceActions.js +185 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RemovalReasonsSelect.js +85 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/RestoreConfirmation.js +108 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/TombstoneForm.js +212 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/api/api.js +38 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/api/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/api/routes.js +30 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/index.js +40 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/AdministrationSearchLayout.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/RecordSearchLayout.js +84 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/SearchResultItemLayout.js +171 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/filters/DeletionStatusFilter.js +121 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/filters/index.js +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/records/search/index.js +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/requests/RequestsSearchResultItem.js +79 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/requests/RequestsSearchbarLayout.js +48 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/requests/index.js +22 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/ModerationActions.js +103 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/index.js +29 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/SearchResultItemLayout.js +151 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/UserModerationBulkActions.js +0 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/UserModerationSearchLayout.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/userModeration/search/index.js +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/UserActions.js +263 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/api/api.js +42 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/api/index.js +8 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/api/routes.js +38 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/index.js +30 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/SearchResultItemLayout.js +202 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/UserSearchLayout.js +81 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/filters/UserStatusFilterComponent.js +114 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/filters/index.js +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/administration/users/search/index.js +10 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/collectionRecordsSearch/index.js +61 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSearchAppLayout.js +84 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSearchBarElement.js +44 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/CommunityRecordsSingleSearchBarElement.js +46 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/components.js +3 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/communityRecordsSearch/index.js +66 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/CompactStats.js +52 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/CopyButton.js +61 -39
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/DisplayPartOfCommunities.js +78 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/DisplayVerifiedCommunity.js +54 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/FileModificationUntil.js +45 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordDeletion/DeletionModal.js +354 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordDeletion/DeletionRadioGroup.js +44 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordDeletion.js +81 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/RecordsResultsListItem.js +189 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +788 -307
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/ShareDraftButton.js +65 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/config.js +48 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/index.js +27 -13
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/frontpage/RecordsList.js +165 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/frontpage/index.js +23 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/AccessRequestForm.js +254 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/CommunitiesManagement.js +179 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/CommunitiesManagementDropdown.js +186 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/EditButton.js +30 -16
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ExportDropdown.js +68 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ManageButton.js +140 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ManageDefaultBrandingAction/ManageDefaultBrandingAction.js +129 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/PendingCommunitiesModal/PendingCommunitiesModal.js +63 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/PendingCommunitiesModal/PendingCommunitiesSearch.js +89 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/PendingCommunitiesModal/PendingCommunityRequestItem.js +33 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCitationField.js +68 -73
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesList.js +150 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesListModal.js +90 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesSearch.js +109 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/RecordCommunitiesSearchItem.js +58 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitiesListModal/index.js +3 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordCommunitySubmission/RecordCommunitySubmissionModal.js +171 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordManagement.js +123 -43
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RecordVersionsList.js +143 -79
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/RemoveFromCommunity/RemoveFromCommunityAction.js +188 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/AccessDropdown.js +93 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/CreateAccessLink.js +111 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchItem.js +170 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksSearchResultContainer.js +236 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessLinks/LinksTab.js +106 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessRequests/AccessRequestsTab.js +239 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/AccessUsersGroups.js +178 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/AddUserGroupAccessModal.js +172 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/GroupsTab.js +88 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/PeopleTab.js +88 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/AccessUsersGroups/UserGroupAccessSearchResultItem.js +158 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/{ShareButton.js → ShareOptions/ShareButton.js} +23 -6
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/ShareModal.js +252 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareOptions/api/api.js +39 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/access.js +24 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/index.js +92 -124
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/theme.js +131 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/index.js +13 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/mapping.js +12 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/AccessRequestExpiration.js +61 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/index.js +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineEdit.js +177 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/AccessRequestTimelineRead.js +50 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/requests/timeline/overrides/TimelineFeedHeader.js +34 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/components.js +165 -299
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/search/index.js +48 -20
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/subcommunity/browse.js +28 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/theme.js +164 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/base.js +210 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/communities.js +56 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/requests.js +78 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads.js +210 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads_items/ComputerTabletUploadsItem.js +155 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/uploads_items/MobileUploadsItem.js +154 -0
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/utils.js +85 -74
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/file_uploader/uppy.less +37 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/creatibutors.less +26 -70
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/licenses.less +5 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/previewer/iiif_simple.less +16 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/form.overrides +170 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/form.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/grid.overrides +110 -17
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/grid.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/menu.overrides +395 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/menu.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.overrides +34 -8
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/message.variables +6 -9
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.overrides +185 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/collections/table.variables +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.overrides +103 -15
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/button.variables +5 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.overrides +121 -13
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/container.variables +6 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/header.overrides +61 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/header.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/icon.overrides +29 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/icon.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/image.overrides +115 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/image.variables +4 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/input.overrides +50 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/input.variables +5 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/label.overrides +116 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/label.variables +0 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/list.overrides +68 -37
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/list.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/segment.overrides +80 -7
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/elements/segment.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/reset.overrides +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/reset.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/site.overrides +557 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/globals/site.variables +142 -4
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/accordion.overrides +161 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/accordion.variables +9 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/checkbox.overrides +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/checkbox.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/dropdown.overrides +116 -12
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/dropdown.variables +4 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/modal.overrides +151 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/modal.variables +5 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/search.overrides +7 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/search.variables +0 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/tab.overrides +3 -23
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/tab.variables +3 -5
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/transition.overrides +67 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/modules/transition.variables +3 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/theme.less +71 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.overrides +168 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/card.variables +2 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.overrides +463 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/feed.variables +1 -0
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.overrides +164 -10
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme/views/item.variables +0 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/i18next.js +1 -1
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/_generatedTranslations.js +66 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ar/messages.po +951 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ar/translations.json +307 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/bg/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/bg/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ca/messages.po +896 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ca/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/cs/messages.po +961 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/cs/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/da/messages.po +897 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/da/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de/messages.po +830 -160
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/de/translations.json +282 -88
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/el/messages.po +883 -4
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/el/translations.json +259 -65
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en/messages.po +1000 -5
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/en/translations.json +290 -63
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es/messages.po +960 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/es/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et/messages.po +896 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/et/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fa/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr/messages.po +960 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/fr/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hr/messages.po +901 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hr/translations.json +289 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu/messages.po +952 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/hu/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/index.js +17 -6
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/it/messages.po +905 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/it/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ja/messages.po +889 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ja/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ka/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ka/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ko/messages.po +889 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ko/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/lt/messages.po +907 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/lt/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/no/messages.po +895 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/no/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pl/messages.po +910 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pl/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pt/messages.po +901 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/pt/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ro/messages.po +908 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ro/translations.json +289 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ru/messages.po +958 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/ru/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sk/messages.po +908 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sk/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv/messages.po +951 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/sv/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/tr/messages.po +952 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/tr/translations.json +283 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk/messages.po +910 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/uk/translations.json +295 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_CN/messages.po +891 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_CN/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_TW/messages.po +889 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/messages/zh_TW/translations.json +277 -0
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/package.json +5 -8
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/translations.pot +872 -142
- invenio_app_rdm/theme/static/images/gnd-icon.svg +27 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/administration_page.html +19 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/default_static_page.html +33 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/files_integrity_report/email/files_integrity_report.html +31 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/footer.html +32 -79
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/frontpage.html +40 -57
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header.html +114 -76
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header_frontpage.html +16 -13
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/header_login.html +151 -61
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.de.html +3 -3
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.en.html +12 -7
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/search.sv.html +254 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/statistics.en.html +197 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/statistics.sv.html +196 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/versioning.en.html +149 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/help/versioning.sv.html +143 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/intro_section.html +98 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/javascript.html +12 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/macros/records_list.html +50 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page.html +36 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page_cover.html +13 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/robots.txt +15 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/searchbar.html +63 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/settings/notifications.html +17 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/site_footer.html +29 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_communities/default_static_page.html +26 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_previewer/latest_record.html +18 -0
- invenio_app_rdm/theme/templates/semantic-ui/invenio_previewer/rdm_abstract_previewer.html +30 -0
- invenio_app_rdm/theme/templates/themes/default/invenio_app_rdm/header.html +147 -0
- invenio_app_rdm/theme/templates/themes/default/invenio_app_rdm/site_footer.html +42 -0
- invenio_app_rdm/theme/views.py +106 -37
- invenio_app_rdm/theme/webpack.py +72 -36
- invenio_app_rdm/translations/ar/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ar/LC_MESSAGES/messages.po +1389 -0
- invenio_app_rdm/translations/bg/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/bg/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ca/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ca/LC_MESSAGES/messages.po +1362 -0
- invenio_app_rdm/translations/cs/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/cs/LC_MESSAGES/messages.po +1398 -0
- invenio_app_rdm/translations/da/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/da/LC_MESSAGES/messages.po +1363 -0
- invenio_app_rdm/translations/de/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/de/LC_MESSAGES/messages.po +1085 -372
- invenio_app_rdm/translations/el/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/el/LC_MESSAGES/messages.po +987 -367
- invenio_app_rdm/translations/es/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/es/LC_MESSAGES/messages.po +1389 -0
- invenio_app_rdm/translations/et/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/et/LC_MESSAGES/messages.po +1364 -0
- invenio_app_rdm/translations/fa/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fa/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/fr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/fr/LC_MESSAGES/messages.po +1390 -0
- invenio_app_rdm/translations/hr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hr/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/hu/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/hu/LC_MESSAGES/messages.po +1402 -0
- invenio_app_rdm/translations/it/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/it/LC_MESSAGES/messages.po +1366 -0
- invenio_app_rdm/translations/ja/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ja/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ka/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ka/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ko/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ko/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/lt/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/lt/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/messages.pot +1046 -271
- invenio_app_rdm/translations/no/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/no/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/pl/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/pl/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/pt/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/pt/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/translations/ro/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ro/LC_MESSAGES/messages.po +1391 -0
- invenio_app_rdm/translations/ru/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/ru/LC_MESSAGES/messages.po +1384 -0
- invenio_app_rdm/translations/sk/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sk/LC_MESSAGES/messages.po +1362 -0
- invenio_app_rdm/translations/sv/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/sv/LC_MESSAGES/messages.po +1400 -0
- invenio_app_rdm/translations/tr/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/tr/LC_MESSAGES/messages.po +1340 -63
- invenio_app_rdm/translations/uk/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/uk/LC_MESSAGES/messages.po +1363 -0
- invenio_app_rdm/translations/zh_CN/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/zh_CN/LC_MESSAGES/messages.po +1363 -0
- invenio_app_rdm/translations/zh_TW/LC_MESSAGES/messages.mo +0 -0
- invenio_app_rdm/translations/zh_TW/LC_MESSAGES/messages.po +1361 -0
- invenio_app_rdm/upgrade_scripts/fix_migrated_records_from_1_0_to_2_0.py +1 -0
- invenio_app_rdm/upgrade_scripts/fix_migrated_records_from_8_0_to_9_0.py +90 -0
- invenio_app_rdm/upgrade_scripts/migrate_10_0_to_11_0.py +47 -0
- invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py +205 -0
- invenio_app_rdm/upgrade_scripts/migrate_12_0_to_13_0.py +235 -0
- invenio_app_rdm/upgrade_scripts/migrate_13_0_to_14_0.py +268 -0
- invenio_app_rdm/upgrade_scripts/migrate_2_0_to_3_0.py +7 -3
- invenio_app_rdm/upgrade_scripts/migrate_3_0_to_4_0.py +4 -6
- invenio_app_rdm/upgrade_scripts/migrate_4_0_to_6_0.py +30 -43
- invenio_app_rdm/upgrade_scripts/migrate_6_0_to_7_0.py +1 -5
- invenio_app_rdm/upgrade_scripts/migrate_7_0_to_8_0.py +7 -11
- invenio_app_rdm/upgrade_scripts/migrate_8_0_to_9_0.py +98 -0
- invenio_app_rdm/upgrade_scripts/migrate_9_0_to_10_0.py +43 -0
- invenio_app_rdm/users/schemas.py +27 -0
- invenio_app_rdm/users_ui/__init__.py +9 -0
- invenio_app_rdm/users_ui/searchapp.py +53 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/base.html +21 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/communities.html +25 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/header.html +46 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/requests.html +24 -0
- invenio_app_rdm/users_ui/templates/semantic-ui/invenio_app_rdm/users/uploads.html +25 -0
- invenio_app_rdm/users_ui/views/__init__.py +14 -0
- invenio_app_rdm/users_ui/views/dashboard.py +59 -0
- invenio_app_rdm/users_ui/views/ui.py +68 -0
- invenio_app_rdm/utils/files.py +120 -0
- invenio_app_rdm/views.py +21 -0
- invenio_app_rdm-14.0.0b4.dev4.dist-info/METADATA +627 -0
- invenio_app_rdm-14.0.0b4.dev4.dist-info/RECORD +508 -0
- {invenio_app_rdm-8.0.0.dev9.dist-info → invenio_app_rdm-14.0.0b4.dev4.dist-info}/WHEEL +1 -1
- invenio_app_rdm-14.0.0b4.dev4.dist-info/entry_points.txt +44 -0
- invenio_app_rdm/admin.py +0 -36
- invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/dashboard.html +0 -47
- invenio_app_rdm/records_ui/views/utils.py +0 -27
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/components/Image.js +0 -36
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/ShareModal.js +0 -257
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/base.js +0 -140
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/communities.js +0 -200
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/requests.js +0 -394
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/components/uploads.js +0 -287
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/user_dashboard/index.js +0 -155
- invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm_requests/menuTabInit.js +0 -24
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/deposit.less +0 -158
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/export_page.less +0 -20
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/footer.less +0 -88
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/frontpage.less +0 -97
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/details.less +0 -53
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page/sidebar.less +0 -47
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/landing_page.less +0 -423
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/navbar.less +0 -305
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/search.less +0 -52
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/theme.less +0 -492
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm/variables.less +0 -60
- invenio_app_rdm/theme/assets/semantic-ui/less/invenio_app_rdm_requests/theme.less +0 -22
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/i18next-scanner.config.js +0 -63
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/package-lock.json +0 -1512
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/scripts/compileCatalog.js +0 -39
- invenio_app_rdm/theme/assets/semantic-ui/translations/invenio_app_rdm/scripts/initCatalog.js +0 -20
- invenio_app_rdm/theme/templates/semantic-ui/invenio_requests/community-submission/index.html +0 -67
- invenio_app_rdm/version.py +0 -23
- invenio_app_rdm-8.0.0.dev9.dist-info/AUTHORS.rst +0 -11
- invenio_app_rdm-8.0.0.dev9.dist-info/METADATA +0 -74
- invenio_app_rdm-8.0.0.dev9.dist-info/RECORD +0 -179
- invenio_app_rdm-8.0.0.dev9.dist-info/entry_points.txt +0 -14
- /invenio_app_rdm/{translations/.gitkeep → fixtures/data/pages.yaml} +0 -0
- {invenio_app_rdm-8.0.0.dev9.dist-info → invenio_app_rdm-14.0.0b4.dev4.dist-info/licenses}/LICENSE +0 -0
- {invenio_app_rdm-8.0.0.dev9.dist-info → invenio_app_rdm-14.0.0b4.dev4.dist-info}/top_level.txt +0 -0
invenio_app_rdm/ext.py
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2023-2024 Graz University of Technology.
|
|
4
|
+
#
|
|
5
|
+
# Invenio App RDM is free software; you can redistribute it and/or modify it
|
|
6
|
+
# under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
8
|
+
"""Invenio Research Data Management."""
|
|
9
|
+
|
|
10
|
+
import warnings
|
|
11
|
+
from datetime import timedelta
|
|
12
|
+
|
|
13
|
+
from flask import request
|
|
14
|
+
from flask_menu import current_menu
|
|
15
|
+
from invenio_i18n import lazy_gettext as _
|
|
16
|
+
|
|
17
|
+
from .communities_ui.views.ui import _show_browse_page
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def _is_branded_community():
|
|
21
|
+
"""Function used to check if community is branded."""
|
|
22
|
+
community = request.community
|
|
23
|
+
if community.get("theme", {}).get("enabled", False):
|
|
24
|
+
return True
|
|
25
|
+
return False
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def finalize_app(app):
|
|
29
|
+
"""Finalize app."""
|
|
30
|
+
init_menu(app)
|
|
31
|
+
init_config(app)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def init_config(app):
|
|
35
|
+
"""Initialize configuration."""
|
|
36
|
+
record_doi_required = bool(
|
|
37
|
+
app.config["RDM_PERSISTENT_IDENTIFIERS"].get("doi", {}).get("required")
|
|
38
|
+
)
|
|
39
|
+
parent_doi_required = bool(
|
|
40
|
+
app.config["RDM_PARENT_PERSISTENT_IDENTIFIERS"].get("doi", {}).get("required")
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
if record_doi_required != parent_doi_required:
|
|
44
|
+
raise Exception(
|
|
45
|
+
"Config variables RDM_PERSISTENT_IDENTIFIERS.doi.required and "
|
|
46
|
+
"RDM_PARENT_PERSISTENT_IDENTIFIERS.doi.required must be set to the same value."
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
if "COMMUNITIES_GROUPS_ENABLED" in app.config:
|
|
50
|
+
warnings.warn(
|
|
51
|
+
"COMMUNITIES_GROUPS_ENABLED config variable is deprecated. Please use USERS_RESOURCES_GROUPS_ENABLED "
|
|
52
|
+
"instead. For now, COMMUNITIES_GROUPS_ENABLED value will be taken into account and features related to "
|
|
53
|
+
"groups will be disabled if this was the intention.",
|
|
54
|
+
DeprecationWarning,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
if not app.config["COMMUNITIES_GROUPS_ENABLED"]:
|
|
58
|
+
app.config["USERS_RESOURCES_GROUPS_ENABLED"] = False
|
|
59
|
+
|
|
60
|
+
# validate grace period
|
|
61
|
+
grace_period = app.config["RDM_RECORDS_RESTRICTION_GRACE_PERIOD"]
|
|
62
|
+
if not isinstance(grace_period, timedelta) or grace_period.total_seconds() < 0:
|
|
63
|
+
raise TypeError(
|
|
64
|
+
"RDM_RECORDS_RESTRICTION_GRACE_PERIOD config value must be of type datetime.timedelta with a "
|
|
65
|
+
"duration greater than or equal to 0. "
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def init_menu(app):
|
|
70
|
+
"""Init menu."""
|
|
71
|
+
current_menu.submenu("actions.deposit").register(
|
|
72
|
+
endpoint="invenio_app_rdm_users.uploads",
|
|
73
|
+
text=_("My dashboard"),
|
|
74
|
+
order=1,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
current_menu.submenu("plus.deposit").register(
|
|
78
|
+
endpoint="invenio_app_rdm_records.deposit_create",
|
|
79
|
+
text=_("New upload"),
|
|
80
|
+
order=1,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
current_menu.submenu("notifications.requests").register(
|
|
84
|
+
"invenio_app_rdm_users.requests",
|
|
85
|
+
order=1,
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
user_dashboard = current_menu.submenu("dashboard")
|
|
89
|
+
# set dashboard-config to its default
|
|
90
|
+
user_dashboard_menu_config = {
|
|
91
|
+
"uploads": {
|
|
92
|
+
"endpoint": "invenio_app_rdm_users.uploads",
|
|
93
|
+
"text": _("Uploads"),
|
|
94
|
+
"order": 1,
|
|
95
|
+
},
|
|
96
|
+
"communities": {
|
|
97
|
+
"endpoint": "invenio_app_rdm_users.communities",
|
|
98
|
+
"text": _("Communities"),
|
|
99
|
+
"order": 2,
|
|
100
|
+
},
|
|
101
|
+
"requests": {
|
|
102
|
+
"endpoint": "invenio_app_rdm_users.requests",
|
|
103
|
+
"text": _("Requests"),
|
|
104
|
+
"order": 3,
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
# apply dashboard-config overrides
|
|
109
|
+
for submenu_name, submenu_kwargs in app.config[
|
|
110
|
+
"USER_DASHBOARD_MENU_OVERRIDES"
|
|
111
|
+
].items():
|
|
112
|
+
if submenu_name not in user_dashboard_menu_config:
|
|
113
|
+
raise ValueError(
|
|
114
|
+
f"attempting to override dashboard's submenu `{submenu_name}`, "
|
|
115
|
+
"but dashboard has no registered submenu of that name"
|
|
116
|
+
)
|
|
117
|
+
user_dashboard_menu_config[submenu_name].update(submenu_kwargs)
|
|
118
|
+
|
|
119
|
+
# register dashboard-menus
|
|
120
|
+
for submenu_name, submenu_kwargs in user_dashboard_menu_config.items():
|
|
121
|
+
user_dashboard.submenu(submenu_name).register(**submenu_kwargs)
|
|
122
|
+
|
|
123
|
+
communities = current_menu.submenu("communities")
|
|
124
|
+
communities.submenu("home").register(
|
|
125
|
+
"invenio_app_rdm_communities.communities_home",
|
|
126
|
+
text=_("Home"),
|
|
127
|
+
order=5,
|
|
128
|
+
visible_when=_is_branded_community,
|
|
129
|
+
expected_args=["pid_value"],
|
|
130
|
+
**dict(icon="home", permissions="can_read"),
|
|
131
|
+
)
|
|
132
|
+
communities.submenu("browse").register(
|
|
133
|
+
endpoint="invenio_app_rdm_communities.communities_browse",
|
|
134
|
+
text=_("Browse"),
|
|
135
|
+
order=15,
|
|
136
|
+
visible_when=_show_browse_page,
|
|
137
|
+
expected_args=["pid_value"],
|
|
138
|
+
**{"icon": "list", "permissions": "can_read"},
|
|
139
|
+
)
|
|
140
|
+
communities.submenu("search").register(
|
|
141
|
+
"invenio_app_rdm_communities.communities_detail",
|
|
142
|
+
text=_("Records"),
|
|
143
|
+
order=10,
|
|
144
|
+
expected_args=["pid_value"],
|
|
145
|
+
**dict(icon="search", permissions=True),
|
|
146
|
+
)
|
|
147
|
+
communities.submenu("submit").register(
|
|
148
|
+
"invenio_app_rdm_communities.community_static_page",
|
|
149
|
+
text=_("Submit"),
|
|
150
|
+
order=15,
|
|
151
|
+
visible_when=_is_branded_community,
|
|
152
|
+
endpoint_arguments_constructor=lambda: {
|
|
153
|
+
"pid_value": request.view_args["pid_value"],
|
|
154
|
+
"page_slug": "how-to-submit",
|
|
155
|
+
},
|
|
156
|
+
**dict(icon="upload", permissions="can_read"),
|
|
157
|
+
)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2022 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio App RDM is free software; you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
8
|
+
"""Static pages."""
|
|
9
|
+
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
from flask import current_app
|
|
13
|
+
|
|
14
|
+
from .oai_sets import OAICustomSets
|
|
15
|
+
from .pages import StaticPages
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class Pages:
|
|
19
|
+
"""Pages engine."""
|
|
20
|
+
|
|
21
|
+
def run(self, force=False):
|
|
22
|
+
"""Run the pages loading."""
|
|
23
|
+
dir_ = Path(__file__).parent
|
|
24
|
+
app_data_folder = Path(current_app.instance_path) / "app_data"
|
|
25
|
+
app_pages_folder = app_data_folder / "pages"
|
|
26
|
+
data_folder = dir_ / "data"
|
|
27
|
+
pages_folder = dir_ / "pages"
|
|
28
|
+
StaticPages(
|
|
29
|
+
[app_data_folder, data_folder],
|
|
30
|
+
"pages.yaml",
|
|
31
|
+
[app_pages_folder, pages_folder],
|
|
32
|
+
force,
|
|
33
|
+
).load()
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class FixturesEngine:
|
|
37
|
+
"""Basic fixtures engine."""
|
|
38
|
+
|
|
39
|
+
def run(self):
|
|
40
|
+
"""Run the fixtures loading."""
|
|
41
|
+
dir_ = Path(__file__).parent
|
|
42
|
+
app_data_folder = Path(current_app.instance_path) / "app_data"
|
|
43
|
+
app_pages_folder = app_data_folder / "pages"
|
|
44
|
+
data_folder = dir_ / "data"
|
|
45
|
+
pages_folder = dir_ / "pages"
|
|
46
|
+
OAICustomSets(
|
|
47
|
+
[app_data_folder, data_folder],
|
|
48
|
+
"oai_sets.yaml",
|
|
49
|
+
).load()
|
|
50
|
+
|
|
51
|
+
StaticPages(
|
|
52
|
+
[app_data_folder, data_folder],
|
|
53
|
+
"pages.yaml",
|
|
54
|
+
[app_pages_folder, pages_folder],
|
|
55
|
+
force=True,
|
|
56
|
+
).load()
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2022 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio App RDM is free software; you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the MIT License; see LICENSE file for more details.
|
|
7
|
+
|
|
8
|
+
"""OAI-PMH custom sets."""
|
|
9
|
+
|
|
10
|
+
from invenio_access.permissions import system_identity
|
|
11
|
+
from invenio_rdm_records.fixtures.fixture import FixtureMixin
|
|
12
|
+
from invenio_rdm_records.proxies import current_oaipmh_server_service
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class OAICustomSets(FixtureMixin):
|
|
16
|
+
"""OAI-PMH custom sets."""
|
|
17
|
+
|
|
18
|
+
def create(self, entry):
|
|
19
|
+
"""Create an OAI set."""
|
|
20
|
+
current_oaipmh_server_service.create(system_identity, entry)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# This file exists only to add templates/ folder to git repository.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2022-2025 CERN.
|
|
4
|
+
# Copyright (C) 2025 University of Münster.
|
|
5
|
+
#
|
|
6
|
+
# Invenio App RDM is free software; you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the MIT License; see LICENSE file for more details.
|
|
8
|
+
|
|
9
|
+
"""Static pages."""
|
|
10
|
+
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from flask import current_app
|
|
14
|
+
from invenio_access.permissions import system_identity
|
|
15
|
+
from invenio_db import db
|
|
16
|
+
from invenio_i18n.proxies import current_i18n
|
|
17
|
+
from invenio_pages.proxies import current_pages_service
|
|
18
|
+
from invenio_pages.records.errors import PageNotFoundError
|
|
19
|
+
from invenio_rdm_records.fixtures.fixture import FixtureMixin
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class StaticPages(FixtureMixin):
|
|
23
|
+
"""Static pages."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, search_paths, filename, pages_path, force=False):
|
|
26
|
+
"""Initialize the fixture."""
|
|
27
|
+
super().__init__(search_paths, filename)
|
|
28
|
+
self._force = force
|
|
29
|
+
self._pages_path = pages_path
|
|
30
|
+
self._supported_languages = current_i18n.get_languages()
|
|
31
|
+
|
|
32
|
+
def load(self):
|
|
33
|
+
"""Load the static pages."""
|
|
34
|
+
if self._force:
|
|
35
|
+
current_pages_service.delete_all(system_identity)
|
|
36
|
+
|
|
37
|
+
super().load()
|
|
38
|
+
db.session.commit()
|
|
39
|
+
|
|
40
|
+
def page_data(self, page, lang):
|
|
41
|
+
"""Returns content of template."""
|
|
42
|
+
for path in self._pages_path:
|
|
43
|
+
filepath = Path(str(path / page) + "." + lang)
|
|
44
|
+
|
|
45
|
+
if not filepath.exists():
|
|
46
|
+
filepath = path / page
|
|
47
|
+
|
|
48
|
+
if not filepath.exists():
|
|
49
|
+
continue
|
|
50
|
+
|
|
51
|
+
return Path(filepath).read_bytes().decode("utf8")
|
|
52
|
+
|
|
53
|
+
def create(self, entry):
|
|
54
|
+
"""Load a single page."""
|
|
55
|
+
url = entry["url"]
|
|
56
|
+
for lang in self._supported_languages:
|
|
57
|
+
try:
|
|
58
|
+
current_pages_service.read_by_url(system_identity, url, lang[0])
|
|
59
|
+
except PageNotFoundError:
|
|
60
|
+
data = {
|
|
61
|
+
"url": url,
|
|
62
|
+
"title": entry.get("title", ""),
|
|
63
|
+
# content is optional as it can be added later from the administration panel
|
|
64
|
+
"content": (
|
|
65
|
+
self.page_data(entry["template"], lang[0])
|
|
66
|
+
if entry.get("template")
|
|
67
|
+
else ""
|
|
68
|
+
),
|
|
69
|
+
"lang": lang[0],
|
|
70
|
+
"description": entry.get("description", ""),
|
|
71
|
+
"template_name": entry.get(
|
|
72
|
+
"template_name",
|
|
73
|
+
current_app.config["PAGES_DEFAULT_TEMPLATE"],
|
|
74
|
+
),
|
|
75
|
+
}
|
|
76
|
+
current_pages_service.create(system_identity, data)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Invenio.
|
|
4
|
+
# Copyright (C) 2022 data-futures.
|
|
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
|
+
"""InvenioRDM previewers."""
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Invenio.
|
|
4
|
+
# Copyright (C) 2022 data-futures.
|
|
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
|
+
"""Simple IIIF image preview."""
|
|
10
|
+
|
|
11
|
+
from os.path import splitext
|
|
12
|
+
|
|
13
|
+
from flask import current_app, render_template
|
|
14
|
+
from werkzeug.local import LocalProxy
|
|
15
|
+
|
|
16
|
+
previewable_extensions = LocalProxy(lambda: current_app.config["IIIF_FORMATS"].keys())
|
|
17
|
+
|
|
18
|
+
# extensions that can be put in <img> tag - all others converted to jpg
|
|
19
|
+
native_extensions = LocalProxy(
|
|
20
|
+
lambda: current_app.config["IIIF_SIMPLE_PREVIEWER_NATIVE_EXTENSIONS"]
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def can_preview(file):
|
|
25
|
+
"""Check if file can be previewed by this previewer.
|
|
26
|
+
|
|
27
|
+
:param file: The file to be previewed.
|
|
28
|
+
:returns: Boolean
|
|
29
|
+
"""
|
|
30
|
+
# supported_extensions list needs . prefixed -
|
|
31
|
+
supported_extensions = ["." + ext for ext in previewable_extensions]
|
|
32
|
+
return file.has_extensions(*supported_extensions)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def preview(file):
|
|
36
|
+
"""Render template.
|
|
37
|
+
|
|
38
|
+
:param file: Image file to preview.
|
|
39
|
+
:returns: Rendered template with image from IIIF service.
|
|
40
|
+
"""
|
|
41
|
+
ext = splitext(file.filename)[1].lower()[1:]
|
|
42
|
+
format = ext if ext in native_extensions else "jpg"
|
|
43
|
+
size = LocalProxy(lambda: current_app.config["IIIF_SIMPLE_PREVIEWER_SIZE"])
|
|
44
|
+
|
|
45
|
+
url = f"{file.data['links']['iiif_base']}/full/{size}/0/default.{format}"
|
|
46
|
+
return render_template(
|
|
47
|
+
current_app.config["IIIF_PREVIEW_TEMPLATE"],
|
|
48
|
+
css_bundles=["iiif-simple-previewer.css"],
|
|
49
|
+
file=file,
|
|
50
|
+
file_url=url,
|
|
51
|
+
)
|
|
@@ -7,250 +7,64 @@
|
|
|
7
7
|
|
|
8
8
|
"""Configuration helper for React-SearchKit."""
|
|
9
9
|
|
|
10
|
-
from copy import deepcopy
|
|
11
10
|
from functools import partial
|
|
12
11
|
|
|
13
12
|
from flask import current_app
|
|
14
|
-
from invenio_rdm_records.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
class SortConfig(SortOptionsSelector):
|
|
19
|
-
"""Sort options for the search configuration."""
|
|
20
|
-
|
|
21
|
-
def map_option(self, key, option):
|
|
22
|
-
"""Generate a RSK search option."""
|
|
23
|
-
return {
|
|
24
|
-
"sortBy": key,
|
|
25
|
-
"text": option['title']
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class FacetsConfig(OptionsSelector):
|
|
30
|
-
"""Facets options for the search configuration."""
|
|
31
|
-
|
|
32
|
-
def map_option(self, key, option):
|
|
33
|
-
"""Generate an RSK aggregation option."""
|
|
34
|
-
title = option.get('title', option['facet']._label)
|
|
35
|
-
|
|
36
|
-
ui = deepcopy(option['ui'])
|
|
37
|
-
ui.update({
|
|
38
|
-
'aggName': key,
|
|
39
|
-
'title': title,
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
# Nested facets
|
|
43
|
-
if 'childAgg' in ui:
|
|
44
|
-
ui['childAgg'].setdefault('aggName', 'inner')
|
|
45
|
-
ui['childAgg'].setdefault('title', title)
|
|
46
|
-
|
|
47
|
-
return ui
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class SearchAppConfig:
|
|
51
|
-
"""Configuration generator for React-SearchKit."""
|
|
52
|
-
|
|
53
|
-
default_options = dict(
|
|
54
|
-
endpoint=None,
|
|
55
|
-
hidden_params=None,
|
|
56
|
-
app_id='rdm-search',
|
|
57
|
-
headers=None,
|
|
58
|
-
list_view=True,
|
|
59
|
-
grid_view=False,
|
|
60
|
-
pagination_options=(10, 20, 50),
|
|
61
|
-
default_size=10,
|
|
62
|
-
default_page=1,
|
|
63
|
-
facets=None,
|
|
64
|
-
sort=None,
|
|
65
|
-
initial_filters=[],
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
def __init__(self, configuration_options):
|
|
69
|
-
"""Initialize the search configuration.
|
|
70
|
-
|
|
71
|
-
:param endpoint: The URL path to the REST API.
|
|
72
|
-
:param hidden_params: Nested arrays containing any additional query
|
|
73
|
-
parameters to be used in the search.
|
|
74
|
-
:param app_id: The string ID of the Search Application.
|
|
75
|
-
:param headers: Dictionary containing additional headers to be included
|
|
76
|
-
in the request.
|
|
77
|
-
:param list_view: Boolean enabling the list view of the results.
|
|
78
|
-
:param grid_view: Boolean enabling the grid view of the results.
|
|
79
|
-
:param pagination_options: An integer array providing the results per
|
|
80
|
-
page options.
|
|
81
|
-
:param default_size: An integer setting the default number of results
|
|
82
|
-
per page.
|
|
83
|
-
:param default_page: An integer setting the default page.
|
|
84
|
-
"""
|
|
85
|
-
options = deepcopy(self.default_options)
|
|
86
|
-
options.update(configuration_options)
|
|
87
|
-
for key, value in options.items():
|
|
88
|
-
setattr(self, key, value)
|
|
89
|
-
|
|
90
|
-
@property
|
|
91
|
-
def appId(self):
|
|
92
|
-
"""The React appplication id."""
|
|
93
|
-
return self.app_id
|
|
94
|
-
|
|
95
|
-
@property
|
|
96
|
-
def initialQueryState(self):
|
|
97
|
-
"""Generate initialQueryState."""
|
|
98
|
-
return {
|
|
99
|
-
'hiddenParams': self.hidden_params,
|
|
100
|
-
'layout': 'list' if self.list_view else 'grid',
|
|
101
|
-
"size": self.default_size,
|
|
102
|
-
"sortBy": self.sort.default,
|
|
103
|
-
"page": self.default_page,
|
|
104
|
-
"filters": self.initial_filters,
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@property
|
|
108
|
-
def searchApi(self):
|
|
109
|
-
"""Generate searchAPI configuration."""
|
|
110
|
-
return {
|
|
111
|
-
"axios": {
|
|
112
|
-
"url": self.endpoint,
|
|
113
|
-
"withCredentials": True,
|
|
114
|
-
"headers": self.headers,
|
|
115
|
-
},
|
|
116
|
-
"invenio": {
|
|
117
|
-
"requestSerializer":
|
|
118
|
-
"InvenioRecordsResourcesRequestSerializer",
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@property
|
|
123
|
-
def layoutOptions(self):
|
|
124
|
-
"""Generate the Layout Options.
|
|
125
|
-
|
|
126
|
-
:returns: A dict with the options for React-SearchKit JS.
|
|
127
|
-
"""
|
|
128
|
-
return {
|
|
129
|
-
'listView': self.list_view,
|
|
130
|
-
'gridView': self.grid_view
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@property
|
|
134
|
-
def sortOptions(self):
|
|
135
|
-
"""Format sort options to be used in React-SearchKit JS.
|
|
136
|
-
|
|
137
|
-
:returns: A list of dicts with sorting options for React-SearchKit JS.
|
|
138
|
-
"""
|
|
139
|
-
return list(self.sort) if self.sort is not None else []
|
|
140
|
-
|
|
141
|
-
@property
|
|
142
|
-
def aggs(self):
|
|
143
|
-
"""Format the aggs configuration to be used in React-SearchKit JS.
|
|
144
|
-
|
|
145
|
-
:returns: A list of dicts for React-SearchKit JS.
|
|
146
|
-
"""
|
|
147
|
-
return list(self.facets) if self.facets is not None else []
|
|
148
|
-
|
|
149
|
-
@property
|
|
150
|
-
def paginationOptions(self):
|
|
151
|
-
"""Format the pagination options to be used in React-SearchKit JS."""
|
|
152
|
-
if not getattr(self, 'default_size') or \
|
|
153
|
-
self.default_size not in self.pagination_options:
|
|
154
|
-
raise ValueError(
|
|
155
|
-
'Parameter default_size should be part of pagination_options')
|
|
156
|
-
return {
|
|
157
|
-
"resultsPerPage": [
|
|
158
|
-
{"text": str(option), "value": option}
|
|
159
|
-
for option in self.pagination_options
|
|
160
|
-
],
|
|
161
|
-
"defaultValue": self.default_size,
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@property
|
|
165
|
-
def defaultSortingOnEmptyQueryString(self):
|
|
166
|
-
"""Defines the default sorting options when there is no query."""
|
|
167
|
-
return {
|
|
168
|
-
"sortBy": self.sort.default_no_query,
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
@classmethod
|
|
172
|
-
def generate(cls, options, **kwargs):
|
|
173
|
-
"""Create JSON config for React-Searchkit."""
|
|
174
|
-
generator_object = cls(options)
|
|
175
|
-
config = {
|
|
176
|
-
"appId": generator_object.appId,
|
|
177
|
-
"initialQueryState": generator_object.initialQueryState,
|
|
178
|
-
"searchApi": generator_object.searchApi,
|
|
179
|
-
"sortOptions": generator_object.sortOptions,
|
|
180
|
-
"aggs": generator_object.aggs,
|
|
181
|
-
"layoutOptions": generator_object.layoutOptions,
|
|
182
|
-
"sortOrderDisabled": True,
|
|
183
|
-
"paginationOptions": generator_object.paginationOptions,
|
|
184
|
-
"defaultSortingOnEmptyQueryString":
|
|
185
|
-
generator_object.defaultSortingOnEmptyQueryString
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
config.update(kwargs)
|
|
189
|
-
return config
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
#
|
|
193
|
-
# Application state context processors
|
|
194
|
-
#
|
|
195
|
-
def sort_config(config_name):
|
|
196
|
-
"""Sort configuration."""
|
|
197
|
-
return SortConfig(
|
|
198
|
-
current_app.config['RDM_SORT_OPTIONS'],
|
|
199
|
-
current_app.config[config_name].get('sort', []),
|
|
200
|
-
current_app.config[config_name].get('sort_default', None),
|
|
201
|
-
current_app.config[config_name].get('sort_default_no_query'),
|
|
202
|
-
)
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
def facets_config(config_name, available_facets):
|
|
206
|
-
"""Facets configuration."""
|
|
207
|
-
return FacetsConfig(
|
|
208
|
-
available_facets,
|
|
209
|
-
current_app.config[config_name].get('facets', [])
|
|
210
|
-
)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
def search_app_config(
|
|
214
|
-
config_name, available_facets, endpoint, overrides=None, **kwargs
|
|
215
|
-
):
|
|
216
|
-
"""Search app config."""
|
|
217
|
-
opts = dict(
|
|
218
|
-
endpoint=endpoint,
|
|
219
|
-
headers={"Accept": "application/vnd.inveniordm.v1+json"},
|
|
220
|
-
grid_view=False,
|
|
221
|
-
sort=sort_config(config_name),
|
|
222
|
-
facets=facets_config(config_name, available_facets),
|
|
223
|
-
)
|
|
224
|
-
opts.update(kwargs)
|
|
225
|
-
overrides = overrides or {}
|
|
226
|
-
return SearchAppConfig.generate(opts, **overrides)
|
|
13
|
+
from invenio_rdm_records.requests import CommunityInclusion, CommunitySubmission
|
|
14
|
+
from invenio_search_ui.searchconfig import search_app_config
|
|
227
15
|
|
|
228
16
|
|
|
229
17
|
def search_app_context():
|
|
230
18
|
"""Search app context processor."""
|
|
231
19
|
return {
|
|
232
|
-
|
|
20
|
+
"search_app_rdm_config": partial(
|
|
21
|
+
search_app_config,
|
|
22
|
+
"RDM_SEARCH",
|
|
23
|
+
current_app.config["RDM_FACETS"],
|
|
24
|
+
current_app.config["RDM_SORT_OPTIONS"],
|
|
25
|
+
"/api/records",
|
|
26
|
+
{"Accept": "application/vnd.inveniordm.v1+json"},
|
|
27
|
+
pagination_options=(10, 20),
|
|
28
|
+
),
|
|
29
|
+
"search_app_rdm_record_requests_config": partial(
|
|
233
30
|
search_app_config,
|
|
234
|
-
|
|
235
|
-
current_app.config[
|
|
236
|
-
|
|
237
|
-
|
|
31
|
+
config_name="RDM_SEARCH_USER_REQUESTS",
|
|
32
|
+
available_facets=current_app.config["REQUESTS_FACETS"],
|
|
33
|
+
sort_options=current_app.config["RDM_SORT_OPTIONS"],
|
|
34
|
+
headers={"Accept": "application/json"},
|
|
35
|
+
hidden_params=[
|
|
36
|
+
["expand", "1"],
|
|
37
|
+
["is_open", "true"],
|
|
38
|
+
["type", CommunityInclusion.type_id],
|
|
39
|
+
["type", CommunitySubmission.type_id],
|
|
40
|
+
],
|
|
41
|
+
page=1,
|
|
42
|
+
size=5,
|
|
43
|
+
),
|
|
44
|
+
"search_app_rdm_record_communities_config": partial(
|
|
238
45
|
search_app_config,
|
|
239
|
-
|
|
240
|
-
current_app.config[
|
|
241
|
-
|
|
46
|
+
config_name="RDM_SEARCH_USER_COMMUNITIES",
|
|
47
|
+
available_facets=current_app.config["COMMUNITIES_FACETS"],
|
|
48
|
+
sort_options=current_app.config["RDM_SORT_OPTIONS"],
|
|
49
|
+
headers={"Accept": "application/vnd.inveniordm.v1+json"},
|
|
50
|
+
pagination_options=(10, 20),
|
|
242
51
|
),
|
|
243
|
-
|
|
52
|
+
"search_app_rdm_record_user_communities_config": partial(
|
|
244
53
|
search_app_config,
|
|
245
|
-
|
|
246
|
-
current_app.config[
|
|
247
|
-
|
|
248
|
-
|
|
54
|
+
config_name="RDM_SEARCH_USER_COMMUNITIES",
|
|
55
|
+
available_facets=current_app.config["COMMUNITIES_FACETS"],
|
|
56
|
+
sort_options=current_app.config["RDM_SORT_OPTIONS"],
|
|
57
|
+
headers={"Accept": "application/vnd.inveniordm.v1+json"},
|
|
58
|
+
hidden_params=[
|
|
59
|
+
["membership", "true"],
|
|
60
|
+
],
|
|
61
|
+
pagination_options=(10, 20),
|
|
62
|
+
),
|
|
63
|
+
"search_app_access_links_config": partial(
|
|
249
64
|
search_app_config,
|
|
250
|
-
|
|
251
|
-
current_app.config[
|
|
252
|
-
|
|
65
|
+
config_name="RDM_SEARCH",
|
|
66
|
+
available_facets=current_app.config["RDM_FACETS"],
|
|
67
|
+
sort_options=current_app.config["RDM_SORT_OPTIONS"],
|
|
253
68
|
headers={"Accept": "application/json"},
|
|
254
|
-
|
|
255
|
-
)
|
|
69
|
+
),
|
|
256
70
|
}
|