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 { import {
JournalIssueComponent JournalIssueComponent
} from './app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component'; } 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'; import { UntypedItemComponent } from './app/item-page/simple/item-types/untyped-item/untyped-item.component';
export const ENTRY_COMPONENTS = [ export const ENTRY_COMPONENTS = [
JournalComponent,
JournalIssueComponent, JournalIssueComponent,
JournalVolumeComponent, JournalVolumeComponent,
PublicationComponent, 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 { ResourcePoliciesModule } from '../../app/shared/resource-policies/resource-policies.module';
import { ComcolModule } from '../../app/shared/comcol/comcol.module'; import { ComcolModule } from '../../app/shared/comcol/comcol.module';
import { FeedbackComponent } from './app/info/feedback/feedback.component'; import { FeedbackComponent } from './app/info/feedback/feedback.component';
import { JournalComponent } from './app/entity-groups/journal-entities/item-pages/journal/journal.component';
import { import {
JournalIssueComponent JournalIssueComponent
} from './app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component'; } from './app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component';
import { import {
JournalVolumeComponent JournalVolumeComponent
} from './app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component'; } from './app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component';
import { ItemSharedModule } from '../../app/item-page/item-shared.module';
const DECLARATIONS = [ const DECLARATIONS = [
FileSectionComponent, FileSectionComponent,
@@ -145,6 +147,7 @@ const DECLARATIONS = [
HeaderNavbarWrapperComponent, HeaderNavbarWrapperComponent,
BreadcrumbsComponent, BreadcrumbsComponent,
FeedbackComponent, FeedbackComponent,
JournalComponent,
JournalIssueComponent, JournalIssueComponent,
JournalVolumeComponent, JournalVolumeComponent,
]; ];
@@ -196,7 +199,8 @@ const DECLARATIONS = [
SearchModule, SearchModule,
FormsModule, FormsModule,
ResourcePoliciesModule, ResourcePoliciesModule,
ComcolModule ComcolModule,
ItemSharedModule,
], ],
declarations: DECLARATIONS declarations: DECLARATIONS
}) })