Skip to content

Commit 4fcb332

Browse files
committed
[UXP-34] use showableByItem to retrieve bitstream directly
1 parent 255bcb9 commit 4fcb332

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/shared/carousel/carousel.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ export class CarouselComponent implements OnInit {
213213
findAllBitstreamImages(items: ItemSearchResult[]): Observable<Map<string, string>> {
214214
return from(items).pipe(
215215
map((itemSR) => itemSR.indexableObject),
216-
mergeMap((item) => this.bitstreamDataService.findAllByItemAndBundleName(
217-
item, this.bundle, {}, true, true, followLink('format'),
216+
mergeMap((item) => this.bitstreamDataService.showableByItem(
217+
item.uuid, this.bundle, [], {}, true, true, followLink('format'),
218218
).pipe(
219219
getFirstCompletedRemoteData(),
220220
switchMap((rd: RemoteData<PaginatedList<Bitstream>>) => rd.hasSucceeded ? rd.payload.page : []),
@@ -258,7 +258,7 @@ export class CarouselComponent implements OnInit {
258258
pagination: pagination,
259259
sort: new SortOptions(this.carouselOptions.sortField, this.carouselOptions.sortDirection),
260260
dsoTypes: [DSpaceObjectType.ITEM],
261-
forcedEmbeddedKeys: ['bundles']
261+
projection: 'preventMetadataSecurity'
262262
});
263263
return this.searchManager.search(paginatedSearchOptions).pipe(
264264
getFirstCompletedRemoteData(),

0 commit comments

Comments
 (0)