dag-hammarskjold-library / dlx-rest

UNDHL Files and Metadata Manager
1 stars 1 forks source link

Changes in Authorities validation #1510

Closed JoelleSciboz closed 2 months ago

JoelleSciboz commented 3 months ago

New field: 043 Updated field: 110 - valid values in $9 Updated field: 046 - required subfield, valid subfields, valid values - date.

See the details in the attached file.

auth_validation_changes_2024_08_08.txt

viola-v commented 2 months ago

Reopening because 043 was supposed to have "validSubfields": ["b", "c"], "defaultSubfields": ["b", "c"] But no default subfields appear, and there is no validation:

image

Same for 046, I don't see any of this implemented: "requiredSubfields": ["s"], "validSubfields": ["s","t"], "defaultSubfields": ["s"], "isDate": { "s": true, "t": true }, "validRegex": { "s": ["^\d{4}-?\d{2}-?\d{2}$"], "t": ["^\d{4}-?\d{2}-?\d{2}$"]

It looks like only the changes for 110 were made?

viola-v commented 2 months ago

Closing, works as intended!