From 32cbf775f995a15e2b6978716f7e2fe0046f89f0 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 23 Dec 2022 10:19:20 +0200 Subject: [PATCH] [Validator]: XmlValidationResponse.ts: Added field "fairRules: RuleInfo[];" | single-record-validator.component.ts: In options updated label for Data to "Data Archive Guidelines V2 Profile & FAIR Data Guidelines Profile" | single-record-validator.component.html: Updated results view to be closer to the mocks & added fair score & separated results of fair and other guidelines. --- .../pages/entities/XmlValidationResponse.ts | 1 + .../single-record-validator.component.html | 88 +++++++++++-------- .../single-record-validator.component.ts | 2 +- 3 files changed, 53 insertions(+), 38 deletions(-) diff --git a/src/app/pages/entities/XmlValidationResponse.ts b/src/app/pages/entities/XmlValidationResponse.ts index 99027b8..4cec6c6 100644 --- a/src/app/pages/entities/XmlValidationResponse.ts +++ b/src/app/pages/entities/XmlValidationResponse.ts @@ -4,4 +4,5 @@ export class XmlValidationResponse { validationScore: string; fairScore: string; rules: RuleInfo[]; + fairRules: RuleInfo[]; } diff --git a/src/app/pages/single-record-validator/single-record-validator.component.html b/src/app/pages/single-record-validator/single-record-validator.component.html index 97214a2..5c7b7ea 100644 --- a/src/app/pages/single-record-validator/single-record-validator.component.html +++ b/src/app/pages/single-record-validator/single-record-validator.component.html @@ -1,3 +1,37 @@ + + + + + + + + + + + + + + + + +
Rule NameScoreStatus
+
{{ruleResult.name ? ruleResult.name : '-'}}
+
{{ruleResult.description}}
+
{{(ruleResult.score != undefined && ruleResult.score != null) ? ruleResult.score : '-'}} + - + +
{{ruleResult.status}}
+ +
warnings
+
errors
+
error
+
+
+
+
+
@@ -49,16 +83,16 @@ - - + + - - + +
Validation ScoreFair ScoreValidation ScoreFair Score Guidelines Actions
{{result.validationScore ? result.validationScore : '-'}}{{result.fairScore ? result.fairScore : '-'}}{{result.validationScore ? result.validationScore : '-'}}{{result.fairScore ? result.fairScore : '-'}} {{currentGuideline?.label}} @@ -73,38 +107,18 @@ @@ -114,7 +128,7 @@
{{message}}
- Errors + Errors
{{message}}
Internal error: {{currentRule.internalError}}
diff --git a/src/app/pages/single-record-validator/single-record-validator.component.ts b/src/app/pages/single-record-validator/single-record-validator.component.ts index 33235b1..652e9b7 100644 --- a/src/app/pages/single-record-validator/single-record-validator.component.ts +++ b/src/app/pages/single-record-validator/single-record-validator.component.ts @@ -12,7 +12,7 @@ import {XmlValidationResponse} from "../entities/XmlValidationResponse"; }) export class SingleRecordValidatorComponent implements OnInit { public options: Option[] = [ - {label: 'Data Archive Guidelines V2 Profile', value: 'dataArchiveGuidelinesV2Profile'}, + {label: 'Data Archive Guidelines V2 Profile & FAIR Data Guidelines Profile', value: 'dataArchiveGuidelinesV2Profile'}, {label: 'Literature Guidelines V3 Profile', value: 'literatureGuidelinesV3Profile'}, {label: 'Literature Guidelines V4 Profile', value: 'literatureGuidelinesV4Profile'}, {label: 'FAIR Data Guidelines Profile', value: 'fairDataGuidelinesProfile'}