mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
80369: Add optional thumbnail followLink in SearchComponent
This commit is contained in:
@@ -130,8 +130,11 @@ export class SearchComponent implements OnInit {
|
|||||||
this.searchLink = this.getSearchLink();
|
this.searchLink = this.getSearchLink();
|
||||||
this.searchOptions$ = this.getSearchOptions();
|
this.searchOptions$ = this.getSearchOptions();
|
||||||
this.sub = this.searchOptions$.pipe(
|
this.sub = this.searchOptions$.pipe(
|
||||||
switchMap((options) => this.service.search(options).pipe(getFirstSucceededRemoteData(), startWith(undefined))))
|
switchMap((options) => this.service.search(
|
||||||
.subscribe((results) => {
|
options, undefined, true, true, followLink<Item>('thumbnail', { isOptional: true })
|
||||||
|
).pipe(getFirstSucceededRemoteData(), startWith(undefined))
|
||||||
|
)
|
||||||
|
).subscribe((results) => {
|
||||||
this.resultsRD$.next(results);
|
this.resultsRD$.next(results);
|
||||||
});
|
});
|
||||||
this.scopeListRD$ = this.searchConfigService.getCurrentScope('').pipe(
|
this.scopeListRD$ = this.searchConfigService.getCurrentScope('').pipe(
|
||||||
|
Reference in New Issue
Block a user