mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[CST-5677] Spelling error fixed
This commit is contained in:
@@ -28,6 +28,6 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<div class="row justify-content-center" *ngIf="!allBundlesLoaded">
|
<div class="row justify-content-center" *ngIf="!allBundlesLoaded">
|
||||||
<button type="button" class="btn btn-link" (click)="onBunbleLoad()">{{ 'collection.edit.item.authorizations.load-bundle-button' | translate }}</button>
|
<button type="button" class="btn btn-link" (click)="onBundleLoad()">{{ 'collection.edit.item.authorizations.load-bundle-button' | translate }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -63,13 +63,13 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
|
|||||||
* The size of the bundles to be loaded on demand
|
* The size of the bundles to be loaded on demand
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
bunblesPerPage = 6;
|
bundlesPerPage = 6;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of current page
|
* The number of current page
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
bunblesPageSize = 1;
|
bundlesPageSize = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The flag to show or not the 'Load more' button
|
* The flag to show or not the 'Load more' button
|
||||||
@@ -149,7 +149,7 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
|
|||||||
getFirstSucceededRemoteDataWithNotEmptyPayload(),
|
getFirstSucceededRemoteDataWithNotEmptyPayload(),
|
||||||
map((item: Item) => this.linkService.resolveLink(
|
map((item: Item) => this.linkService.resolveLink(
|
||||||
item,
|
item,
|
||||||
followLink('bundles', {findListOptions: {currentPage : page, elementsPerPage: this.bunblesPerPage}}, followLink('bitstreams'))
|
followLink('bundles', {findListOptions: {currentPage : page, elementsPerPage: this.bundlesPerPage}}, followLink('bitstreams'))
|
||||||
))
|
))
|
||||||
) as Observable<Item>;
|
) as Observable<Item>;
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
|
|||||||
take(1),
|
take(1),
|
||||||
map((list: PaginatedList<Bundle>) => list.page)
|
map((list: PaginatedList<Bundle>) => list.page)
|
||||||
).subscribe((bundles: Bundle[]) => {
|
).subscribe((bundles: Bundle[]) => {
|
||||||
if (isEqual(bundles.length,0) || bundles.length < this.bunblesPerPage) {
|
if (isEqual(bundles.length,0) || bundles.length < this.bundlesPerPage) {
|
||||||
this.allBundlesLoaded = true;
|
this.allBundlesLoaded = true;
|
||||||
}
|
}
|
||||||
if (isEqual(page, 1)) {
|
if (isEqual(page, 1)) {
|
||||||
@@ -226,9 +226,9 @@ export class ItemAuthorizationsComponent implements OnInit, OnDestroy {
|
|||||||
/**
|
/**
|
||||||
* Loads as much bundles as initial value of bundleSize to be displayed
|
* Loads as much bundles as initial value of bundleSize to be displayed
|
||||||
*/
|
*/
|
||||||
onBunbleLoad(){
|
onBundleLoad(){
|
||||||
this.bunblesPageSize ++;
|
this.bundlesPageSize ++;
|
||||||
this.getBundlesPerItem(this.bunblesPageSize);
|
this.getBundlesPerItem(this.bundlesPageSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user