Skip to content

Commit

Permalink
SCHEMA - Free keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalLike committed Nov 15, 2024
1 parent e94df6a commit 17d8996
Showing 1 changed file with 13 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,56 +773,18 @@
</action>

<section name="freeTextKeywords">
<!-- Keywords senza thesauri (escluso opendata) -->
<field xpath="gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:keyword
[not(../gmd:thesaurusName) and not(./gco:CharacterString='open data')
and not(./gco:CharacterString='opendata')]"
name="keyword_libera"
del="."
if="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords/
gmd:keyword[not(../gmd:thesaurusName)])>1"
/>

<field xpath="gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:keyword
[not(../gmd:thesaurusName) and not(./gco:CharacterString='opendata')
and not(./gco:CharacterString='open data') and not(./gco:CharacterString='opendata')]"
name="keyword_libera"
del="../.."
if="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords/
gmd:keyword[not(boolean(../gmd:thesaurusName))])=1"
/>

<action type="add"
btnLabel="keyword_libera"
or="descriptiveKeywords"
in="gmd:MD_Metadata/gmd:identificationInfo/*"
if="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:keyword[not(../gmd:thesaurusName)])=0"
>
<template>
<snippet>
<gmd:descriptiveKeywords>
<gmd:MD_Keywords>
<gmd:keyword>
<gco:CharacterString></gco:CharacterString>
</gmd:keyword>
</gmd:MD_Keywords>
</gmd:descriptiveKeywords>
</snippet>
</template>
</action>
<!-- Keywords without thesaurus information of type theme -->
<field
xpath="/gmd:MD_Metadata/gmd:identificationInfo/srv:SV_ServiceIdentification/
gmd:descriptiveKeywords[not(gmd:MD_Keywords/gmd:thesaurusName)]"
or="descriptiveKeywords"
in="/gmd:MD_Metadata/gmd:identificationInfo/srv:SV_ServiceIdentification"/>

<action type="add" btnLabel="keyword_libera" or="keyword"
in="gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords[not(gmd:thesaurusName)]"
if="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:keyword[not(../gmd:thesaurusName)])>0"
>
<template>
<snippet>
<gmd:keyword>
<gco:CharacterString></gco:CharacterString>
</gmd:keyword>
</snippet>
</template>
</action>
<field
xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
gmd:descriptiveKeywords[not(gmd:MD_Keywords/gmd:thesaurusName)]"
or="descriptiveKeywords"
in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>
</section>

</section>
Expand Down Expand Up @@ -4715,6 +4677,8 @@
</section>
</tab>
<flatModeExceptions>
<for name="gmd:descriptiveKeywords"/>
<for name="gmd:keyword"/>
<for name="gmd:distributionFormat"/>
<for name="gmd:processor"/>
<for name="gmd:topicCategory"/>
Expand Down

0 comments on commit 17d8996

Please sign in to comment.