mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Merge branch 'w2p-101127_browse-by-controlled-vocabulary' into w2p-101127_browse-by-controlled-vocabulary-7.6.0-next
This commit is contained in:
@@ -47,6 +47,8 @@ describe('BrowseByTaxonomyPageComponent', () => {
|
|||||||
detail2 = new VocabularyEntryDetail();
|
detail2 = new VocabularyEntryDetail();
|
||||||
detail1.value = 'HUMANITIES and RELIGION';
|
detail1.value = 'HUMANITIES and RELIGION';
|
||||||
detail2.value = 'TECHNOLOGY';
|
detail2.value = 'TECHNOLOGY';
|
||||||
|
detail1.id = 'id-1';
|
||||||
|
detail2.id = 'id-2';
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should create', () => {
|
it('should create', () => {
|
||||||
|
@@ -98,7 +98,7 @@ export class BrowseByTaxonomyPageComponent implements OnInit, OnDestroy {
|
|||||||
* @param detail VocabularyEntryDetail to be removed
|
* @param detail VocabularyEntryDetail to be removed
|
||||||
*/
|
*/
|
||||||
onDeselect(detail: VocabularyEntryDetail): void {
|
onDeselect(detail: VocabularyEntryDetail): void {
|
||||||
this.selectedItems = this.selectedItems.filter((entry: VocabularyEntryDetail) => { return entry !== detail; });
|
this.selectedItems = this.selectedItems.filter((entry: VocabularyEntryDetail) => { return entry.id !== detail.id; });
|
||||||
this.filterValues = this.filterValues.filter((value: string) => { return value !== `${detail.value},equals`; });
|
this.filterValues = this.filterValues.filter((value: string) => { return value !== `${detail.value},equals`; });
|
||||||
this.updateQueryParams();
|
this.updateQueryParams();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user