Skip to content
Snippets Groups Projects
Verified Commit baa36133 authored by Martin Weise's avatar Martin Weise
Browse files
parent f795f9fc
No related branches found
No related tags found
No related merge requests found
...@@ -352,6 +352,7 @@ ...@@ -352,6 +352,7 @@
variant="flat"> variant="flat">
<v-stepper-header> <v-stepper-header>
<v-stepper-item <v-stepper-item
:title="descriptionTitle(description)"
:value="i+1" /> :value="i+1" />
</v-stepper-header> </v-stepper-header>
<v-stepper-window <v-stepper-window
...@@ -359,12 +360,12 @@ ...@@ -359,12 +360,12 @@
<v-container> <v-container>
<v-row dense> <v-row dense>
<v-col cols="8"> <v-col cols="8">
<v-text-field <v-textarea
v-model="description.description" v-model="description.description"
:label="$t('pages.identifier.subpages.create.descriptions.description.label')" :label="$t('pages.identifier.subpages.create.descriptions.description.label')"
clearable clearable
:variant="inputVariant" :variant="inputVariant"
:hint="$t('pages.identifier.subpages.create.descriptions.description.hint')" :hint="$t('pages.identifier.subpages.create.descriptions.description.hint', { symbol: '<br>'})"
persistent-hint persistent-hint
:rules="[v => !!v || $t('validation.required')]" :rules="[v => !!v || $t('validation.required')]"
required /> required />
...@@ -1155,7 +1156,21 @@ export default { ...@@ -1155,7 +1156,21 @@ export default {
mounted () { mounted () {
this.addCreator() this.addCreator()
this.addTitle() this.addTitle()
this.addDescription() this.identifier.descriptions.push({
description: null,
type: 'Abstract',
language: null
})
this.identifier.descriptions.push({
description: null,
type: 'Methods',
language: null
})
this.identifier.descriptions.push({
description: null,
type: 'Other',
language: null
})
this.fetchLicenses() this.fetchLicenses()
this.fetchIdentifier() this.fetchIdentifier()
this.$refs.form.validate() this.$refs.form.validate()
...@@ -1164,6 +1179,12 @@ export default { ...@@ -1164,6 +1179,12 @@ export default {
cancel () { cancel () {
this.$emit('close', { action: 'closed' }) this.$emit('close', { action: 'closed' })
}, },
descriptionTitle (description) {
if (!description.type) {
return null
}
return this.$t(`pages.identifier.subpages.create.descriptions.description.${description.type.toLowerCase()}`)
},
retrieveCreator (creator) { retrieveCreator (creator) {
if (!creator || !creator.name_identifier) { if (!creator || !creator.name_identifier) {
creator.name_identifier_scheme = null creator.name_identifier_scheme = null
......
...@@ -137,7 +137,13 @@ ...@@ -137,7 +137,13 @@
"descriptions": { "descriptions": {
"description": { "description": {
"label": "Description", "label": "Description",
"hint": "Required" "hint": "Required. Use {symbol} to indicate a line break for improved rendering of multiple paragraphs, but otherwise no HTML markup.",
"abstract": "Data Abstract",
"methods": "Collection Method",
"seriesinformation": "Series Information",
"tableofcontents": "Table of Contents",
"technicalinfo": "Technical Information",
"other": "Description of the Dataset"
}, },
"type": { "type": {
"label": "Type", "label": "Type",
...@@ -185,7 +191,7 @@ ...@@ -185,7 +191,7 @@
}, },
"licenses": { "licenses": {
"title": "License", "title": "License",
"subtitle": "Identifiers of related resources. These must be globally unique identifiers", "subtitle": "Rights information of the dataset",
"license": { "license": {
"label": "License" "label": "License"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment