Fixes theme side repository level items list. Adds collection filter to term items list.
This commit is contained in:
parent
f4516e9ea3
commit
a97f62bd82
|
@ -65,10 +65,10 @@
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
this.fetchCollections({
|
this.fetchCollections({
|
||||||
page: 1,
|
page: 1,
|
||||||
collectionsPerPage: -1,
|
collectionsPerPage: -1,
|
||||||
status: null,
|
status: null,
|
||||||
contextEdit: false
|
contextEdit: false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
compare: 'IN',
|
compare: 'IN',
|
||||||
collection_id: this.collectionsIdsToFilter,
|
collection_id: this.collectionsIdsToFilter,
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
|
|
||||||
<!-- TERM ITEMS PAGE FILTERS -->
|
<!-- TERM ITEMS PAGE FILTERS -->
|
||||||
<template v-if="taxonomy && taxonomyFilters">
|
<template v-if="taxonomy && taxonomyFilters">
|
||||||
|
<collections-filter
|
||||||
|
:open="!collapseAll"
|
||||||
|
:query="getQuery"/>
|
||||||
<div
|
<div
|
||||||
v-if="key == 'repository-filters'"
|
v-if="key == 'repository-filters'"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
|
|
@ -55,7 +55,7 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
|
||||||
// Differentiates between repository level and collection level queries
|
// Differentiates between repository level and collection level queries
|
||||||
let endpoint = '/collection/'+ collectionId +'/items?';
|
let endpoint = '/collection/'+ collectionId +'/items?';
|
||||||
|
|
||||||
if (collectionId == undefined){
|
if (collectionId == undefined || collectionId == '' || collectionId == null){
|
||||||
endpoint = '/items?';
|
endpoint = '/items?';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -649,7 +649,7 @@
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
this.isRepositoryLevel = (this.collectionId === undefined);
|
this.isRepositoryLevel = (this.collectionId == undefined || this.collectionId == '' || this.collectionId == null);
|
||||||
|
|
||||||
if (this.collectionId != undefined)
|
if (this.collectionId != undefined)
|
||||||
this.$eventBusSearch.setCollectionId(this.collectionId);
|
this.$eventBusSearch.setCollectionId(this.collectionId);
|
||||||
|
|
Loading…
Reference in New Issue