Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaxed error C.14 to allow before and after #583

Merged
merged 2 commits into from Mar 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions metadata/2.0/common/ets-md-common-bsxets.xml
Expand Up @@ -15,11 +15,11 @@ There is a general limitation in all assertions that polymorphism and containmen
Source: <a href="http://inspire.ec.europa.eu/id/ats/metadata/2.0/common" target="_blank">Common Requirements for ISO/TC 19139:2007 based INSPIRE metadata records</a><br/><br/>]]>
</description>
<reference>../../../inspire-md-bsxets.xq</reference>
<version>1.0.8</version>
<version>1.0.10</version>
<author>Consortium Bilbomatica, Guadaltel y Geograma</author>
<creationDate>2018-06-30T00:00:00Z</creationDate>
<lastEditor>Consortium Bilbomatica, Guadaltel y Geograma</lastEditor>
<lastUpdateDate>2020-05-29T11:30:00Z</lastUpdateDate>
<lastUpdateDate>2021-02-02T12:30:00Z</lastUpdateDate>
<tags>
<tag ref="EIDc6567beb-fc33-4f2e-865d-0c3ee5b3d1ae"/>
</tags>
Expand Down Expand Up @@ -571,11 +571,11 @@ let $messages :=
else if($timePeriod) then
if (not($beginPosition/@indeterminatePosition) and not(matches($beginPosition/text(), $regex))) then
local:addMessage('TR.wrongDateFormat', map { 'filename': local:filename($record), 'id': $rid })
else if ($beginPosition/@indeterminatePosition and not($beginPosition/@indeterminatePosition = 'unknown')) then
else if ($beginPosition/@indeterminatePosition and not($beginPosition/@indeterminatePosition = 'unknown' or $beginPosition/@indeterminatePosition = 'before' or $beginPosition/@indeterminatePosition = 'now' or $beginPosition/@indeterminatePosition = 'after')) then
local:addMessage('TR.wrongIndeterminatePosition', map { 'filename': local:filename($record), 'id': $rid })
else if (not($endPosition/@indeterminatePosition) and not(matches($endPosition/text(), $regex))) then
local:addMessage('TR.wrongDateFormat', map { 'filename': local:filename($record), 'id': $rid })
else if ($endPosition/@indeterminatePosition and not($endPosition/@indeterminatePosition = 'unknown' or $endPosition/@indeterminatePosition = 'now')) then
else if ($endPosition/@indeterminatePosition and not($endPosition/@indeterminatePosition = 'unknown' or $endPosition/@indeterminatePosition = 'now' or $endPosition/@indeterminatePosition = 'before' or $endPosition/@indeterminatePosition = 'after')) then
local:addMessage('TR.wrongIndeterminatePosition', map { 'filename': local:filename($record), 'id': $rid })
else ()
else
Expand Down