Add Field#
Add new field if similliar properties are already present:#
To be able to define a new field, it is a good idea to check in dcatap-input-definitions.js whether fields/properties with similar parameters already exist.
File: piveau-hub-ui-modules\src\modules\data-provider-interface\config\dcatap-input-definition.js
// If you only need a template like this, without changing any parameters
// (except the IDENTIFIER) you can just copy and paste it.
IDENTIFIER: {
identifier: 'datasetID',
type: 'text',
name: 'semanticNameOfProperty',
class: 'property',
'@change': true,
},
If this is the case, copy this property and rename it according to your needs. To enable a display in the frontend, this property must be initialised under page-content-config.js.
File: piveau-hub-ui-modules\src\modules\data-provider-interface\config\page-content-config.js
datasets: {
step1: {
title: {},
datasetID: {},
description: {},
catalog: {},
publisher: {},
theme: {},
issued: {},
modified: {},
},
step2: {
politicalGeocodingLevelURI: {},
politicalGeocodingURI: {},
IDENTIFIER: {}, <--- Insert your new property here
...
}
...
}
Make sure that the property is necessary, recommended or optional and write its name in the appropriate "step". If properties with the same name are defined in different areas, they must also be initialised in these areas in page-content-config.js. Pay attention to the Weblate translation.
To get the new Field displayed in the Dataset overview, you have to add the information of the new field into the following file: