From bfdfbd95811b5d20927615e8d5a1576c6972fba2 Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Thu, 22 Aug 2024 18:42:13 +0200 Subject: [PATCH] 117391: Made it possible to pass the context to the MetadataRepresentationListComponent --- .../metadata-representation-list.component.html | 3 ++- .../metadata-representation-list.component.ts | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.html b/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.html index d1281f450a3..b96d8d0cb49 100644 --- a/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.html +++ b/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.html @@ -2,7 +2,8 @@ + [mdRepresentation]="rep" + [context]="context">
diff --git a/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts b/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts index 620c63ed621..9bcef1a8172 100644 --- a/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts +++ b/src/app/item-page/simple/metadata-representation-list/metadata-representation-list.component.ts @@ -17,6 +17,7 @@ import { MetadatumRepresentation } from '../../../core/shared/metadata-represent import { ItemMetadataRepresentation } from '../../../core/shared/metadata-representation/item/item-metadata-representation.model'; import { followLink } from '../../../shared/utils/follow-link-config.model'; import { AbstractIncrementalListComponent } from '../abstract-incremental-list/abstract-incremental-list.component'; +import { Context } from '../../../core/shared/context.model'; @Component({ selector: 'ds-metadata-representation-list', @@ -29,6 +30,12 @@ import { AbstractIncrementalListComponent } from '../abstract-incremental-list/a * It expects a label to put on top of the list */ export class MetadataRepresentationListComponent extends AbstractIncrementalListComponent> { + + /** + * The context this component is used in + */ + @Input() context: Context; + /** * The parent of the list of related items to display */