89721: Themed JournalComponent

This commit is contained in:
Alexandre Vryghem
2022-05-30 10:12:04 +02:00
parent 2264067240
commit bca332a23a
5 changed files with 30 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
import { Component } from '@angular/core';
import { ViewMode } from '../../../../../../../app/core/shared/view-mode.model';
import {
listableObjectComponent
} from '../../../../../../../app/shared/object-collection/shared/listable-object/listable-object.decorator';
import {
JournalComponent as BaseComponent
} from '../../../../../../../app/entity-groups/journal-entities/item-pages/journal/journal.component';
import { Context } from '../../../../../../../app/core/shared/context.model';
@listableObjectComponent('Journal', ViewMode.StandalonePage, Context.Any, 'custom')
@Component({
selector: 'ds-journal',
// styleUrls: ['./journal.component.scss'],
styleUrls: ['../../../../../../../app/entity-groups/journal-entities/item-pages/journal/journal.component.scss'],
// templateUrl: './journal.component.html',
templateUrl: '../../../../../../../app/entity-groups/journal-entities/item-pages/journal/journal.component.html',
})
/**
* The component for displaying metadata and relations of an item of the type Journal
*/
export class JournalComponent extends BaseComponent {
}

View File

@@ -1,3 +1,4 @@
import { JournalComponent } from './app/entity-groups/journal-entities/item-pages/journal/journal.component';
import {
JournalIssueComponent
} from './app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component';
@@ -8,6 +9,7 @@ import { PublicationComponent } from './app/item-page/simple/item-types/publicat
import { UntypedItemComponent } from './app/item-page/simple/item-types/untyped-item/untyped-item.component';
export const ENTRY_COMPONENTS = [
JournalComponent,
JournalIssueComponent,
JournalVolumeComponent,
PublicationComponent,

View File

@@ -95,12 +95,14 @@ import { SearchModule } from '../../app/shared/search/search.module';
import { ResourcePoliciesModule } from '../../app/shared/resource-policies/resource-policies.module';
import { ComcolModule } from '../../app/shared/comcol/comcol.module';
import { FeedbackComponent } from './app/info/feedback/feedback.component';
import { JournalComponent } from './app/entity-groups/journal-entities/item-pages/journal/journal.component';
import {
JournalIssueComponent
} from './app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component';
import {
JournalVolumeComponent
} from './app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component';
import { ItemSharedModule } from '../../app/item-page/item-shared.module';
const DECLARATIONS = [
FileSectionComponent,
@@ -145,6 +147,7 @@ const DECLARATIONS = [
HeaderNavbarWrapperComponent,
BreadcrumbsComponent,
FeedbackComponent,
JournalComponent,
JournalIssueComponent,
JournalVolumeComponent,
];
@@ -196,7 +199,8 @@ const DECLARATIONS = [
SearchModule,
FormsModule,
ResourcePoliciesModule,
ComcolModule
ComcolModule,
ItemSharedModule,
],
declarations: DECLARATIONS
})