diff --git a/apps/datahub/src/app/app.module.ts b/apps/datahub/src/app/app.module.ts index 37e7513ca..03555b347 100644 --- a/apps/datahub/src/app/app.module.ts +++ b/apps/datahub/src/app/app.module.ts @@ -13,6 +13,7 @@ import { FeatureRecordModule, GN_UI_VERSION, WEB_COMPONENT_EMBEDDER_URL, + RecordMetaComponent, } from '@geonetwork-ui/feature/record' import { DefaultRouterModule, @@ -188,6 +189,7 @@ export const metaReducers: MetaReducer[] = !environment.production ? [] : [] CarouselComponent, BlockListComponent, PreviousNextButtonsComponent, + RecordMetaComponent, LetDirective, // FIXME: these imports are required by non-standalone components and should be removed once all components have been made standalone NgIconsModule.withIcons({ diff --git a/libs/feature/record/src/index.ts b/libs/feature/record/src/index.ts index 5cd2bfe85..7c4802157 100644 --- a/libs/feature/record/src/index.ts +++ b/libs/feature/record/src/index.ts @@ -7,3 +7,4 @@ export * from './lib/data-view-share/data-view-share.component' export * from './lib/data-view-web-component/data-view-web-component.component' export * from './lib/external-viewer-button/external-viewer-button.component' export * from './lib/map-view/map-view.component' +export * from './lib/record-meta/record-meta.component' diff --git a/libs/feature/record/src/lib/feature-record.module.ts b/libs/feature/record/src/lib/feature-record.module.ts index 48451c7dc..6821157a6 100644 --- a/libs/feature/record/src/lib/feature-record.module.ts +++ b/libs/feature/record/src/lib/feature-record.module.ts @@ -43,7 +43,6 @@ import { RecordMetaComponent } from './record-meta/record-meta.component' DataViewPermalinkComponent, DataViewWebComponentComponent, DataViewShareComponent, - RecordMetaComponent, ], imports: [ CommonModule, @@ -82,7 +81,6 @@ import { RecordMetaComponent } from './record-meta/record-meta.component' DataViewWebComponentComponent, DataViewShareComponent, ExternalViewerButtonComponent, - RecordMetaComponent, ], }) export class FeatureRecordModule {} diff --git a/libs/feature/record/src/lib/record-meta/record-meta.component.ts b/libs/feature/record/src/lib/record-meta/record-meta.component.ts index eb4ac7048..d26bf23c5 100644 --- a/libs/feature/record/src/lib/record-meta/record-meta.component.ts +++ b/libs/feature/record/src/lib/record-meta/record-meta.component.ts @@ -1,5 +1,4 @@ import { - AfterViewInit, ChangeDetectionStrategy, Component, Input, @@ -7,15 +6,13 @@ import { OnDestroy, } from '@angular/core' import { Meta } from '@angular/platform-browser' -import { - DatasetRecord, - ServiceRecord, -} from '@geonetwork-ui/common/domain/model/record' +import { DatasetRecord } from '@geonetwork-ui/common/domain/model/record' @Component({ selector: 'gn-ui-record-meta', - template: '<>', + template: '', changeDetection: ChangeDetectionStrategy.OnPush, + standalone: true, }) export class RecordMetaComponent implements OnDestroy, OnChanges { @Input() metadata: DatasetRecord