fixed bug in the Access Rights rule -> changed to correct atttribute name "rightsURI".
This commit is contained in:
parent
9835d92247
commit
a545e34f04
|
@ -220,7 +220,7 @@ public final class LiteratureGuidelinesV4Profile extends AbstractOpenAireProfile
|
||||||
//TODO: Implement proper applicability rule
|
//TODO: Implement proper applicability rule
|
||||||
//LEONIDAS: The withMandatoryAttribute fails whe another date element eg. for Publication Date exists
|
//LEONIDAS: The withMandatoryAttribute fails whe another date element eg. for Publication Date exists
|
||||||
private static final ElementSpec EMBARGO_PERIOD_DATE_SPEC = Builders.
|
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).
|
withMandatoryAttribute("dateType", EMBARGO_DATE_TYPES).
|
||||||
allowedValues(new RegexValuePredicate(COMPILED_YYYY_MM_DD_RANGE_REGEX).or(new RegexValuePredicate(COMPILED_YEAR_YYYY_REG_EX))).
|
allowedValues(new RegexValuePredicate(COMPILED_YYYY_MM_DD_RANGE_REGEX).or(new RegexValuePredicate(COMPILED_YEAR_YYYY_REG_EX))).
|
||||||
build();
|
build();
|
||||||
|
|
Loading…
Reference in New Issue