Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Infrastructure
iso19139.MERIDIAN
Commits
24d186ec
Commit
24d186ec
authored
Sep 27, 2019
by
Kim Mortimer
Browse files
Add maintenance date and more MI_Acq info
parent
67d3a196
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/plugin/iso19139.MERIDIAN/index-fields/index.xsl
View file @
24d186ec
...
@@ -554,7 +554,11 @@
...
@@ -554,7 +554,11 @@
</useLimitation>
</useLimitation>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each
select=
"gmd:resourceMaintenance/gmd:MD_MaintenanceInformation[gmd:dateOfNextUpdate/*/text() != '']"
>
<dateOfNextUpdate>
<xsl:value-of
select=
"string(gmd:dateOfNextUpdate[1]/gco:Date|gmd:dateOfNextUpdate[1]/gco:DateTime)"
/>
</dateOfNextUpdate>
</xsl:for-each>
<xsl:for-each
select=
"gmd:supplementalInformation/gco:CharacterString"
>
<xsl:for-each
select=
"gmd:supplementalInformation/gco:CharacterString"
>
<supplementalInformation>
<supplementalInformation>
<xsl:value-of
select=
"."
/>
<xsl:value-of
select=
"."
/>
...
@@ -742,9 +746,9 @@
...
@@ -742,9 +746,9 @@
</xsl:choose>-->
</xsl:choose>-->
<xsl:text>
] }
</xsl:text>
<xsl:text>
] }
</xsl:text>
</geojson>
</geojson>
<!-- how to determine the average location of a poylgon? -->
<!-- how to determine the average location of a poylgon? -->
<location>
<location>
</location>
</location>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each
select=
".//gmd:EX_BoundingPolygon/gmd:polygon/gml:Point"
>
<xsl:for-each
select=
".//gmd:EX_BoundingPolygon/gmd:polygon/gml:Point"
>
...
@@ -757,7 +761,7 @@
...
@@ -757,7 +761,7 @@
<xsl:value-of select="concat('[', ./gml:pos, ']')"/>-->
<xsl:value-of select="concat('[', ./gml:pos, ']')"/>-->
<xsl:text>
}
</xsl:text>
<xsl:text>
}
</xsl:text>
</geojson>
</geojson>
<location><xsl:value-of
select=
"concat(
<location><xsl:value-of
select=
"concat(
number(substring-before(./gml:pos,' ')),
number(substring-before(./gml:pos,' ')),
',',
',',
number(substring-before(./gml:pos,' ')))"
/></location>
number(substring-before(./gml:pos,' ')))"
/></location>
...
@@ -954,60 +958,38 @@
...
@@ -954,60 +958,38 @@
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each
select=
"gmi:acquisitionInformation/*"
>
<xsl:for-each
select=
"gmi:acquisitionInformation/*"
>
<xsl:for-each
select=
".//gmi:MI_Operation"
>
<xsl:for-each
select=
".//gmi:MI_Operation"
>
<operationDetails>
{
<operationStatus><xsl:value-of
select=
"./gmi:status/gmd:MD_ProgressCode[text()]"
/></operationStatus>
"status":"
<xsl:value-of
select=
"./gmi:status/gmd:MD_ProgressCode[text()]"
/>
",
<operationIdentifier><xsl:value-of
select=
"./gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/></operationIdentifier>
"identifier":"
<xsl:value-of
select=
"./gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/>
",
<operationTitle><xsl:value-of
select=
"./gmi:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"
/></operationTitle>
"citation":{"title":"
<xsl:value-of
select=
"./gmi:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"
/>
",
"dates":{
<xsl:for-each
select=
"./gmi:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:date/*/text() != '' and
<xsl:for-each
select=
"./gmi:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:date/*/text() != '' and
matches(gmd:date/*/text(), '[0-9]{4}.*')]"
>
matches(gmd:date/*/text(), '[0-9]{4}.*')]"
>
<operationDateType><xsl:value-of
select=
"gmd:dateType[1]/gmd:CI_DateTypeCode[text()]"
/></operationDateType>
["dateType":"
<xsl:value-of
select=
"gmd:dateType[1]/gmd:CI_DateTypeCode[text()]"
/>
",
<operationDate><xsl:value-of
select=
"string(gmd:date[1]/gco:Date|gmd:date[1]/gco:DateTime)"
/></operationDate>
"date":"
<xsl:value-of
select=
"string(gmd:date[1]/gco:Date|gmd:date[1]/gco:DateTime)"
/>
",]
</xsl:for-each>
</xsl:for-each>
},
<xsl:apply-templates
mode=
"index-contact"
select=
"gmi:citation/gmd:CI_Citation/gmd:citedResponsibleParty"
>
"respParties": [
<xsl:with-param
name=
"fieldSuffix"
select=
"'operationParty'"
/>
<xsl:for-each
select=
"./gmi:citation/gmd:CI_Citation/gmd:citedResponsibleParty"
>
</xsl:apply-templates>
<xsl:if
test=
"./gmd:CI_ResponsibleParty/gmd:individualName"
>
"person":"
<xsl:value-of
select=
"./gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString"
/>
",
</xsl:if>
<xsl:if
test=
"./gmd:CI_ResponsibleParty/gmd:organisationName"
>
"organisation":"
<xsl:value-of
select=
"./gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"
/>
",
</xsl:if>
<xsl:if
test=
"./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress"
>
"email":"
<xsl:value-of
select=
"./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress[1]/gco:CharacterString"
/>
",
</xsl:if>
"role":"
<xsl:value-of
select=
"./gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[text()]"
/>
"
</xsl:for-each>
],
},
<xsl:for-each
select=
"./*[name() != 'gmi:platform' and name() != 'gmi:status' and name() != 'gmi:identifier' and name() != 'gmi:citation']"
>
"
<xsl:value-of
select=
"name()"
/>
":"
<xsl:value-of
select=
"."
/>
",
</xsl:for-each>
}
</operationDetails>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each
select=
".//gmi:MI_Platform"
>
<xsl:for-each
select=
".//gmi:MI_Platform"
>
<platformDetails>
{
<platformIdentifier><xsl:value-of
select=
"./gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/></platformIdentifier>
"identifier":"
<xsl:value-of
select=
"./gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/>
",
<platformDescription><xsl:value-of
select=
"./gmi:description/gco:CharacterString"
/></platformDescription>
"description":"
<xsl:value-of
select=
"./gmi:description/gco:CharacterString"
/>
",
<xsl:apply-templates
mode=
"index-contact"
select=
"gmi:sponsor"
>
<xsl:for-each
select=
"./*[name() != 'gmi:instrument' and name() != 'gmi:identifier' and name() != 'gmi:description']"
>
<xsl:with-param
name=
"fieldSuffix"
select=
"'platformParty'"
/>
"
<xsl:value-of
select=
"name()"
/>
":"
<xsl:value-of
select=
"."
/>
",
</xsl:apply-templates>
</xsl:for-each>
}
</platformDetails>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each
select=
".//gmi:MI_Instrument|.//MER:MI_Instrument"
>
<xsl:for-each
select=
".//gmi:MI_Instrument|.//MER:MI_Instrument"
>
<instrumentDetails>
{
<instrumentIdentifier><xsl:value-of
select=
"./gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/></instrumentIdentifier>
"identifier":"
<xsl:value-of
select=
"./gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/>
",
<instrumentType><xsl:value-of
select=
"./gmi:type/gco:CharacterString"
/></instrumentType>
"type":"
<xsl:value-of
select=
"./gmi:type/gco:CharacterString"
/>
",
<xsl:for-each
select=
"./MER:history/MER:MI_InstrumentationEventList/MER:instrumentationEvent"
>
<xsl:for-each
select=
"./*[name() != 'gmi:type' and name() != 'gmi:identifier']"
>
<instrumentEventType><xsl:value-of
select=
"../../../gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/>
|
<xsl:value-of
select=
"./MER:MI_InstrumentEvent/MER:type/MER:MI_EventTypeCode"
/></instrumentEventType>
"
<xsl:value-of
select=
"name()"
/>
":"
<xsl:value-of
select=
"."
/>
",
<instrumentEventDesc><xsl:value-of
select=
"../../../gmi:identifier/gmd:MD_Identifier/gmd:code/gco:CharacterString"
/>
|
<xsl:value-of
select=
"./MER:MI_InstrumentEvent/MER:description/gco:CharacterString"
/></instrumentEventDesc>
</xsl:for-each>
</xsl:for-each>
}
</instrumentDetails>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<!-- Service/dataset relation. Create document for the association.
<!-- Service/dataset relation. Create document for the association.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment