Trying to set the defaultImage in a custom theme in DSpace 7.4-SNAPSHOT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
*/ | |
@Component({ | |
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