|
|
|
@ -160,7 +160,7 @@ export class OaipmhAnalysisComponent implements OnInit {
|
|
|
|
|
this.warningsModalOpen = true;
|
|
|
|
|
this.warningsModal.cancelButton = false;
|
|
|
|
|
this.warningsModal.okButton = false;
|
|
|
|
|
this.warningsModal.alertTitle = rule.rule_name;
|
|
|
|
|
this.warningsModal.alertTitle = rule.ruleName;
|
|
|
|
|
this.warningsModal.open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -168,7 +168,7 @@ export class OaipmhAnalysisComponent implements OnInit {
|
|
|
|
|
this.errorsModalOpen = true;
|
|
|
|
|
this.errorsModal.cancelButton = false;
|
|
|
|
|
this.errorsModal.okButton = false;
|
|
|
|
|
this.errorsModal.alertTitle = rule.rule_name;
|
|
|
|
|
this.errorsModal.alertTitle = rule.ruleName;
|
|
|
|
|
this.errorsModal.open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -176,7 +176,7 @@ export class OaipmhAnalysisComponent implements OnInit {
|
|
|
|
|
this.warnings = [];
|
|
|
|
|
this.openWarningsModal(rule);
|
|
|
|
|
this.warningsModalOpen = true;
|
|
|
|
|
this.subscriptions.push(this.validator.getWarnings(this.jobId, rule.rule_name).subscribe(
|
|
|
|
|
this.subscriptions.push(this.validator.getWarnings(this.jobId, rule.ruleName).subscribe(
|
|
|
|
|
result => {
|
|
|
|
|
this.warnings = result;
|
|
|
|
|
console.log(result);
|
|
|
|
@ -192,7 +192,7 @@ export class OaipmhAnalysisComponent implements OnInit {
|
|
|
|
|
this.errorsModalOpen = true;
|
|
|
|
|
|
|
|
|
|
if(rule.has_errors) {
|
|
|
|
|
this.subscriptions.push(this.validator.getErrors(this.jobId, rule.rule_name).subscribe(
|
|
|
|
|
this.subscriptions.push(this.validator.getErrors(this.jobId, rule.ruleName).subscribe(
|
|
|
|
|
result => {
|
|
|
|
|
this.errors = result;
|
|
|
|
|
console.log(result);
|
|
|
|
|