101127: Add VocabularyTreeview to BrowseByTaxonomyPage

This commit is contained in:
Nona Luypaert
2023-04-26 10:12:28 +02:00
parent 99dd9d2de9
commit 6e7a8a992c
2 changed files with 13 additions and 3 deletions

View File

@@ -1 +1,5 @@
<p>browse-by-taxonomy-page works!</p> <div class="container">
<ds-vocabulary-treeview [vocabularyOptions]=vocabularyOptions
[multiSelect]="true">
</ds-vocabulary-treeview>
</div>

View File

@@ -1,4 +1,5 @@
import { Component } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { VocabularyOptions } from '../../core/submission/vocabularies/models/vocabulary-options.model';
@Component({ @Component({
selector: 'ds-browse-by-taxonomy-page', selector: 'ds-browse-by-taxonomy-page',
@@ -8,6 +9,11 @@ import { Component } from '@angular/core';
/** /**
* Component for browsing items by metadata in a hierarchical controlled vocabulary * Component for browsing items by metadata in a hierarchical controlled vocabulary
*/ */
export class BrowseByTaxonomyPageComponent { export class BrowseByTaxonomyPageComponent implements OnInit {
vocabularyOptions: VocabularyOptions;
ngOnInit() {
this.vocabularyOptions = { name: 'srsc', closed: true };
}
} }