Skip to content

Commit

Permalink
Item view box already show more than 20 files info
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Feb 26, 2024
1 parent 9fff0b7 commit 84281d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
<img [ngClass]="{'clarin-license-icon-mr':licenseLabelIcons.value.length > 1}" [src]="secureImageData(icon)" alt="" width="16px">
</div>
</div>

</div>
</div>
</div>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { LicenseType } from '../../item-page/clarin-license-info/clarin-license-
import { ListableObject } from '../object-collection/shared/listable-object.model';
import { ItemSearchResult } from '../object-collection/shared/item-search-result.model';
import { getItemPageRoute } from '../../item-page/item-page-routing-paths';
import { HttpClient } from '@angular/common/http';
import { FindListOptions } from '../../core/data/find-list-options.model';

/**
* Show item on the Home/Search page in the customized box with Item's information.
Expand Down Expand Up @@ -136,7 +136,12 @@ export class ClarinItemBoxViewComponent implements OnInit {
if (isNull(this.item)) {
return;
}
this.bundleService.findByItemAndName(this.item, 'ORIGINAL', true, true, followLink('bitstreams'))
const configAllElements: FindListOptions = Object.assign(new FindListOptions(), {
elementsPerPage: 9999
});

this.bundleService.findByItemAndName(this.item, 'ORIGINAL', true, true,
followLink('bitstreams', { findListOptions: configAllElements }))
.pipe(getFirstSucceededRemoteDataPayload())
.subscribe((bundle: Bundle) => {
bundle.bitstreams
Expand Down

0 comments on commit 84281d0

Please sign in to comment.