Skip to content

Commit b43d19f

Browse files
[DSC-1482] Replaced method 'findAllByItemAndBundleName'
1 parent 19a26ec commit b43d19f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/app/item-page/full/field-components/file-section/full-file-section.component.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ export class FullFileSectionComponent extends FileSectionComponent implements On
6767

6868
initialize(): void {
6969
this.originals$ = this.paginationService.getCurrentPagination(this.originalOptions.id, this.originalOptions).pipe(
70-
switchMap((options: PaginationComponentOptions) => this.bitstreamDataService.findAllByItemAndBundleName(
71-
this.item,
70+
switchMap((options: PaginationComponentOptions) => this.bitstreamDataService.showableByItem(
71+
this.item.uuid,
7272
'ORIGINAL',
73+
[],
7374
{elementsPerPage: options.pageSize, currentPage: options.currentPage},
7475
true,
7576
true,
@@ -85,9 +86,10 @@ export class FullFileSectionComponent extends FileSectionComponent implements On
8586
);
8687

8788
this.licenses$ = this.paginationService.getCurrentPagination(this.licenseOptions.id, this.licenseOptions).pipe(
88-
switchMap((options: PaginationComponentOptions) => this.bitstreamDataService.findAllByItemAndBundleName(
89-
this.item,
89+
switchMap((options: PaginationComponentOptions) => this.bitstreamDataService.showableByItem(
90+
this.item.uuid,
9091
'LICENSE',
92+
[],
9193
{elementsPerPage: options.pageSize, currentPage: options.currentPage},
9294
true,
9395
true,

0 commit comments

Comments
 (0)