diff --git a/src/app/+item-page/simple/item-types/project/project.component.html b/src/app/+item-page/simple/item-types/project/project.component.html index d1f8feeebc..08e386182b 100644 --- a/src/app/+item-page/simple/item-types/project/project.component.html +++ b/src/app/+item-page/simple/item-types/project/project.component.html @@ -10,10 +10,10 @@ [fields]="['project.identifier.status']" [label]="'project.page.status'"> - - + + diff --git a/src/app/+item-page/simple/item-types/project/project.component.ts b/src/app/+item-page/simple/item-types/project/project.component.ts index cf4ffd4be1..eafef36307 100644 --- a/src/app/+item-page/simple/item-types/project/project.component.ts +++ b/src/app/+item-page/simple/item-types/project/project.component.ts @@ -2,6 +2,7 @@ import { Component, Inject, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { ItemDataService } from '../../../../core/data/item-data.service'; import { Item } from '../../../../core/shared/item.model'; +import { MetadataRepresentation } from '../../../../core/shared/metadata-representation/metadata-representation.model'; import { ItemViewMode, rendersItemType } from '../../../../shared/items/item-type-decorator'; import { ITEM } from '../../../../shared/items/switcher/item-type-switcher.component'; import { isNotEmpty } from '../../../../shared/empty.util'; @@ -18,6 +19,11 @@ import { filterRelationsByTypeLabel, relationsToItems } from '../shared/item-rel * The component for displaying metadata and relations of an item of the type Project */ export class ProjectComponent extends ItemComponent implements OnInit { + /** + * The contributors related to this project + */ + contributors$: Observable; + /** * The people related to this project */ @@ -44,6 +50,8 @@ export class ProjectComponent extends ItemComponent implements OnInit { super.ngOnInit(); if (isNotEmpty(this.resolvedRelsAndTypes$)) { + this.contributors$ = this.buildRepresentations('OrgUnit', 'project.contributor.other', this.ids); + this.people$ = this.resolvedRelsAndTypes$.pipe( filterRelationsByTypeLabel('isPersonOfProject'), relationsToItems(this.item.id, this.ids)