-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds 115 custom fields using the `mex:` namespace. These custom fields are derived from the [3.4.0](https://github.com/robert-koch-institut/mex-model/releases/tag/3.4.0) version of the MEx metadata model. There is some validation implemented using little effort but this should not be required as incoming data will already have been validated using the model. The `mex:identifier` field is the only `required` custom field. The [resource types](https://inveniordm.docs.cern.ch/customize/vocabularies/resource_types/) vocabulary has been replaced with 11 MEx entity types. Please verify that these are the correct entity types. The custom nested field class `MultiLanguageTextCF` is modelled on the MEx [text](https://github.com/robert-koch-institut/mex-model/blob/main/mex/model/fields/text.json) field. ### Templates Three templates has been amended, `records/detail.html` which includes `records/details/mex_details.html` and `records/macros/mex_detail.html` only in order to list custom fields the same way Datacite fields are listed by default on the landing page. The templates have also been changed to not expect a `props` property defined in the `RDM_CUSTOM_FIELDS_UI` config variable. In other words, if these amended templates were not used, Jinja would throw an error expecting each field in that config variable to have a `props` property set. ## Unresolved This PR does not have unit tests. They are coming soon in a PR for importing data. There are still decisions to be made on the searchability of these custom fields, if and then how they are searched on or faceted.
- Loading branch information
Showing
9 changed files
with
1,441 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# These are 11 MEx entity types | ||
# https://github.com/robert-koch-institut/mex-model/tree/main/mex/model/entities | ||
# they replace the Datacite 4.3 resource types | ||
# https://github.com/inveniosoftware/invenio-rdm-records/blob/master/invenio_rdm_records/fixtures/data/vocabularies/resource_types.yaml | ||
# For more information: | ||
# https://inveniordm.docs.cern.ch/customize/vocabularies/resource_types/ | ||
- id: variable | ||
icon: code | ||
title: | ||
en: Variable | ||
props: | ||
type: variable | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: resource | ||
icon: code | ||
title: | ||
en: Resource | ||
props: | ||
type: resource | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: activity | ||
icon: code | ||
title: | ||
en: Activity | ||
props: | ||
type: activity | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: accessplatform | ||
icon: code | ||
title: | ||
en: Access platform | ||
props: | ||
type: accessplatform | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: distribution | ||
icon: code | ||
title: | ||
en: Distribution | ||
props: | ||
type: distribution | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: organizationalunit | ||
icon: code | ||
title: | ||
en: Organizational unit | ||
props: | ||
type: organizationalunit | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: contactpoint | ||
icon: code | ||
title: | ||
en: Contact point | ||
props: | ||
type: contactpoint | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: person | ||
icon: code | ||
title: | ||
en: Person | ||
props: | ||
type: person | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: variablegroup | ||
icon: code | ||
title: | ||
en: Variable group | ||
props: | ||
type: variablegroup | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: bibliographicresource | ||
icon: code | ||
title: | ||
en: Bibliographic resource | ||
props: | ||
type: bibliographicresource | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable | ||
- id: organization | ||
icon: code | ||
title: | ||
en: Organization | ||
props: | ||
type: organization | ||
subtype: "" | ||
tags: | ||
- depositable | ||
- linkable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.