Skip to content

Commit

Permalink
Merge pull request #716 from inspire-eu-validation/issue-688
Browse files Browse the repository at this point in the history
C.18 otherConstraints Anchor condition updated
  • Loading branch information
jenriquesoriano authored Mar 16, 2022
2 parents 137dcff + af2b5c2 commit 077c576
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions metadata/2.0/common/ets-md-common-bsxets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -886,8 +886,12 @@ let $messages :=

let $validAnchorText :=
for $oc in $x/gmd:otherConstraints/gmx:Anchor
where (not(string-length($oc) = 0))
return $oc
return if (not(string-length($oc) = 0)) then
$oc
else if(string-length($oc) = 0 and count($validAnchor)=1) then
$oc
else()


return
if(count($validAccessConstraints) = 1 and (count($validAnchor) = 1 and (not(count($validCharacterString) = 0)))) then $x
Expand Down Expand Up @@ -944,7 +948,7 @@ let $messages :=
if(count($invalidURI) != 0) then
local:addMessage('TR.invalidHttpsUri', map { 'filename': local:filename($record), 'id': $rid, 'type': 'ConditionsApplyingToAccessAndUse' })
else if(count($md_legalConstraints_Conditions) = 0 and count($conditionsConstraint) > 0 and count($validAccessCodelist) = 0 and count($validUseConstraintsCodelist) = 0) then
local:addMessage('TR.noValidOtherRestrictionsCodelistValue', map { 'filename': local:filename($record), 'id': $rid, 'invalidElement': string($conditionsConstraint[1]/*/gmd:MD_RestrictionCode/@codeListValue) })
local:addMessage('TR.noValidOtherRestrictionsCodelistValue', map { 'filename': local:filename($record), 'id': $rid, 'invalidElement': string($conditionsConstraint[1]/*/gmd:MD_RestrictionCode/@codeListValue) })
else if(count($md_legalConstraints_Conditions) = 0) then
local:addMessage('TR.noResourceConditions', map { 'filename': local:filename($record), 'id': $rid })
else if (count($md_legalConstraints_Conditions) != 1) then
Expand Down

0 comments on commit 077c576

Please sign in to comment.