-
3. Define the number of record to validate
-
-
-
-
+
3. Define the number of records to validate
+
+
+
+
-
-
-
+
+
+
+
+
{{recordsNum}}
= 20 ? 'uk-disabled uk-text-muted' : ''" (click)="updateRecordsNum(true)">
+ [ngClass]="recordsNum >= 100 ? 'uk-disabled uk-text-muted' : ''" (click)="updateRecordsNum(true)">
diff --git a/src/app/pages/oaipmh-validator/validation-settings/oaipmh-validator.component.ts b/src/app/pages/oaipmh-validator/validation-settings/oaipmh-validator.component.ts
index dc6494c..071e531 100644
--- a/src/app/pages/oaipmh-validator/validation-settings/oaipmh-validator.component.ts
+++ b/src/app/pages/oaipmh-validator/validation-settings/oaipmh-validator.component.ts
@@ -25,6 +25,7 @@ export class OaipmhValidatorComponent implements OnInit {
{label: 'OpenAIRE Guidelines for Literature Repositories Profile v4 & OpenAIRE FAIR Guidelines for Literature Profile', value: 'OpenAIRE Guidelines for Literature Repositories Profile v4'},
{label: 'OpenAIRE FAIR Guidelines for Data Repositories Profile', value: 'OpenAIRE FAIR Guidelines for Data Repositories Profile'}
];
+ @ViewChild('customRecordsNum') customRecordsNum;
public form: UntypedFormGroup;
public sets: Option[] = [{label: 'All sets', value: 'all'}];
public recordsNum: number = 10;
@@ -44,7 +45,7 @@ export class OaipmhValidatorComponent implements OnInit {
this.form = this.fb.group({
url: this.fb.control("", [Validators.required, StringUtils.urlValidator()]),//[Validators.required/*, Validators.email*/]),
guidelines: this.fb.control("", Validators.required),
- recordsNum: this.fb.control(null, Validators.required),
+ recordsNum: this.fb.control(this.recordsNum, Validators.required),
set: this.fb.control('all', Validators.required)
});
}
@@ -84,6 +85,9 @@ export class OaipmhValidatorComponent implements OnInit {
updateRecordsNum(increase: boolean = true) {
this.recordsNum = this.recordsNum + (increase ? 10 : -10);
this.form.get('recordsNum').setValue(this.recordsNum);
+ if(this.customRecordsNum) {
+ this.customRecordsNum.nativeElement.checked = true;
+ }
}
getSets() {
diff --git a/src/assets/common-assets b/src/assets/common-assets
index 9e58421..6bb1e61 160000
--- a/src/assets/common-assets
+++ b/src/assets/common-assets
@@ -1 +1 @@
-Subproject commit 9e58421a1adf3fbeb361e21616feaea8c7f867af
+Subproject commit 6bb1e61b059bef1bff3bfb0611b0df46f7840426
diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme
index 3a4aa92..5e8c1ad 160000
--- a/src/assets/openaire-theme
+++ b/src/assets/openaire-theme
@@ -1 +1 @@
-Subproject commit 3a4aa92c441467994a45a2c6a4f0c21202945404
+Subproject commit 5e8c1addb1ebfa508aac8cb9540a755940c95b79