Skip to content

Commit 8bf7e4f

Browse files
Added ItemListPreviewComponent template to custom theme
1 parent 5d12327 commit 8bf7e4f

5 files changed

Lines changed: 19 additions & 0 deletions

File tree

src/app/my-dspace-page/my-dspace-search.module.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ const DECLARATIONS = [
6262
ResearchEntitiesModule.withEntryComponents(),
6363
JournalEntitiesModule.withEntryComponents(),
6464
],
65+
exports: [
66+
...DECLARATIONS,
67+
],
6568
declarations: [
6669
...DECLARATIONS,
6770
]

src/themes/custom/app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component.html

Whitespace-only changes.

src/themes/custom/app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component.scss

Whitespace-only changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Component } from '@angular/core';
2+
import { fadeInOut } from '../../../../../../../app/shared/animations/fade';
3+
import { ItemListPreviewComponent as BaseComponent } from '../../../../../../../app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component';
4+
5+
@Component({
6+
selector: 'ds-item-list-preview',
7+
// styleUrls: ['./item-list-preview.component.scss'],
8+
styleUrls: ['../../../../../../../app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component.scss'],
9+
// templateUrl: './item-list-preview.component.html',
10+
templateUrl: '../../../../../../../app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component.html',
11+
animations: [fadeInOut],
12+
})
13+
export class ItemListPreviewComponent extends BaseComponent {
14+
}

src/themes/custom/lazy-theme.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ import { EditBitstreamPageComponent } from './app/bitstream-page/edit-bitstream-
157157
import { FormModule } from '../../app/shared/form/form.module';
158158
import { RequestCopyModule } from 'src/app/request-copy/request-copy.module';
159159
import { SearchComponent } from './app/shared/search/search.component';
160+
import { ItemListPreviewComponent } from './app/shared/object-list/my-dspace-result-list-element/item-list-preview/item-list-preview.component';
160161

161162
const DECLARATIONS = [
162163
FileSectionComponent,
@@ -241,6 +242,7 @@ const DECLARATIONS = [
241242
ItemStatusComponent,
242243
EditBitstreamPageComponent,
243244
SearchComponent,
245+
ItemListPreviewComponent,
244246
];
245247

246248
@NgModule({

0 commit comments

Comments
 (0)