Skip to content

Commit

Permalink
EEA / Editor / Statistical data / Add action when missing unit of mea…
Browse files Browse the repository at this point in the history
…sure or ref period.
  • Loading branch information
fxprunayre committed Oct 1, 2024
1 parent b6d6d7d commit 3afedac
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 3 deletions.
97 changes: 94 additions & 3 deletions schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,7 @@
<gmd:MD_Identifier>
<gmd:code>
<gmx:Anchor xmlns:gmx="http://www.isotc211.org/2005/gmx"
xlink:href="http://localhost:8080/geonetwork/srv/eng/thesaurus.download?ref=local.temporal.temporal-update">geonetwork.thesaurus.local.temporal.temporal-update</gmx:Anchor>
xlink:href="https://sdi.eea.europa.eu/catalogue/srv/eng/thesaurus.download?ref=local.temporal.temporal-update">geonetwork.thesaurus.local.temporal.temporal-update</gmx:Anchor>
</gmd:code>
</gmd:MD_Identifier>
</gmd:identifier>
Expand All @@ -1667,6 +1667,52 @@
<section name="eea-statistical-data-details"
displayIfRecord="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords[*/gmd:thesaurusName/*/gmd:title/*/text() = 'EEA categories' and */gmd:keyword/gco:CharacterString/text() = 'statistical data']) = 1">
<field xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords[contains(*/gmd:thesaurusName/*/gmd:title/*/text(), 'Unit of measure')]"/>
<action type="add"
btnLabel="eea-add-unit-of-measure"
if="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords[contains(*/gmd:thesaurusName/*/gmd:title/*/text(), 'Unit of measure')]) = 0"
or="descriptiveKeywords"
in="/gmd:MD_Metadata/gmd:identificationInfo/*">
<template>
<snippet>
<gmd:descriptiveKeywords>
<gmd:MD_Keywords>
<gmd:keyword gco:nilReason="missing">
<gco:CharacterString/>
</gmd:keyword>
<gmd:type>
<gmd:MD_KeywordTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode"
codeListValue="theme"/>
</gmd:type>
<gmd:thesaurusName>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>Unit of measure</gco:CharacterString>
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:DateTime>2024-01-30T23:00:00+0100</gco:DateTime>
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"
codeListValue="publication"/>
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
<gmd:identifier>
<gmd:MD_Identifier>
<gmd:code>
<gmx:Anchor xlink:href="https://sdi.eea.europa.eu/catalogue/srv/api/registries/vocabularies/external.theme.ESTAT_UNIT_24.0">geonetwork.thesaurus.external.theme.ESTAT_UNIT_24.0</gmx:Anchor>
</gmd:code>
</gmd:MD_Identifier>
</gmd:identifier>
</gmd:CI_Citation>
</gmd:thesaurusName>
</gmd:MD_Keywords>
</gmd:descriptiveKeywords>
</snippet>
</template>
</action>

<field xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords[*/gmd:thesaurusName/*/gmd:title/*/text() ='Available breakdowns']"/>
<action type="add"
Expand Down Expand Up @@ -1704,7 +1750,7 @@
<gmd:identifier>
<gmd:MD_Identifier>
<gmd:code>
<gmx:Anchor xlink:href="http://localhost:8080/geonetwork/srv/api/registries/vocabularies/local.theme.eea-available-breakdowns">geonetwork.thesaurus.local.theme.eea-available-breakdowns</gmx:Anchor>
<gmx:Anchor xlink:href="https://sdi.eea.europa.eu/catalogue/srv/api/registries/vocabularies/local.theme.eea-available-breakdowns">geonetwork.thesaurus.local.theme.eea-available-breakdowns</gmx:Anchor>
</gmd:code>
</gmd:MD_Identifier>
</gmd:identifier>
Expand All @@ -1718,7 +1764,52 @@


<field xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords[contains(*/gmd:thesaurusName/*/gmd:title/*/text(), 'Reference period')]"/>

<action type="add"
btnLabel="eea-add-reference-period"
if="count(gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords[contains(*/gmd:thesaurusName/*/gmd:title/*/text(), 'Reference period')]) = 0"
or="descriptiveKeywords"
in="/gmd:MD_Metadata/gmd:identificationInfo/*">
<template>
<snippet>
<gmd:descriptiveKeywords>
<gmd:MD_Keywords>
<gmd:keyword>
<gco:CharacterString></gco:CharacterString>
</gmd:keyword>
<gmd:type>
<gmd:MD_KeywordTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_KeywordTypeCode"
codeListValue="theme"/>
</gmd:type>
<gmd:thesaurusName>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>Reference period</gco:CharacterString>
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:Date>2024-03-11</gco:Date>
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_DateTypeCode"
codeListValue="publication"/>
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
<gmd:identifier>
<gmd:MD_Identifier>
<gmd:code>
<gmx:Anchor xlink:href="https://sdi.eea.europa.eu/catalogue/srv/api/registries/vocabularies/local.theme.eea-stat-reference-period">geonetwork.thesaurus.local.theme.eea-stat-reference-period</gmx:Anchor>
</gmd:code>
</gmd:MD_Identifier>
</gmd:identifier>
</gmd:CI_Citation>
</gmd:thesaurusName>
</gmd:MD_Keywords>
</gmd:descriptiveKeywords>
</snippet>
</template>
</action>


<field name="Frequency of dissemination - Grade"
Expand Down
2 changes: 2 additions & 0 deletions schemas/iso19139/src/main/plugin/iso19139/loc/eng/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@
</eea-temporal-help>

<eea-add-temporal-resolution>Add temporal resolution</eea-add-temporal-resolution>
<eea-add-unit-of-measure>Add unit of measure</eea-add-unit-of-measure>
<eea-add-available-breakdowns>Add available breakdowns</eea-add-available-breakdowns>
<eea-add-reference-period>Add reference period</eea-add-reference-period>

<eea-maintenance-help>
<div class="row">
Expand Down

0 comments on commit 3afedac

Please sign in to comment.