From 757ad85dafa53032c6fc8d14dd3029db88827580 Mon Sep 17 00:00:00 2001 From: jawanbdarni Date: Sun, 1 Dec 2024 11:36:49 +0200 Subject: [PATCH] Revert "to revert" This reverts commit be3f14acfc487735687b86563162d052657ea036. --- .../requestForm/requestForm.component.html | 27 +++++++--- .../ILL/requestForm/requestForm.component.ts | 49 ++++++------------- 2 files changed, 35 insertions(+), 41 deletions(-) diff --git a/cloudapp/src/app/ILL/requestForm/requestForm.component.html b/cloudapp/src/app/ILL/requestForm/requestForm.component.html index 795aa51..2b9bf6c 100644 --- a/cloudapp/src/app/ILL/requestForm/requestForm.component.html +++ b/cloudapp/src/app/ILL/requestForm/requestForm.component.html @@ -33,12 +33,9 @@

{{mmsTitle}} ({{nacsisId}})

ILL.RequestForm.RequestType - - - {{requestType.viewValue | translate}} - - - + + + ILL.RequestForm.PayClass @@ -164,7 +161,19 @@

{{mmsTitle}} ({{nacsisId}})

formControlName="HMLNM{{element.index}}"> - + + + {{ 'ILL.RequestForm.AMLIDA' | translate }} + + + + + + {{'ILL.HoldingSearchResult.LOC' | translate}} @@ -248,7 +257,9 @@

{{mmsTitle}} ({{nacsisId}})

ILL.RequestForm.DateNeededBy - + diff --git a/cloudapp/src/app/ILL/requestForm/requestForm.component.ts b/cloudapp/src/app/ILL/requestForm/requestForm.component.ts index fd4cc7b..27275c0 100644 --- a/cloudapp/src/app/ILL/requestForm/requestForm.component.ts +++ b/cloudapp/src/app/ILL/requestForm/requestForm.component.ts @@ -391,43 +391,26 @@ export class RequestFormComponent implements OnInit, OnChanges { panelCloseStateRequestInformation() { this.panelStateRequestInformation = false; } + + showVolDetal(element, tag) { + let str = ""; let volumeArr = element.vol; - if (this.illService.isEmpty(volumeArr)) { - return ""; // Return an empty string if no volume data exists - } - - switch (tag) { - case 'VOL': - return volumeArr[0]?.VOL || ""; // Safely access VOL - case 'CLN': - return volumeArr[0]?.CLN || ""; // Safely access CLN - case 'RGTN': - return volumeArr[0]?.RGTN || ""; // Safely access RGTN - default: - return ""; // Default case + if (!this.illService.isEmpty(volumeArr)) { + switch (tag) { + case 'VOL': + str = volumeArr[0].VOL; + break; + case 'CLN': + str = volumeArr[0].CLN; + break; + case 'RGTN': + str = volumeArr[0].RGTN; + break; + } } + return str; } - - - // showVolDetal(element, tag) { - // let str = ""; - // let volumeArr = element.vol; - // if (!this.illService.isEmpty(volumeArr)) { - // switch (tag) { - // case 'VOL': - // str = volumeArr[0].VOL; - // break; - // case 'CLN': - // str = volumeArr[0].CLN; - // break; - // case 'RGTN': - // str = volumeArr[0].RGTN; - // break; - // } - // } - // return str; - // } order() { //check required fields