invenio-vocabularies 9.1.2__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_vocabularies/__init__.py +16 -0
- invenio_vocabularies/administration/__init__.py +10 -0
- invenio_vocabularies/administration/views/__init__.py +10 -0
- invenio_vocabularies/administration/views/vocabularies.py +43 -0
- invenio_vocabularies/alembic/17c703ce1eb7_create_names_table.py +54 -0
- invenio_vocabularies/alembic/3ba812d80559_add_internal_name_id.py +36 -0
- invenio_vocabularies/alembic/4a9a4fd235f8_create_vocabulary_schemes.py +37 -0
- invenio_vocabularies/alembic/4f365fced43f_create_vocabularies_tables.py +92 -0
- invenio_vocabularies/alembic/55a700f897b6_add_names_and_afiliations_pid_column.py +96 -0
- invenio_vocabularies/alembic/6312f33645c1_create_affiliations_table.py +54 -0
- invenio_vocabularies/alembic/676dd587542d_create_funders_vocabulary_table.py +58 -0
- invenio_vocabularies/alembic/8ff82dfb0be8_create_vocabularies_branch.py +28 -0
- invenio_vocabularies/alembic/__init__.py +9 -0
- invenio_vocabularies/alembic/af2457652217_drop_unique_constraint_from_internal_id.py +37 -0
- invenio_vocabularies/alembic/e1146238edd3_create_awards_table.py +56 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/.eslintrc.yml +11 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/.prettierrc +1 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/index.js +7 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/package.json +25 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/AwardResults.js +95 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/CustomAwardForm.js +139 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/FunderDropdown.js +87 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/FundingField.js +244 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/FundingField.test.js +1 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/FundingFieldItem.js +152 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/FundingModal.js +246 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/NoAwardResults.js +37 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/Funding/index.js +8 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/forms/index.js +7 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/contrib/index.js +7 -0
- invenio_vocabularies/assets/semantic-ui/js/invenio_vocabularies/src/index.js +7 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/i18next.js +36 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/_generatedTranslations.js +66 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ar/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ar/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/bg/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/bg/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ca/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ca/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/cs/messages.po +97 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/cs/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/da/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/da/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/de/messages.po +98 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/de/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/el/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/el/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/en/messages.po +88 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/en/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/es/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/es/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/et/messages.po +95 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/et/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/fa/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/fa/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/fr/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/fr/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/hr/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/hr/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/hu/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/hu/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/index.js +24 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/it/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/it/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ja/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ja/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ka/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ka/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ko/messages.po +90 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ko/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/lt/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/lt/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/no/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/no/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/pl/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/pl/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/pt/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/pt/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ro/messages.po +95 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ro/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ru/messages.po +95 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/ru/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/sk/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/sk/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/sv/messages.po +98 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/sv/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/tr/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/tr/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/uk/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/uk/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/zh_CN/messages.po +96 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/zh_CN/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/zh_TW/messages.po +94 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/messages/zh_TW/translations.json +28 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/package.json +19 -0
- invenio_vocabularies/assets/semantic-ui/translations/invenio_vocabularies/translations.pot +88 -0
- invenio_vocabularies/cli.py +175 -0
- invenio_vocabularies/config.py +231 -0
- invenio_vocabularies/contrib/__init__.py +9 -0
- invenio_vocabularies/contrib/affiliations/__init__.py +20 -0
- invenio_vocabularies/contrib/affiliations/affiliations.py +61 -0
- invenio_vocabularies/contrib/affiliations/api.py +13 -0
- invenio_vocabularies/contrib/affiliations/config.py +79 -0
- invenio_vocabularies/contrib/affiliations/datastreams.py +301 -0
- invenio_vocabularies/contrib/affiliations/facets.py +36 -0
- invenio_vocabularies/contrib/affiliations/jsonschemas/__init__.py +9 -0
- invenio_vocabularies/contrib/affiliations/jsonschemas/affiliations/affiliation-v1.0.0.json +63 -0
- invenio_vocabularies/contrib/affiliations/mappings/__init__.py +10 -0
- invenio_vocabularies/contrib/affiliations/mappings/os-v1/__init__.py +9 -0
- invenio_vocabularies/contrib/affiliations/mappings/os-v1/affiliations/affiliation-v1.0.0.json +112 -0
- invenio_vocabularies/contrib/affiliations/mappings/os-v1/affiliations/affiliation-v2.0.0.json +171 -0
- invenio_vocabularies/contrib/affiliations/mappings/os-v2/__init__.py +9 -0
- invenio_vocabularies/contrib/affiliations/mappings/os-v2/affiliations/affiliation-v1.0.0.json +112 -0
- invenio_vocabularies/contrib/affiliations/mappings/os-v2/affiliations/affiliation-v2.0.0.json +171 -0
- invenio_vocabularies/contrib/affiliations/mappings/v7/__init__.py +9 -0
- invenio_vocabularies/contrib/affiliations/mappings/v7/affiliations/affiliation-v1.0.0.json +112 -0
- invenio_vocabularies/contrib/affiliations/models.py +13 -0
- invenio_vocabularies/contrib/affiliations/resources.py +16 -0
- invenio_vocabularies/contrib/affiliations/schema.py +71 -0
- invenio_vocabularies/contrib/affiliations/services.py +15 -0
- invenio_vocabularies/contrib/awards/__init__.py +19 -0
- invenio_vocabularies/contrib/awards/api.py +13 -0
- invenio_vocabularies/contrib/awards/awards.py +96 -0
- invenio_vocabularies/contrib/awards/config.py +59 -0
- invenio_vocabularies/contrib/awards/datastreams.py +372 -0
- invenio_vocabularies/contrib/awards/jsonschemas/__init__.py +9 -0
- invenio_vocabularies/contrib/awards/jsonschemas/awards/award-v1.0.0.json +91 -0
- invenio_vocabularies/contrib/awards/mappings/__init__.py +9 -0
- invenio_vocabularies/contrib/awards/mappings/os-v1/__init__.py +9 -0
- invenio_vocabularies/contrib/awards/mappings/os-v1/awards/award-v1.0.0.json +147 -0
- invenio_vocabularies/contrib/awards/mappings/os-v2/__init__.py +9 -0
- invenio_vocabularies/contrib/awards/mappings/os-v2/awards/award-v1.0.0.json +147 -0
- invenio_vocabularies/contrib/awards/mappings/v7/__init__.py +9 -0
- invenio_vocabularies/contrib/awards/mappings/v7/awards/award-v1.0.0.json +147 -0
- invenio_vocabularies/contrib/awards/models.py +13 -0
- invenio_vocabularies/contrib/awards/resources.py +16 -0
- invenio_vocabularies/contrib/awards/schema.py +119 -0
- invenio_vocabularies/contrib/awards/serializer.py +47 -0
- invenio_vocabularies/contrib/awards/services.py +15 -0
- invenio_vocabularies/contrib/common/__init__.py +9 -0
- invenio_vocabularies/contrib/common/openaire/__init__.py +9 -0
- invenio_vocabularies/contrib/common/openaire/datastreams.py +84 -0
- invenio_vocabularies/contrib/common/ror/__init__.py +9 -0
- invenio_vocabularies/contrib/common/ror/datastreams.py +230 -0
- invenio_vocabularies/contrib/funders/__init__.py +19 -0
- invenio_vocabularies/contrib/funders/api.py +13 -0
- invenio_vocabularies/contrib/funders/config.py +78 -0
- invenio_vocabularies/contrib/funders/datastreams.py +97 -0
- invenio_vocabularies/contrib/funders/facets.py +36 -0
- invenio_vocabularies/contrib/funders/funders.py +72 -0
- invenio_vocabularies/contrib/funders/jsonschemas/__init__.py +9 -0
- invenio_vocabularies/contrib/funders/jsonschemas/funders/funder-v1.0.0.json +65 -0
- invenio_vocabularies/contrib/funders/mappings/__init__.py +9 -0
- invenio_vocabularies/contrib/funders/mappings/os-v1/__init__.py +9 -0
- invenio_vocabularies/contrib/funders/mappings/os-v1/funders/funder-v1.0.0.json +90 -0
- invenio_vocabularies/contrib/funders/mappings/os-v1/funders/funder-v2.0.0.json +156 -0
- invenio_vocabularies/contrib/funders/mappings/os-v2/__init__.py +9 -0
- invenio_vocabularies/contrib/funders/mappings/os-v2/funders/funder-v1.0.0.json +90 -0
- invenio_vocabularies/contrib/funders/mappings/os-v2/funders/funder-v2.0.0.json +156 -0
- invenio_vocabularies/contrib/funders/mappings/v7/__init__.py +9 -0
- invenio_vocabularies/contrib/funders/mappings/v7/funders/funder-v1.0.0.json +90 -0
- invenio_vocabularies/contrib/funders/models.py +13 -0
- invenio_vocabularies/contrib/funders/resources.py +16 -0
- invenio_vocabularies/contrib/funders/schema.py +88 -0
- invenio_vocabularies/contrib/funders/serializer.py +33 -0
- invenio_vocabularies/contrib/funders/services.py +15 -0
- invenio_vocabularies/contrib/names/__init__.py +19 -0
- invenio_vocabularies/contrib/names/api.py +13 -0
- invenio_vocabularies/contrib/names/components.py +24 -0
- invenio_vocabularies/contrib/names/config.py +75 -0
- invenio_vocabularies/contrib/names/datastreams.py +483 -0
- invenio_vocabularies/contrib/names/jsonschemas/__init__.py +9 -0
- invenio_vocabularies/contrib/names/jsonschemas/names/name-v1.0.0.json +68 -0
- invenio_vocabularies/contrib/names/mappings/__init__.py +9 -0
- invenio_vocabularies/contrib/names/mappings/os-v1/__init__.py +9 -0
- invenio_vocabularies/contrib/names/mappings/os-v1/names/name-v1.0.0.json +101 -0
- invenio_vocabularies/contrib/names/mappings/os-v1/names/name-v2.0.0.json +165 -0
- invenio_vocabularies/contrib/names/mappings/os-v2/__init__.py +9 -0
- invenio_vocabularies/contrib/names/mappings/os-v2/names/name-v1.0.0.json +101 -0
- invenio_vocabularies/contrib/names/mappings/os-v2/names/name-v2.0.0.json +165 -0
- invenio_vocabularies/contrib/names/mappings/v7/__init__.py +9 -0
- invenio_vocabularies/contrib/names/mappings/v7/names/name-v1.0.0.json +101 -0
- invenio_vocabularies/contrib/names/models.py +13 -0
- invenio_vocabularies/contrib/names/names.py +80 -0
- invenio_vocabularies/contrib/names/permissions.py +30 -0
- invenio_vocabularies/contrib/names/resources.py +54 -0
- invenio_vocabularies/contrib/names/s3client.py +50 -0
- invenio_vocabularies/contrib/names/schema.py +121 -0
- invenio_vocabularies/contrib/names/services.py +64 -0
- invenio_vocabularies/contrib/subjects/__init__.py +22 -0
- invenio_vocabularies/contrib/subjects/api.py +14 -0
- invenio_vocabularies/contrib/subjects/config.py +90 -0
- invenio_vocabularies/contrib/subjects/datastreams.py +63 -0
- invenio_vocabularies/contrib/subjects/euroscivoc/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/euroscivoc/datastreams.py +101 -0
- invenio_vocabularies/contrib/subjects/facets.py +23 -0
- invenio_vocabularies/contrib/subjects/gemet/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/gemet/datastreams.py +140 -0
- invenio_vocabularies/contrib/subjects/jsonschemas/__init__.py +10 -0
- invenio_vocabularies/contrib/subjects/jsonschemas/subjects/subject-v1.0.0.json +69 -0
- invenio_vocabularies/contrib/subjects/mappings/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/mappings/os-v1/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/mappings/os-v1/subjects/subject-v1.0.0.json +96 -0
- invenio_vocabularies/contrib/subjects/mappings/os-v2/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/mappings/os-v2/subjects/subject-v1.0.0.json +96 -0
- invenio_vocabularies/contrib/subjects/mappings/v7/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/mappings/v7/subjects/subject-v1.0.0.json +96 -0
- invenio_vocabularies/contrib/subjects/mesh/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/mesh/datastreams.py +48 -0
- invenio_vocabularies/contrib/subjects/models.py +14 -0
- invenio_vocabularies/contrib/subjects/nvs/__init__.py +9 -0
- invenio_vocabularies/contrib/subjects/nvs/datastreams.py +114 -0
- invenio_vocabularies/contrib/subjects/resources.py +17 -0
- invenio_vocabularies/contrib/subjects/schema.py +101 -0
- invenio_vocabularies/contrib/subjects/services.py +30 -0
- invenio_vocabularies/contrib/subjects/subjects.py +55 -0
- invenio_vocabularies/datastreams/__init__.py +18 -0
- invenio_vocabularies/datastreams/datastreams.py +239 -0
- invenio_vocabularies/datastreams/errors.py +29 -0
- invenio_vocabularies/datastreams/factories.py +86 -0
- invenio_vocabularies/datastreams/readers.py +448 -0
- invenio_vocabularies/datastreams/tasks.py +115 -0
- invenio_vocabularies/datastreams/transformers.py +130 -0
- invenio_vocabularies/datastreams/writers.py +222 -0
- invenio_vocabularies/datastreams/xml.py +34 -0
- invenio_vocabularies/ext.py +179 -0
- invenio_vocabularies/factories.py +193 -0
- invenio_vocabularies/fixtures.py +52 -0
- invenio_vocabularies/jobs.py +207 -0
- invenio_vocabularies/proxies.py +27 -0
- invenio_vocabularies/records/__init__.py +9 -0
- invenio_vocabularies/records/api.py +53 -0
- invenio_vocabularies/records/jsonschemas/__init__.py +9 -0
- invenio_vocabularies/records/jsonschemas/vocabularies/definitions-v1.0.0.json +30 -0
- invenio_vocabularies/records/jsonschemas/vocabularies/vocabulary-v1.0.0.json +55 -0
- invenio_vocabularies/records/mappings/__init__.py +9 -0
- invenio_vocabularies/records/mappings/os-v1/__init__.py +9 -0
- invenio_vocabularies/records/mappings/os-v1/vocabularies/vocabulary-v1.0.0.json +109 -0
- invenio_vocabularies/records/mappings/os-v2/__init__.py +9 -0
- invenio_vocabularies/records/mappings/os-v2/vocabularies/vocabulary-v1.0.0.json +109 -0
- invenio_vocabularies/records/mappings/v7/__init__.py +9 -0
- invenio_vocabularies/records/mappings/v7/vocabularies/vocabulary-v1.0.0.json +109 -0
- invenio_vocabularies/records/models.py +90 -0
- invenio_vocabularies/records/pidprovider.py +118 -0
- invenio_vocabularies/records/systemfields/__init__.py +16 -0
- invenio_vocabularies/records/systemfields/pid.py +125 -0
- invenio_vocabularies/records/systemfields/relations.py +51 -0
- invenio_vocabularies/resources/__init__.py +23 -0
- invenio_vocabularies/resources/config.py +105 -0
- invenio_vocabularies/resources/resource.py +156 -0
- invenio_vocabularies/resources/schema.py +21 -0
- invenio_vocabularies/resources/serializer.py +39 -0
- invenio_vocabularies/services/__init__.py +19 -0
- invenio_vocabularies/services/components.py +58 -0
- invenio_vocabularies/services/config.py +173 -0
- invenio_vocabularies/services/custom_fields/__init__.py +17 -0
- invenio_vocabularies/services/custom_fields/subject.py +82 -0
- invenio_vocabularies/services/custom_fields/vocabulary.py +96 -0
- invenio_vocabularies/services/facets.py +114 -0
- invenio_vocabularies/services/generators.py +38 -0
- invenio_vocabularies/services/permissions.py +30 -0
- invenio_vocabularies/services/querystr.py +57 -0
- invenio_vocabularies/services/results.py +110 -0
- invenio_vocabularies/services/schema.py +163 -0
- invenio_vocabularies/services/service.py +189 -0
- invenio_vocabularies/services/tasks.py +38 -0
- invenio_vocabularies/templates/semantic-ui/invenio_vocabularies/subjects.html +23 -0
- invenio_vocabularies/templates/semantic-ui/invenio_vocabularies/vocabularies-list.html +12 -0
- invenio_vocabularies/templates/semantic-ui/invenio_vocabularies/vocabulary-details.html +71 -0
- invenio_vocabularies/translations/ar/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ar/LC_MESSAGES/messages.po +277 -0
- invenio_vocabularies/translations/bg/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/bg/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/ca/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ca/LC_MESSAGES/messages.po +276 -0
- invenio_vocabularies/translations/cs/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/cs/LC_MESSAGES/messages.po +281 -0
- invenio_vocabularies/translations/da/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/da/LC_MESSAGES/messages.po +271 -0
- invenio_vocabularies/translations/de/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/de/LC_MESSAGES/messages.po +293 -0
- invenio_vocabularies/translations/el/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/el/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/es/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/es/LC_MESSAGES/messages.po +281 -0
- invenio_vocabularies/translations/et/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/et/LC_MESSAGES/messages.po +276 -0
- invenio_vocabularies/translations/fa/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/fa/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/fr/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/fr/LC_MESSAGES/messages.po +279 -0
- invenio_vocabularies/translations/hr/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/hr/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/hu/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/hu/LC_MESSAGES/messages.po +280 -0
- invenio_vocabularies/translations/it/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/it/LC_MESSAGES/messages.po +277 -0
- invenio_vocabularies/translations/ja/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ja/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/ka/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ka/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/ko/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ko/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/lt/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/lt/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/messages.pot +270 -0
- invenio_vocabularies/translations/no/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/no/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/pl/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/pl/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/pt/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/pt/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/ro/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ro/LC_MESSAGES/messages.po +280 -0
- invenio_vocabularies/translations/ru/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/ru/LC_MESSAGES/messages.po +276 -0
- invenio_vocabularies/translations/sk/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/sk/LC_MESSAGES/messages.po +276 -0
- invenio_vocabularies/translations/sv/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/sv/LC_MESSAGES/messages.po +280 -0
- invenio_vocabularies/translations/tr/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/tr/LC_MESSAGES/messages.po +277 -0
- invenio_vocabularies/translations/uk/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/uk/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/zh_CN/LC_MESSAGES/messages.po +276 -0
- invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.mo +0 -0
- invenio_vocabularies/translations/zh_TW/LC_MESSAGES/messages.po +275 -0
- invenio_vocabularies/views.py +53 -0
- invenio_vocabularies/webpack.py +51 -0
- invenio_vocabularies-9.1.2.dist-info/METADATA +517 -0
- invenio_vocabularies-9.1.2.dist-info/RECORD +337 -0
- invenio_vocabularies-9.1.2.dist-info/WHEEL +6 -0
- invenio_vocabularies-9.1.2.dist-info/entry_points.txt +73 -0
- invenio_vocabularies-9.1.2.dist-info/licenses/AUTHORS.rst +13 -0
- invenio_vocabularies-9.1.2.dist-info/licenses/LICENSE +21 -0
- invenio_vocabularies-9.1.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"analysis": {
|
|
4
|
+
"char_filter": {
|
|
5
|
+
"strip_special_chars": {
|
|
6
|
+
"type": "pattern_replace",
|
|
7
|
+
"pattern": "[\\p{Punct}\\p{S}]",
|
|
8
|
+
"replacement": ""
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"analyzer": {
|
|
12
|
+
"accent_edge_analyzer": {
|
|
13
|
+
"tokenizer": "standard",
|
|
14
|
+
"type": "custom",
|
|
15
|
+
"char_filter": ["strip_special_chars"],
|
|
16
|
+
"filter": [
|
|
17
|
+
"lowercasepreserveoriginal",
|
|
18
|
+
"asciifoldingpreserveoriginal",
|
|
19
|
+
"edgegrams"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"accent_analyzer": {
|
|
23
|
+
"tokenizer": "standard",
|
|
24
|
+
"type": "custom",
|
|
25
|
+
"char_filter": ["strip_special_chars"],
|
|
26
|
+
"filter": [
|
|
27
|
+
"lowercasepreserveoriginal",
|
|
28
|
+
"asciifoldingpreserveoriginal"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"normalizer": {
|
|
33
|
+
"accent_normalizer": {
|
|
34
|
+
"type": "custom",
|
|
35
|
+
"char_filter": ["strip_special_chars"],
|
|
36
|
+
"filter": [
|
|
37
|
+
"lowercase",
|
|
38
|
+
"asciifolding"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"filter": {
|
|
43
|
+
"lowercasepreserveoriginal": {
|
|
44
|
+
"type": "lowercase",
|
|
45
|
+
"preserve_original": true
|
|
46
|
+
},
|
|
47
|
+
"asciifoldingpreserveoriginal": {
|
|
48
|
+
"type": "asciifolding",
|
|
49
|
+
"preserve_original": true
|
|
50
|
+
},
|
|
51
|
+
"edgegrams": {
|
|
52
|
+
"type": "edge_ngram",
|
|
53
|
+
"min_gram": 2,
|
|
54
|
+
"max_gram": 20
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"mappings": {
|
|
60
|
+
"dynamic": "strict",
|
|
61
|
+
"properties": {
|
|
62
|
+
"$schema": {
|
|
63
|
+
"type": "keyword",
|
|
64
|
+
"index": "false"
|
|
65
|
+
},
|
|
66
|
+
"created": {
|
|
67
|
+
"type": "date"
|
|
68
|
+
},
|
|
69
|
+
"updated": {
|
|
70
|
+
"type": "date"
|
|
71
|
+
},
|
|
72
|
+
"indexed_at": {
|
|
73
|
+
"type": "date"
|
|
74
|
+
},
|
|
75
|
+
"uuid": {
|
|
76
|
+
"type": "keyword"
|
|
77
|
+
},
|
|
78
|
+
"version_id": {
|
|
79
|
+
"type": "integer"
|
|
80
|
+
},
|
|
81
|
+
"id": {
|
|
82
|
+
"type": "keyword"
|
|
83
|
+
},
|
|
84
|
+
"tags": {
|
|
85
|
+
"type": "keyword"
|
|
86
|
+
},
|
|
87
|
+
"name_sort": {
|
|
88
|
+
"type": "keyword"
|
|
89
|
+
},
|
|
90
|
+
"name": {
|
|
91
|
+
"type": "text",
|
|
92
|
+
"analyzer": "accent_edge_analyzer",
|
|
93
|
+
"search_analyzer": "accent_analyzer",
|
|
94
|
+
"copy_to": "name_sort"
|
|
95
|
+
},
|
|
96
|
+
"given_name": {
|
|
97
|
+
"type": "text",
|
|
98
|
+
"analyzer": "accent_edge_analyzer",
|
|
99
|
+
"search_analyzer": "accent_analyzer"
|
|
100
|
+
},
|
|
101
|
+
"family_name": {
|
|
102
|
+
"type": "text"
|
|
103
|
+
},
|
|
104
|
+
"identifiers": {
|
|
105
|
+
"properties": {
|
|
106
|
+
"identifier": {
|
|
107
|
+
"type": "keyword",
|
|
108
|
+
"normalizer": "accent_normalizer"
|
|
109
|
+
},
|
|
110
|
+
"scheme": {
|
|
111
|
+
"type": "keyword"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"affiliations": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"@v": {
|
|
119
|
+
"type": "keyword"
|
|
120
|
+
},
|
|
121
|
+
"id": {
|
|
122
|
+
"type": "keyword"
|
|
123
|
+
},
|
|
124
|
+
"name": {
|
|
125
|
+
"type": "text",
|
|
126
|
+
"analyzer": "accent_edge_analyzer",
|
|
127
|
+
"search_analyzer": "accent_analyzer"
|
|
128
|
+
},
|
|
129
|
+
"acronym": {
|
|
130
|
+
"type": "text",
|
|
131
|
+
"analyzer": "accent_edge_analyzer",
|
|
132
|
+
"search_analyzer": "accent_analyzer",
|
|
133
|
+
"fields": {
|
|
134
|
+
"keyword": {
|
|
135
|
+
"type": "keyword",
|
|
136
|
+
"normalizer": "accent_normalizer"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"pid": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"pk": {
|
|
146
|
+
"type": "integer"
|
|
147
|
+
},
|
|
148
|
+
"pid_type": {
|
|
149
|
+
"type": "keyword"
|
|
150
|
+
},
|
|
151
|
+
"obj_type": {
|
|
152
|
+
"type": "keyword"
|
|
153
|
+
},
|
|
154
|
+
"status": {
|
|
155
|
+
"type": "keyword"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"props": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"dynamic": "true"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mappings": {
|
|
3
|
+
"dynamic": "strict",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"type": "keyword",
|
|
7
|
+
"index": "false"
|
|
8
|
+
},
|
|
9
|
+
"created": {
|
|
10
|
+
"type": "date"
|
|
11
|
+
},
|
|
12
|
+
"updated": {
|
|
13
|
+
"type": "date"
|
|
14
|
+
},
|
|
15
|
+
"indexed_at": {
|
|
16
|
+
"type": "date"
|
|
17
|
+
},
|
|
18
|
+
"uuid": {
|
|
19
|
+
"type": "keyword"
|
|
20
|
+
},
|
|
21
|
+
"version_id": {
|
|
22
|
+
"type": "integer"
|
|
23
|
+
},
|
|
24
|
+
"id": {
|
|
25
|
+
"type": "keyword"
|
|
26
|
+
},
|
|
27
|
+
"tags": {
|
|
28
|
+
"type": "keyword"
|
|
29
|
+
},
|
|
30
|
+
"name_sort": {
|
|
31
|
+
"type": "keyword"
|
|
32
|
+
},
|
|
33
|
+
"name": {
|
|
34
|
+
"type": "text",
|
|
35
|
+
"copy_to": "name_sort",
|
|
36
|
+
"fields": {
|
|
37
|
+
"suggest": {
|
|
38
|
+
"type": "search_as_you_type"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"given_name": {
|
|
43
|
+
"type": "text"
|
|
44
|
+
},
|
|
45
|
+
"family_name": {
|
|
46
|
+
"type": "text"
|
|
47
|
+
},
|
|
48
|
+
"identifiers": {
|
|
49
|
+
"properties": {
|
|
50
|
+
"identifier": {
|
|
51
|
+
"type": "keyword",
|
|
52
|
+
"fields": {
|
|
53
|
+
"suggest": {
|
|
54
|
+
"type": "search_as_you_type"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"scheme": {
|
|
59
|
+
"type": "keyword"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"affiliations": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"@v": {
|
|
67
|
+
"type": "keyword"
|
|
68
|
+
},
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "keyword"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "keyword",
|
|
74
|
+
"fields": {
|
|
75
|
+
"suggest": {
|
|
76
|
+
"type": "search_as_you_type"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"pid": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"pk": {
|
|
86
|
+
"type": "integer"
|
|
87
|
+
},
|
|
88
|
+
"pid_type": {
|
|
89
|
+
"type": "keyword"
|
|
90
|
+
},
|
|
91
|
+
"obj_type": {
|
|
92
|
+
"type": "keyword"
|
|
93
|
+
},
|
|
94
|
+
"status": {
|
|
95
|
+
"type": "keyword"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
{
|
|
2
|
+
"settings": {
|
|
3
|
+
"analysis": {
|
|
4
|
+
"char_filter": {
|
|
5
|
+
"strip_special_chars": {
|
|
6
|
+
"type": "pattern_replace",
|
|
7
|
+
"pattern": "[\\p{Punct}\\p{S}]",
|
|
8
|
+
"replacement": ""
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"analyzer": {
|
|
12
|
+
"accent_edge_analyzer": {
|
|
13
|
+
"tokenizer": "standard",
|
|
14
|
+
"type": "custom",
|
|
15
|
+
"char_filter": ["strip_special_chars"],
|
|
16
|
+
"filter": [
|
|
17
|
+
"lowercasepreserveoriginal",
|
|
18
|
+
"asciifoldingpreserveoriginal",
|
|
19
|
+
"edgegrams"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"accent_analyzer": {
|
|
23
|
+
"tokenizer": "standard",
|
|
24
|
+
"type": "custom",
|
|
25
|
+
"char_filter": ["strip_special_chars"],
|
|
26
|
+
"filter": [
|
|
27
|
+
"lowercasepreserveoriginal",
|
|
28
|
+
"asciifoldingpreserveoriginal"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"normalizer": {
|
|
33
|
+
"accent_normalizer": {
|
|
34
|
+
"type": "custom",
|
|
35
|
+
"char_filter": ["strip_special_chars"],
|
|
36
|
+
"filter": [
|
|
37
|
+
"lowercase",
|
|
38
|
+
"asciifolding"
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"filter": {
|
|
43
|
+
"lowercasepreserveoriginal": {
|
|
44
|
+
"type": "lowercase",
|
|
45
|
+
"preserve_original": true
|
|
46
|
+
},
|
|
47
|
+
"asciifoldingpreserveoriginal": {
|
|
48
|
+
"type": "asciifolding",
|
|
49
|
+
"preserve_original": true
|
|
50
|
+
},
|
|
51
|
+
"edgegrams": {
|
|
52
|
+
"type": "edge_ngram",
|
|
53
|
+
"min_gram": 2,
|
|
54
|
+
"max_gram": 20
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"mappings": {
|
|
60
|
+
"dynamic": "strict",
|
|
61
|
+
"properties": {
|
|
62
|
+
"$schema": {
|
|
63
|
+
"type": "keyword",
|
|
64
|
+
"index": "false"
|
|
65
|
+
},
|
|
66
|
+
"created": {
|
|
67
|
+
"type": "date"
|
|
68
|
+
},
|
|
69
|
+
"updated": {
|
|
70
|
+
"type": "date"
|
|
71
|
+
},
|
|
72
|
+
"indexed_at": {
|
|
73
|
+
"type": "date"
|
|
74
|
+
},
|
|
75
|
+
"uuid": {
|
|
76
|
+
"type": "keyword"
|
|
77
|
+
},
|
|
78
|
+
"version_id": {
|
|
79
|
+
"type": "integer"
|
|
80
|
+
},
|
|
81
|
+
"id": {
|
|
82
|
+
"type": "keyword"
|
|
83
|
+
},
|
|
84
|
+
"tags": {
|
|
85
|
+
"type": "keyword"
|
|
86
|
+
},
|
|
87
|
+
"name_sort": {
|
|
88
|
+
"type": "keyword"
|
|
89
|
+
},
|
|
90
|
+
"name": {
|
|
91
|
+
"type": "text",
|
|
92
|
+
"analyzer": "accent_edge_analyzer",
|
|
93
|
+
"search_analyzer": "accent_analyzer",
|
|
94
|
+
"copy_to": "name_sort"
|
|
95
|
+
},
|
|
96
|
+
"given_name": {
|
|
97
|
+
"type": "text",
|
|
98
|
+
"analyzer": "accent_edge_analyzer",
|
|
99
|
+
"search_analyzer": "accent_analyzer"
|
|
100
|
+
},
|
|
101
|
+
"family_name": {
|
|
102
|
+
"type": "text"
|
|
103
|
+
},
|
|
104
|
+
"identifiers": {
|
|
105
|
+
"properties": {
|
|
106
|
+
"identifier": {
|
|
107
|
+
"type": "keyword",
|
|
108
|
+
"normalizer": "accent_normalizer"
|
|
109
|
+
},
|
|
110
|
+
"scheme": {
|
|
111
|
+
"type": "keyword"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"affiliations": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"@v": {
|
|
119
|
+
"type": "keyword"
|
|
120
|
+
},
|
|
121
|
+
"id": {
|
|
122
|
+
"type": "keyword"
|
|
123
|
+
},
|
|
124
|
+
"name": {
|
|
125
|
+
"type": "text",
|
|
126
|
+
"analyzer": "accent_edge_analyzer",
|
|
127
|
+
"search_analyzer": "accent_analyzer"
|
|
128
|
+
},
|
|
129
|
+
"acronym": {
|
|
130
|
+
"type": "text",
|
|
131
|
+
"analyzer": "accent_edge_analyzer",
|
|
132
|
+
"search_analyzer": "accent_analyzer",
|
|
133
|
+
"fields": {
|
|
134
|
+
"keyword": {
|
|
135
|
+
"type": "keyword",
|
|
136
|
+
"normalizer": "accent_normalizer"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"pid": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"pk": {
|
|
146
|
+
"type": "integer"
|
|
147
|
+
},
|
|
148
|
+
"pid_type": {
|
|
149
|
+
"type": "keyword"
|
|
150
|
+
},
|
|
151
|
+
"obj_type": {
|
|
152
|
+
"type": "keyword"
|
|
153
|
+
},
|
|
154
|
+
"status": {
|
|
155
|
+
"type": "keyword"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"props": {
|
|
160
|
+
"type": "object",
|
|
161
|
+
"dynamic": "true"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2021 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio-Vocabularies is free software; you can redistribute it and/or
|
|
6
|
+
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
7
|
+
# details.
|
|
8
|
+
|
|
9
|
+
"""Names Elasticsearch v7 mappings."""
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"mappings": {
|
|
3
|
+
"dynamic": "strict",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"type": "keyword",
|
|
7
|
+
"index": "false"
|
|
8
|
+
},
|
|
9
|
+
"created": {
|
|
10
|
+
"type": "date"
|
|
11
|
+
},
|
|
12
|
+
"updated": {
|
|
13
|
+
"type": "date"
|
|
14
|
+
},
|
|
15
|
+
"indexed_at": {
|
|
16
|
+
"type": "date"
|
|
17
|
+
},
|
|
18
|
+
"uuid": {
|
|
19
|
+
"type": "keyword"
|
|
20
|
+
},
|
|
21
|
+
"version_id": {
|
|
22
|
+
"type": "integer"
|
|
23
|
+
},
|
|
24
|
+
"id": {
|
|
25
|
+
"type": "keyword"
|
|
26
|
+
},
|
|
27
|
+
"tags": {
|
|
28
|
+
"type": "keyword"
|
|
29
|
+
},
|
|
30
|
+
"name_sort": {
|
|
31
|
+
"type": "keyword"
|
|
32
|
+
},
|
|
33
|
+
"name": {
|
|
34
|
+
"type": "text",
|
|
35
|
+
"copy_to": "name_sort",
|
|
36
|
+
"fields": {
|
|
37
|
+
"suggest": {
|
|
38
|
+
"type": "search_as_you_type"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"given_name": {
|
|
43
|
+
"type": "text"
|
|
44
|
+
},
|
|
45
|
+
"family_name": {
|
|
46
|
+
"type": "text"
|
|
47
|
+
},
|
|
48
|
+
"identifiers": {
|
|
49
|
+
"properties": {
|
|
50
|
+
"identifier": {
|
|
51
|
+
"type": "keyword",
|
|
52
|
+
"fields": {
|
|
53
|
+
"suggest": {
|
|
54
|
+
"type": "search_as_you_type"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"scheme": {
|
|
59
|
+
"type": "keyword"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"affiliations": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"properties": {
|
|
66
|
+
"@v": {
|
|
67
|
+
"type": "keyword"
|
|
68
|
+
},
|
|
69
|
+
"id": {
|
|
70
|
+
"type": "keyword"
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"type": "keyword",
|
|
74
|
+
"fields": {
|
|
75
|
+
"suggest": {
|
|
76
|
+
"type": "search_as_you_type"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"pid": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"properties": {
|
|
85
|
+
"pk": {
|
|
86
|
+
"type": "integer"
|
|
87
|
+
},
|
|
88
|
+
"pid_type": {
|
|
89
|
+
"type": "keyword"
|
|
90
|
+
},
|
|
91
|
+
"obj_type": {
|
|
92
|
+
"type": "keyword"
|
|
93
|
+
},
|
|
94
|
+
"status": {
|
|
95
|
+
"type": "keyword"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2021 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio-Vocabularies is free software; you can redistribute it and/or
|
|
6
|
+
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
7
|
+
# details.
|
|
8
|
+
|
|
9
|
+
"""Vocabulary names."""
|
|
10
|
+
|
|
11
|
+
from .names import record_type
|
|
12
|
+
|
|
13
|
+
NamesMetadata = record_type.model_cls
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2021-2024 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio-Vocabularies is free software; you can redistribute it and/or
|
|
6
|
+
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
7
|
+
# details.
|
|
8
|
+
|
|
9
|
+
"""Vocabulary names."""
|
|
10
|
+
|
|
11
|
+
from flask_resources import JSONSerializer, ResponseHandler
|
|
12
|
+
from invenio_db import db
|
|
13
|
+
from invenio_records.dumpers import SearchDumper
|
|
14
|
+
from invenio_records.dumpers.indexedat import IndexedAtDumperExt
|
|
15
|
+
from invenio_records.dumpers.relations import RelationDumperExt
|
|
16
|
+
from invenio_records.systemfields import ModelField, RelationsField
|
|
17
|
+
from invenio_records_resources.factories.factory import RecordTypeFactory
|
|
18
|
+
from invenio_records_resources.records.systemfields import (
|
|
19
|
+
ModelPIDField,
|
|
20
|
+
PIDListRelation,
|
|
21
|
+
)
|
|
22
|
+
from invenio_records_resources.resources.records.headers import etag_headers
|
|
23
|
+
|
|
24
|
+
from invenio_vocabularies.contrib.names.permissions import NamesPermissionPolicy
|
|
25
|
+
|
|
26
|
+
from ..affiliations.api import Affiliation
|
|
27
|
+
from .config import NamesSearchOptions, service_components
|
|
28
|
+
from .schema import NameSchema
|
|
29
|
+
|
|
30
|
+
name_relations = RelationsField(
|
|
31
|
+
affiliations=PIDListRelation(
|
|
32
|
+
"affiliations",
|
|
33
|
+
keys=["name", "acronym"],
|
|
34
|
+
pid_field=Affiliation.pid,
|
|
35
|
+
cache_key="affiliations",
|
|
36
|
+
)
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
record_type = RecordTypeFactory(
|
|
40
|
+
"Name",
|
|
41
|
+
# Data layer
|
|
42
|
+
pid_field_cls=ModelPIDField,
|
|
43
|
+
pid_field_kwargs={
|
|
44
|
+
"model_field_name": "pid",
|
|
45
|
+
},
|
|
46
|
+
model_cls_attrs={
|
|
47
|
+
# cannot set to nullable=False because it would fail at
|
|
48
|
+
# service level when create({}), see records-resources.
|
|
49
|
+
"pid": db.Column(db.String(255), unique=True),
|
|
50
|
+
"internal_id": db.Column(db.String(255), nullable=True, index=True),
|
|
51
|
+
},
|
|
52
|
+
schema_version="1.0.0",
|
|
53
|
+
schema_path="local://names/name-v1.0.0.json",
|
|
54
|
+
index_name="names-name-v2.0.0",
|
|
55
|
+
record_cls_attrs={"internal_id": ModelField("internal_id", dump=False)},
|
|
56
|
+
record_relations=name_relations,
|
|
57
|
+
record_dumper=SearchDumper(
|
|
58
|
+
model_fields={"pid": ("id", str)},
|
|
59
|
+
extensions=[
|
|
60
|
+
RelationDumperExt("relations"),
|
|
61
|
+
IndexedAtDumperExt(),
|
|
62
|
+
],
|
|
63
|
+
),
|
|
64
|
+
# Service layer
|
|
65
|
+
service_id="names",
|
|
66
|
+
service_schema=NameSchema,
|
|
67
|
+
search_options=NamesSearchOptions,
|
|
68
|
+
service_components=service_components,
|
|
69
|
+
permission_policy_cls=NamesPermissionPolicy,
|
|
70
|
+
# Resource layer
|
|
71
|
+
endpoint_route="/names",
|
|
72
|
+
resource_cls_attrs={
|
|
73
|
+
"response_handlers": {
|
|
74
|
+
"application/json": ResponseHandler(JSONSerializer(), headers=etag_headers),
|
|
75
|
+
"application/vnd.inveniordm.v1+json": ResponseHandler(
|
|
76
|
+
JSONSerializer(), headers=etag_headers
|
|
77
|
+
),
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2020-2024 CERN.
|
|
4
|
+
#
|
|
5
|
+
# Invenio-Vocabularies is free software; you can redistribute it and/or
|
|
6
|
+
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
7
|
+
# details.
|
|
8
|
+
|
|
9
|
+
"""Vocabulary permissions."""
|
|
10
|
+
|
|
11
|
+
from invenio_records_permissions.generators import AuthenticatedUser, SystemProcess
|
|
12
|
+
|
|
13
|
+
from invenio_vocabularies.services.generators import IfTags
|
|
14
|
+
from invenio_vocabularies.services.permissions import PermissionPolicy
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class NamesPermissionPolicy(PermissionPolicy):
|
|
18
|
+
"""Names permission policy.
|
|
19
|
+
|
|
20
|
+
Names endpoints are protected, only authenticated users can access them.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
can_search = [
|
|
24
|
+
SystemProcess(),
|
|
25
|
+
AuthenticatedUser(),
|
|
26
|
+
]
|
|
27
|
+
can_read = [
|
|
28
|
+
SystemProcess(),
|
|
29
|
+
IfTags(["unlisted"], then_=[SystemProcess()], else_=[AuthenticatedUser()]),
|
|
30
|
+
]
|