mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
101127: Add VocabularyTreeview to BrowseByTaxonomyPage
This commit is contained in:
@@ -1 +1,5 @@
|
||||
<p>browse-by-taxonomy-page works!</p>
|
||||
<div class="container">
|
||||
<ds-vocabulary-treeview [vocabularyOptions]=vocabularyOptions
|
||||
[multiSelect]="true">
|
||||
</ds-vocabulary-treeview>
|
||||
</div>
|
||||
|
@@ -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({
|
||||
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
|
||||
*/
|
||||
export class BrowseByTaxonomyPageComponent {
|
||||
export class BrowseByTaxonomyPageComponent implements OnInit {
|
||||
|
||||
vocabularyOptions: VocabularyOptions;
|
||||
|
||||
ngOnInit() {
|
||||
this.vocabularyOptions = { name: 'srsc', closed: true };
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user