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..461800c0b85 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 */