Skip to content

Commit

Permalink
Modifications in the ETS to solve the issue #180
Browse files Browse the repository at this point in the history
The check for the text value of dateType element is removed. The assertion should only check that the codeListValue attribute is "publication".
  • Loading branch information
inakidiazdecerio committed Nov 20, 2018
1 parent ddaf434 commit 2603836
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 2603836

Please sign in to comment.