Skip to content

Commit 9dc5994

Browse files
alisaismailatisteph-ieffam
authored andcommitted
Merged in DSC-1446 (pull request DSpace#1226)
[DSC-1446] Set default logo as file instead of person Approved-by: Stefano Maffei
2 parents 6ddbf8d + 7f7af91 commit 9dc5994

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/app/cris-layout/cris-layout-matrix/cris-layout-box-container/boxes/metadata/rendering-types/thumbnail/thumbnail.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,13 @@ export class ThumbnailComponent extends BitstreamRenderingModelComponent impleme
9696
*/
9797
setDefaultImage(): void {
9898
const eType = this.item.firstMetadataValue('dspace.entity.type');
99-
this.default = 'assets/images/person-placeholder.svg';
99+
this.default = 'assets/images/file-placeholder.svg';
100100
if (hasValue(eType) && eType.toUpperCase() === 'PROJECT') {
101101
this.default = 'assets/images/project-placeholder.svg';
102102
} else if (hasValue(eType) && eType.toUpperCase() === 'ORGUNIT') {
103103
this.default = 'assets/images/orgunit-placeholder.svg';
104+
} else if (hasValue(eType) && eType.toUpperCase() === 'PERSON') {
105+
this.default = 'assets/images/person-placeholder.svg';
104106
}
105107
}
106108
}
Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)