Skip to content

Commit 7f7af91

Browse files
steph-ieffamalisaismailati
authored andcommitted
[CST-7675] added default file thumbnail
1 parent 2869c17 commit 7f7af91

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)