Fixes scope of metadata in advanced search
This commit is contained in:
parent
5227f150fe
commit
e88d4f48d7
|
@ -214,7 +214,7 @@
|
|||
|
||||
<script>
|
||||
|
||||
import { mapActions, mapGetters } from 'vuex';
|
||||
import { mapActions } from 'vuex';
|
||||
import { dateInter } from '../../js/mixins.js';
|
||||
import moment from 'moment';
|
||||
|
||||
|
@ -233,21 +233,17 @@
|
|||
this.searchAdvanced();
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
metadata() {
|
||||
return this.getMetadata();
|
||||
}
|
||||
},
|
||||
created(){
|
||||
|
||||
this.metadataIsLoading = true;
|
||||
|
||||
this.fetchMetadata({
|
||||
collectionId: this.isRepositoryLevel ? undefined : this.$route.params.collectionId,
|
||||
collectionId: this.isRepositoryLevel ? false : this.$route.params.collectionId,
|
||||
isRepositoryLevel: this.isRepositoryLevel,
|
||||
isContextEdit: true,
|
||||
includeDisabled: true,
|
||||
}).then(() => {
|
||||
isContextEdit: false,
|
||||
includeDisabled: false,
|
||||
}).then((metadata) => {
|
||||
this.metadata = metadata;
|
||||
this.metadataIsLoading = false;
|
||||
});
|
||||
|
||||
|
@ -340,6 +336,7 @@
|
|||
dateMask: this.getDateLocaleMask(),
|
||||
dateFormat: '',
|
||||
metadataIsLoading: false,
|
||||
metadata: [],
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
@ -349,9 +346,6 @@
|
|||
...mapActions('metadata', [
|
||||
'fetchMetadata'
|
||||
]),
|
||||
...mapGetters('metadata', [
|
||||
'getMetadata'
|
||||
]),
|
||||
autoCompleteTerm: _.debounce( function(value, searchCriterion){
|
||||
this.termList = [];
|
||||
this.terms = [];
|
||||
|
|
|
@ -289,7 +289,7 @@
|
|||
collectionId: this.collectionID,
|
||||
isRepositoryLevel: false,
|
||||
isContextEdit: true,
|
||||
includeDisabled: true,
|
||||
includeDisabled: false,
|
||||
}).then(() => {
|
||||
this.metadataIsLoading = false;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue