Skip to content

Instantly share code, notes, and snippets.

@alanorth
Created September 29, 2022 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanorth/331791ed5510a6ba1a1fad6efb50ff26 to your computer and use it in GitHub Desktop.
Save alanorth/331791ed5510a6ba1a1fad6efb50ff26 to your computer and use it in GitHub Desktop.
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.
*/
@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