mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
64387: Small refactoring change
This commit is contained in:
@@ -139,8 +139,7 @@ export class ItemDataService extends DataService<Item> {
|
|||||||
* @param searchOptions The search options to use
|
* @param searchOptions The search options to use
|
||||||
*/
|
*/
|
||||||
public getBitstreams(itemId: string, searchOptions?: PaginatedSearchOptions): Observable<RemoteData<PaginatedList<Bitstream>>> {
|
public getBitstreams(itemId: string, searchOptions?: PaginatedSearchOptions): Observable<RemoteData<PaginatedList<Bitstream>>> {
|
||||||
const hrefObs = this.getItemWithdrawEndpoint(itemId).pipe(
|
const hrefObs = this.getBitstreamsEndpoint(itemId).pipe(
|
||||||
map((href) => `${href}/bitstreams`),
|
|
||||||
map((href) => searchOptions ? searchOptions.toRestUrl(href) : href)
|
map((href) => searchOptions ? searchOptions.toRestUrl(href) : href)
|
||||||
);
|
);
|
||||||
hrefObs.pipe(
|
hrefObs.pipe(
|
||||||
|
Reference in New Issue
Block a user