Skip to content

Commit

Permalink
MIR-1231 Expect dates in ISO8601 to be in ISO8601 basic format. Allow…
Browse files Browse the repository at this point in the history
… to depict intervalls in that format too. No timezones are supported.
  • Loading branch information
Possommi committed Nov 8, 2023
1 parent 4058662 commit cde28f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2295,7 +2295,7 @@
<xed:validate xpath="//mods:url|//mods:abstract/@xlink:href" matches="(ftp|http|https)://[\w\d.]+\S*" i18n="mir.validation.url" display="global" />
<xed:validate xpath="//mods:*[@encoding='w3cdtf'][not(ancestor::mods:recordInfo)]|//mods:mods/mods:accessCondition[@type='embargo']" matches="\d{4}(\-\d{2}(\-\d{2})?)?" type="datetime" format="yyyy;yyyy-MM;yyyy-MM-dd" i18n="mir.validation.date"
display="global" />
<xed:validate xpath="//mods:*[@encoding='iso8601']" matches="\d{4}(\-\d{2}(\-\d{2})?)?(\/\d{4}(\-\d{2}(\-\d{2})?)?)?" display="global" i18n="mir.validation.date.iso8601"/>
<xed:validate xpath="//mods:*[@encoding='iso8601']" matches="\d{4}(\d{2}(\d{2})?)(T\d{2}\d{2}\d{2})?(\/\d{4}(\d{2}(\d{2})?)(T\d{2}\d{2}\d{2})?)?" display="global" i18n="mir.validation.date.iso8601"/>
<xed:validate xpath="//mods:part/@order" type="integer" display="global" i18n="mir.validation.order" />
</xed:template>

Expand Down

0 comments on commit cde28f1

Please sign in to comment.