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'}