diff --git a/src/app/modules/library/account/elements/fee-item/fee-item.component.ts b/src/app/modules/library/account/elements/fee-item/fee-item.component.ts index 83542b33..5169a4a6 100644 --- a/src/app/modules/library/account/elements/fee-item/fee-item.component.ts +++ b/src/app/modules/library/account/elements/fee-item/fee-item.component.ts @@ -13,14 +13,19 @@ export class FeeItemComponent { book?: SCBook | SCPeriodical | SCArticle; + hasEdition = false; + @Input() set fee(fee: PAIAFee) { + this.hasEdition = !fee.edition?.includes('null'); this._fee = fee; - this.libraryAccountService - .getDocumentFromHDS(fee.edition as string) - .then(book => { - this.book = book; - }); + if (this.hasEdition) { + this.libraryAccountService + .getDocumentFromHDS(fee.edition as string) + .then(book => { + this.book = book; + }); + } } get fee() { diff --git a/src/app/modules/library/account/elements/fee-item/fee-item.html b/src/app/modules/library/account/elements/fee-item/fee-item.html index dbceecba..0010888f 100644 --- a/src/app/modules/library/account/elements/fee-item/fee-item.html +++ b/src/app/modules/library/account/elements/fee-item/fee-item.html @@ -1,13 +1,18 @@ -

- {{ 'library.account.pages.fines.labels.edition' | translate }}: - {{ book.name }} -

-

-

+ +

+ {{ 'library.account.pages.fines.labels.edition' | translate }}: + {{ book.name }} +

+

+

+

{{ 'library.account.pages.fines.labels' + '.' + property | translate }}: