Created BrowseByPageComponent that uses the new refactored BrowseBySwitcherComponent extending AbstractComponentLoaderComponent

- Added the context to the rendersBrowseBy decorator
- Created AbstractBrowseByTypeComponent that is extended by all the browse type sections
This commit is contained in:
Alexandre Vryghem
2023-12-11 01:56:25 +01:00
parent 14d42b0d93
commit a83d69ee0e
25 changed files with 271 additions and 118 deletions

View File

@@ -5,6 +5,7 @@ import { HIERARCHICAL_BROWSE_DEFINITION } from './hierarchical-browse-definition
import { HALLink } from './hal-link.model';
import { ResourceType } from './resource-type';
import { BrowseDefinition } from './browse-definition.model';
import { BrowseByDataType } from '../../browse-by/browse-by-switcher/browse-by-decorator';
/**
* BrowseDefinition model for browses of type 'hierarchicalBrowse'
@@ -39,7 +40,7 @@ export class HierarchicalBrowseDefinition extends BrowseDefinition {
vocabulary: HALLink;
};
getRenderType(): string {
return 'hierarchy';
getRenderType(): BrowseByDataType {
return BrowseByDataType.Hierarchy;
}
}