79768: Rename method

This commit is contained in:
Yura Bondarenko
2021-06-04 15:14:57 +02:00
parent 81b76dd327
commit 6a4e56322f

View File

@@ -329,7 +329,7 @@ export class MetadataService {
return [getBitstreamDownloadRoute(bitstreamRd.payload.page[0])];
} else {
// Otherwise check all bitstreams to see if one matches the format whitelist
return this.getBitstreamDownloadRoute(bitstreamRd);
return this.getFirstAllowedFormatBitstreamLink(bitstreamRd);
}
})
);
@@ -343,7 +343,7 @@ export class MetadataService {
}
}
private getBitstreamDownloadRoute(bitstreamRd: RemoteData<PaginatedList<Bitstream>>): Observable<string> {
private getFirstAllowedFormatBitstreamLink(bitstreamRd: RemoteData<PaginatedList<Bitstream>>): Observable<string> {
return observableOf(bitstreamRd.payload).pipe(
// Because there can be more than one page of bitstreams, this expand operator
// will retrieve them in turn due to the take(1) at the bottom, it will only