diff --git a/.docs/changelog.md b/.docs/changelog.md index e3f7a573e4c1ff84c500f1215b548710a6040c83..1f4a4ed9040a1b623f9179035c1f11b576b88034 100644 --- a/.docs/changelog.md +++ b/.docs/changelog.md @@ -6,6 +6,8 @@ author: Martin Weise #### Changes +* Improved default mask for PIDs + in [#521](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/issues/521). * Added a visual filter for displaying starred/unstarred/all subsets in the UI. * Specified image platform as `linux/amd64` in `docker-compose.yaml` deployment to enable host platform (e.g. ARM) to emulate it. diff --git a/dbrepo-ui/components/identifier/Persist.vue b/dbrepo-ui/components/identifier/Persist.vue index 004a037c4667fac81bb65d9376d94cfb6a8b80a8..0ba69fcbc2c9f3d29e20bff81aea09b1eeda6a5f 100644 --- a/dbrepo-ui/components/identifier/Persist.vue +++ b/dbrepo-ui/components/identifier/Persist.vue @@ -352,6 +352,7 @@ variant="flat"> <v-stepper-header> <v-stepper-item + :title="descriptionTitle(description)" :value="i+1" /> </v-stepper-header> <v-stepper-window @@ -359,12 +360,12 @@ <v-container> <v-row dense> <v-col cols="8"> - <v-text-field + <v-textarea v-model="description.description" :label="$t('pages.identifier.subpages.create.descriptions.description.label')" clearable :variant="inputVariant" - :hint="$t('pages.identifier.subpages.create.descriptions.description.hint')" + :hint="$t('pages.identifier.subpages.create.descriptions.description.hint', { symbol: '<br>'})" persistent-hint :rules="[v => !!v || $t('validation.required')]" required /> @@ -1155,7 +1156,21 @@ export default { mounted () { this.addCreator() 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.fetchIdentifier() this.$refs.form.validate() @@ -1164,6 +1179,12 @@ export default { cancel () { 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) { if (!creator || !creator.name_identifier) { creator.name_identifier_scheme = null diff --git a/dbrepo-ui/locales/en-US.json b/dbrepo-ui/locales/en-US.json index 3b005cc7592ab670f362491d8551922729046d46..d3918cab602c062a1c902d6afc29a17b0103b8a7 100644 --- a/dbrepo-ui/locales/en-US.json +++ b/dbrepo-ui/locales/en-US.json @@ -137,7 +137,13 @@ "descriptions": { "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": { "label": "Type", @@ -185,7 +191,7 @@ }, "licenses": { "title": "License", - "subtitle": "Identifiers of related resources. These must be globally unique identifiers", + "subtitle": "Rights information of the dataset", "license": { "label": "License" }