forked from hazza/dspace-angular
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { SearchResultListElementComponent } from '../search-result-list-element.component';
|
|
import { Collection } from '../../../../core/shared/collection.model';
|
|
import { CollectionSearchResult } from '../../../object-collection/shared/collection-search-result.model';
|
|
import { ViewMode } from '../../../../core/shared/view-mode.model';
|
|
import { listableObjectComponent } from '../../../object-collection/shared/listable-object/listable-object.decorator';
|
|
|
|
@Component({
|
|
selector: 'ds-collection-search-result-list-element',
|
|
styleUrls: ['../search-result-list-element.component.scss', 'collection-search-result-list-element.component.scss'],
|
|
templateUrl: 'collection-search-result-list-element.component.html'
|
|
})
|
|
/**
|
|
* Component representing a collection search result in list view
|
|
*/
|
|
@listableObjectComponent(CollectionSearchResult, ViewMode.ListElement)
|
|
export class CollectionSearchResultListElementComponent extends SearchResultListElementComponent<CollectionSearchResult, Collection> {
|
|
|
|
/**
|
|
* Display thumbnails if required by configuration
|
|
*/
|
|
showThumbnails: boolean;
|
|
|
|
ngOnInit(): void {
|
|
super.ngOnInit();
|
|
this.showThumbnails = this.appConfig.browseBy.showThumbnails;
|
|
}
|
|
|
|
}
|