Sprint/201922
Compare changes
+ 97
− 25
v-bind:class="{ mandatory: this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0]['value'] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0]['value'] >= 1 }"
v-if="(this.formFieldInformation['http://www.w3.org/ns/shacl#maxCount'] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0]['value'] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0]['value'] === 1)"
@@ -16,11 +18,10 @@
@@ -16,11 +18,10 @@
:required="this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0]['value'] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0]['value'] >= 1"
@@ -32,12 +33,19 @@
@@ -32,12 +33,19 @@
:max="this.formFieldInformation['http://www.w3.org/ns/shacl#maxCount'] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0]['value'] !== undefined ? parseInt(formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0]['value']) : maxNumberOfSelectedObjects"
:max="this.formFieldInformation['http://www.w3.org/ns/shacl#maxCount'] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0]['value'] !== undefined ? parseInt(formFieldInformation['http://www.w3.org/ns/shacl#maxCount'][0]['value']) : maxNumberOfSelectedObjects"
:required="this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0] !== undefined && this.formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0]['value'] !== undefined && formFieldInformation['http://www.w3.org/ns/shacl#minCount'][0]['value'] >= 1"
@@ -45,6 +53,9 @@
@@ -45,6 +53,9 @@
@@ -63,26 +74,46 @@ export default Vue.extend({
@@ -63,26 +74,46 @@ export default Vue.extend({
this.$set(this.formData[this.nodeName][0], 'value', this.formFieldInformation['https://purl.org/coscine/fixedValue'][0].value);
if (Array.isArray(response.data[this.languageCode]) && response.data[this.languageCode].length === 0) {
@@ -98,6 +129,7 @@ export default Vue.extend({
@@ -98,6 +129,7 @@ export default Vue.extend({
@@ -109,9 +141,12 @@ export default Vue.extend({
@@ -109,9 +141,12 @@ export default Vue.extend({
@@ -122,6 +157,7 @@ export default Vue.extend({
@@ -122,6 +157,7 @@ export default Vue.extend({
@@ -134,14 +170,50 @@ export default Vue.extend({
@@ -134,14 +170,50 @@ export default Vue.extend({