diff --git a/cataloging/src/components/care/form-builder.vue b/cataloging/src/components/care/form-builder.vue index 355a67419..f9fb022ab 100644 --- a/cataloging/src/components/care/form-builder.vue +++ b/cataloging/src/components/care/form-builder.vue @@ -94,7 +94,7 @@ export default { :is-active="true" :form-data="formData" :locked="!isActive" - :show-pinned="true" + :show-bulkchange-actions="true" /> diff --git a/cataloging/src/components/inspector/entity-form.vue b/cataloging/src/components/inspector/entity-form.vue index 237c21338..f8f90d5ce 100644 --- a/cataloging/src/components/inspector/entity-form.vue +++ b/cataloging/src/components/inspector/entity-form.vue @@ -41,7 +41,7 @@ export default { type: String, default: '', }, - showPinned: { + showBulkchangeActions: { type: Boolean, default: false, } @@ -158,7 +158,7 @@ export default { :field-key="k" :field-value="v" :parent-path="editingObject" - :showPinned="showPinned" + :showBulkchangeActions="showBulkchangeActions" />
diff --git a/cataloging/src/components/inspector/field.vue b/cataloging/src/components/inspector/field.vue index a9f627ba6..260347afe 100644 --- a/cataloging/src/components/inspector/field.vue +++ b/cataloging/src/components/inspector/field.vue @@ -121,7 +121,7 @@ export default { type: Boolean, default: false, }, - showPinned: { + showBulkchangeActions: { type: Boolean, default: false, } @@ -444,6 +444,9 @@ export default { translatePhrase, labelByLang, capitalize, + matchSubClasses(item) { + return typeof item['_match'] !== 'undefined' && item['_match'].includes('Subclasses'); + }, onLabelClick() { this.$store.dispatch('pushInspectorEvent', { name: 'field-label-clicked', @@ -604,6 +607,23 @@ export default { }); } }, + toggleMatchSubClasses() { + let update = cloneDeep(get(this.inspector.data, this.parentPath)) + if (typeof update['_match'] !== 'undefined') { + delete update['_match']; + } else { + update['_match'] = ['Subtypes']; + } + this.$store.dispatch('updateInspectorData', { + changeList: [ + { + path: `${this.parentPath}`, + value: update, + }, + ], + addToHistory: true, + }); + }, }, beforeUnmount() { this.$store.dispatch('setValidation', { path: this.path, validates: true }); @@ -845,7 +865,17 @@ export default { :field-key="fieldKey" :field-value="item" :entity-type="entityType" - :parent-path="path" /> + :parent-path="path"/> ++ + {{ translatePhrase('Match subclasses') }} + + +