temp fix of the identifier cardinality as in the v2 data we do not have the datacite prefix at the rules therefore the identifier element appears more than one times in the metadata record.

This commit is contained in:
pispis 2024-05-14 15:48:24 +03:00
parent 459c45853f
commit e08f336a76
1 changed files with 2 additions and 2 deletions

View File

@ -162,14 +162,14 @@ public final class FAIR_Data_GuidelinesProfile extends AbstractOpenAireProfile {
// globally unique identifier
private static final ElementSpec F1_01D_SPEC = Builders.
forMandatoryElement("identifier", ONE).
forMandatoryElement("identifier", ONE_TO_N).
// withMandatoryAttribute("identifierType", new PIDCheckValuePredicate()).
withMandatoryAttribute("identifierType", PERSISTENT_IDENTIFIER_TYPES).
build();
// persistent identifier
private static final ElementSpec F1_02D_SPEC = Builders.
forMandatoryElement("identifier", ONE).
forMandatoryElement("identifier", ONE_TO_N).
withMandatoryAttribute("identifierType", IDENTIFIER_TYPES).
build();