mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
committed by
Rainer Killinger
parent
f60a228392
commit
cbb949e397
@@ -13,15 +13,20 @@ export class FeeItemComponent {
|
|||||||
|
|
||||||
book?: SCBook | SCPeriodical | SCArticle;
|
book?: SCBook | SCPeriodical | SCArticle;
|
||||||
|
|
||||||
|
hasEdition = false;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
set fee(fee: PAIAFee) {
|
set fee(fee: PAIAFee) {
|
||||||
|
this.hasEdition = !fee.edition?.includes('null');
|
||||||
this._fee = fee;
|
this._fee = fee;
|
||||||
|
if (this.hasEdition) {
|
||||||
this.libraryAccountService
|
this.libraryAccountService
|
||||||
.getDocumentFromHDS(fee.edition as string)
|
.getDocumentFromHDS(fee.edition as string)
|
||||||
.then(book => {
|
.then(book => {
|
||||||
this.book = book;
|
this.book = book;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get fee() {
|
get fee() {
|
||||||
return this._fee;
|
return this._fee;
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
<ion-item>
|
<ion-item>
|
||||||
<ion-label class="ion-text-wrap">
|
<ion-label class="ion-text-wrap">
|
||||||
|
<ng-container *ngIf="hasEdition">
|
||||||
<h2 *ngIf="book; else loading" class="name">
|
<h2 *ngIf="book; else loading" class="name">
|
||||||
{{ 'library.account.pages.fines.labels.edition' | translate }}:
|
{{ 'library.account.pages.fines.labels.edition' | translate }}:
|
||||||
{{ book.name }}
|
{{ book.name }}
|
||||||
</h2>
|
</h2>
|
||||||
<ng-template #loading
|
<ng-template #loading
|
||||||
><h2>
|
><h2>
|
||||||
<ion-skeleton-text animated style="width: 80%"></ion-skeleton-text></h2
|
<ion-skeleton-text
|
||||||
|
animated
|
||||||
|
style="width: 80%"
|
||||||
|
></ion-skeleton-text></h2
|
||||||
></ng-template>
|
></ng-template>
|
||||||
|
</ng-container>
|
||||||
<ng-container *ngFor="let property of propertiesToShow">
|
<ng-container *ngFor="let property of propertiesToShow">
|
||||||
<p *ngIf="fee[property]">
|
<p *ngIf="fee[property]">
|
||||||
{{ 'library.account.pages.fines.labels' + '.' + property | translate }}:
|
{{ 'library.account.pages.fines.labels' + '.' + property | translate }}:
|
||||||
|
|||||||
Reference in New Issue
Block a user