Skip to content

Commit

Permalink
Merge pull request #191 from inspire-eu-validation/issue-180
Browse files Browse the repository at this point in the history
Modifications in the ETS to solve the issue #180
  • Loading branch information
inakidiazdecerio authored Nov 26, 2018
2 parents ddaf434 + 2603836 commit 76cbdf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata/iso/ets-md-iso-bsxets.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ let $messages :=
(for $record in $recordsToInspect
let $rid := $record/gmd:fileIdentifier/*/text()
let $relevantDescriptiveKeywordsBlocks := $record/gmd:identificationInfo[1]/*/gmd:descriptiveKeywords/*[gmd:thesaurusName/*/gmd:title/*/text() = $THEMES_TITLE]
let $hasExpectedDate := boolean($relevantDescriptiveKeywordsBlocks/gmd:thesaurusName/*/gmd:date/*[gmd:date/*/text() = '2008-06-01' and gmd:dateType/*/@codeListValue = 'publication' and gmd:dateType/*/text() = 'publication'])
let $hasExpectedDate := boolean($relevantDescriptiveKeywordsBlocks/gmd:thesaurusName/*/gmd:date/*[gmd:date/*/text() = '2008-06-01' and gmd:dateType/*/@codeListValue = 'publication'])
return
if ($relevantDescriptiveKeywordsBlocks[not(some $keyword in ./gmd:keyword/*/text() satisfies $keyword = $codes) ]) then
local:addMessage('TR.noKeywordFromINSPIREThemes', map { 'filename': local:filename($record), 'id': $rid, 'url': $inspireThemesCodeListURL, 'keywords': fn:string-join($relevantDescriptiveKeywordsBlocks/gmd:keyword/*/text(),'; ') })
Expand Down

0 comments on commit 76cbdf7

Please sign in to comment.