diff --git a/src/app/item-page/full/full-item-page.component.html b/src/app/item-page/full/full-item-page.component.html index 1d831813956..c3d3aae4db3 100644 --- a/src/app/item-page/full/full-item-page.component.html +++ b/src/app/item-page/full/full-item-page.component.html @@ -2,7 +2,7 @@
- +
diff --git a/src/app/item-page/simple/item-page.component.html b/src/app/item-page/simple/item-page.component.html index cc9983bb354..98b26b85d6a 100644 --- a/src/app/item-page/simple/item-page.component.html +++ b/src/app/item-page/simple/item-page.component.html @@ -2,7 +2,7 @@
- + diff --git a/src/app/item-page/versions/item-versions.module.ts b/src/app/item-page/versions/item-versions.module.ts index 577844488d2..a80d25fc911 100644 --- a/src/app/item-page/versions/item-versions.module.ts +++ b/src/app/item-page/versions/item-versions.module.ts @@ -10,10 +10,12 @@ import { NgModule } from '@angular/core'; import { SharedModule } from '../../shared/shared.module'; import { ItemVersionsComponent } from './item-versions.component'; import { ItemVersionsNoticeComponent } from './notice/item-versions-notice.component'; +import { ThemedItemVersionsNoticeComponent } from './notice/themed-item-versions-notice.component'; const DECLARATIONS = [ ItemVersionsComponent, ItemVersionsNoticeComponent, + ThemedItemVersionsNoticeComponent, ]; @NgModule({ diff --git a/src/app/item-page/versions/notice/themed-item-versions-notice.component.ts b/src/app/item-page/versions/notice/themed-item-versions-notice.component.ts new file mode 100644 index 00000000000..0c60a13bfc8 --- /dev/null +++ b/src/app/item-page/versions/notice/themed-item-versions-notice.component.ts @@ -0,0 +1,30 @@ +import { Component, Input } from '@angular/core'; +import { Item } from '../../../core/shared/item.model'; +import { ThemedComponent } from '../../../shared/theme-support/themed.component'; +import { ItemVersionsNoticeComponent } from './item-versions-notice.component'; + +/** + * Themed wrapper for {@link ItemVersionsNoticeComponent} + */ +@Component({ + selector: 'ds-themed-item-versions-notice', + styleUrls: [], + templateUrl: '../../../shared/theme-support/themed.component.html', +}) +export class ThemedItemVersionsNoticeComponent extends ThemedComponent { + + @Input() item: Item; + + protected getComponentName(): string { + return 'ItemVersionsNoticeComponent'; + } + + protected importThemedComponent(themeName: string): Promise { + return import(`../../../../themes/${themeName}/app/item-page/versions/notice/item-versions-notice.component`); + } + + protected importUnthemedComponent(): Promise { + return import('./item-versions-notice.component'); + } + +} diff --git a/src/themes/custom/app/item-page/versions/notice/item-versions-notice.component.html b/src/themes/custom/app/item-page/versions/notice/item-versions-notice.component.html new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/themes/custom/app/item-page/versions/notice/item-versions-notice.component.ts b/src/themes/custom/app/item-page/versions/notice/item-versions-notice.component.ts new file mode 100644 index 00000000000..1dec4858c72 --- /dev/null +++ b/src/themes/custom/app/item-page/versions/notice/item-versions-notice.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; +import { ItemVersionsNoticeComponent as BaseComponent } from '../../../../../../app/item-page/versions/notice/item-versions-notice.component'; + +@Component({ + selector: 'ds-item-versions-notice', + // templateUrl: './item-versions-notice.component.html', + templateUrl: '../../../../../../app/item-page/versions/notice/item-versions-notice.component.html', +}) +export class ItemVersionsNoticeComponent extends BaseComponent { +} diff --git a/src/themes/custom/lazy-theme.module.ts b/src/themes/custom/lazy-theme.module.ts index edb3f5478c9..4cb3f1a7858 100644 --- a/src/themes/custom/lazy-theme.module.ts +++ b/src/themes/custom/lazy-theme.module.ts @@ -156,6 +156,7 @@ import { ItemStatusComponent } from './app/item-page/edit-item-page/item-status/ import { EditBitstreamPageComponent } from './app/bitstream-page/edit-bitstream-page/edit-bitstream-page.component'; import { FormModule } from '../../app/shared/form/form.module'; import { RequestCopyModule } from 'src/app/request-copy/request-copy.module'; +import { ItemVersionsNoticeComponent } from './app/item-page/versions/notice/item-versions-notice.component'; const DECLARATIONS = [ FileSectionComponent, @@ -239,6 +240,7 @@ const DECLARATIONS = [ SubmissionSectionUploadFileComponent, ItemStatusComponent, EditBitstreamPageComponent, + ItemVersionsNoticeComponent, ]; @NgModule({