Skip to content

Commit

Permalink
Bug #12139: persistent identifier authority is either 5 or 9 digits l…
Browse files Browse the repository at this point in the history
…ong (#1619)
  • Loading branch information
ebernard authored Jan 18, 2024
1 parent db5471f commit 5169517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class ManagementContractCreateComponent implements OnInit, OnDestroy {
persistentIdentifierPolicyType: [null, Validators.required],
persistentIdentifierUnit: [false],
persistentIdentifierObject: [false],
persistentIdentifierAuthority: ['', [Validators.required, Validators.pattern('^[0-9]{5,9}$')]],
persistentIdentifierAuthority: ['', [Validators.required, Validators.pattern('^([0-9]{5}|[0-9]{9})$')]],
persistentIdentifierUsages: this.formBuilder.array([this.createUsageFormGroup()]),
}),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class ManagementContractIdentificationTabComponent implements OnChanges {
private buildPolicyGroup(policy: PersistentIdentifierPolicy): FormGroup {
return this.formBuilder.group({
policyTypeOption: [policy.persistentIdentifierPolicyType],
authority: [policy.persistentIdentifierAuthority, [Validators.required, Validators.pattern('^[0-9]{5,9}$')]],
authority: [policy.persistentIdentifierAuthority, [Validators.required, Validators.pattern('^([0-9]{5}|[0-9]{9})$')]],
shouldConcernArchiveUnits: [policy.persistentIdentifierUnit],
shouldConcernObjects: [Boolean(policy.persistentIdentifierUsages.length)],
objectUsagePolicies: this.formBuilder.array(
Expand Down

0 comments on commit 5169517

Please sign in to comment.