Use DSONameService to display DSpaceObjects names

This commit is contained in:
Alexandre Vryghem
2023-02-26 17:10:25 +01:00
parent ca864379c8
commit 2513f91a1a
160 changed files with 608 additions and 288 deletions

View File

@@ -14,6 +14,7 @@ import { FindListOptions } from '../../core/data/find-list-options.model';
import { ProcessBulkDeleteService } from './process-bulk-delete.service';
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
import { hasValue } from '../../shared/empty.util';
import { DSONameService } from '../../core/breadcrumbs/dso-name.service';
@Component({
selector: 'ds-process-overview',
@@ -59,6 +60,7 @@ export class ProcessOverviewComponent implements OnInit, OnDestroy {
protected ePersonService: EPersonDataService,
protected modalService: NgbModal,
public processBulkDeleteService: ProcessBulkDeleteService,
protected dsoNameService: DSONameService,
) {
}
@@ -83,7 +85,7 @@ export class ProcessOverviewComponent implements OnInit, OnDestroy {
getEpersonName(id: string): Observable<string> {
return this.ePersonService.findById(id).pipe(
getFirstSucceededRemoteDataPayload(),
map((eperson: EPerson) => eperson.name)
map((eperson: EPerson) => this.dsoNameService.getName(eperson)),
);
}