Skip to content

Instantly share code, notes, and snippets.

Created September 29, 2022 09:42
What would you like to do?
Trying to set the defaultImage in a custom theme in DSpace 7.4-SNAPSHOT
import { Component } from '@angular/core';
import { ThumbnailComponent as BaseComponent } from '../../../../app/thumbnail/thumbnail.component';
* This component renders a given Bitstream as a thumbnail.
* One input parameter of type Bitstream is expected.
* If no Bitstream is provided, an HTML placeholder will be rendered instead.
selector: 'ds-thumbnail',
styleUrls: ['../../../../app/thumbnail/thumbnail.component.scss'],
templateUrl: '../../../../app/thumbnail/thumbnail.component.html',
export class ThumbnailComponent extends BaseComponent {
* The default image, used if the thumbnail isn't set or can't be downloaded.
* If defaultImage is null, a HTML placeholder is used instead.
defaultImage = 'blah.svg';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment