fixed bug in the Access Rights rule -> changed to correct atttribute name "rightsURI".

This commit is contained in:
pispis 2023-10-19 16:27:27 +03:00
parent 9835d92247
commit a545e34f04
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public final class LiteratureGuidelinesV4Profile extends AbstractOpenAireProfile
//TODO: Implement proper applicability rule
//LEONIDAS: The withMandatoryAttribute fails whe another date element eg. for Publication Date exists
private static final ElementSpec EMBARGO_PERIOD_DATE_SPEC = Builders.
forMandatoryIfApplicableElement("datacite:date", ONE_TO_N, applicabilityRuleForEmbargoPeriodDate()).
forMandatoryIfApplicableElement("datacite:date", TWO, applicabilityRuleForEmbargoPeriodDate()).
withMandatoryAttribute("dateType", EMBARGO_DATE_TYPES).
allowedValues(new RegexValuePredicate(COMPILED_YYYY_MM_DD_RANGE_REGEX).or(new RegexValuePredicate(COMPILED_YEAR_YYYY_REG_EX))).
build();