diff --git a/src/app/browse-by/abstract-browse-by-page.component.ts b/src/app/browse-by/abstract-browse-by-page.component.ts new file mode 100644 index 00000000000..aa6eaa5aa4c --- /dev/null +++ b/src/app/browse-by/abstract-browse-by-page.component.ts @@ -0,0 +1,21 @@ +import { Component, Input } from '@angular/core'; +import { BrowseByDataType } from './browse-by-switcher/browse-by-decorator'; + +@Component({ + selector: 'ds-abstract-browse-by-page', + template: '', +}) +export class AbstractBrowseByPageComponent { + + /** + * The {@link BrowseByDataType} of this Component + */ + @Input() browseByType: BrowseByDataType; + + /** + * Whether to show the browse by page as a standalone page or not + * This will have an effect on how the component is rendered for accessibility reasons + */ + @Input() showAsStandalonePage: boolean; + +} diff --git a/src/app/browse-by/browse-by-date-page/themed-browse-by-date-page.component.ts b/src/app/browse-by/browse-by-date-page/themed-browse-by-date-page.component.ts index 8eeae0c5de5..1cce25ed7f8 100644 --- a/src/app/browse-by/browse-by-date-page/themed-browse-by-date-page.component.ts +++ b/src/app/browse-by/browse-by-date-page/themed-browse-by-date-page.component.ts @@ -1,4 +1,4 @@ -import {Component} from '@angular/core'; +import { Component, Input } from '@angular/core'; import { ThemedComponent } from '../../shared/theme-support/themed.component'; import { BrowseByDatePageComponent } from './browse-by-date-page.component'; import {BrowseByDataType, rendersBrowseBy} from '../browse-by-switcher/browse-by-decorator'; @@ -15,6 +15,16 @@ import {BrowseByDataType, rendersBrowseBy} from '../browse-by-switcher/browse-by @rendersBrowseBy(BrowseByDataType.Date) export class ThemedBrowseByDatePageComponent extends ThemedComponent { + + @Input() browseByType: BrowseByDataType; + + @Input() showAsStandalonePage: boolean; + + inAndOutputNames: (keyof BrowseByDatePageComponent & keyof this)[] = [ + 'browseByType', + 'showAsStandalonePage', + ]; + protected getComponentName(): string { return 'BrowseByDatePageComponent'; } diff --git a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.html b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.html index bac74736cf0..e531128ffa3 100644 --- a/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.html +++ b/src/app/browse-by/browse-by-metadata-page/browse-by-metadata-page.component.html @@ -1,15 +1,21 @@ -
+