-
Notifications
You must be signed in to change notification settings - Fork 149
/
Document for Adding Brief and Summary Responses to ESRI Geoportal Server’s ISO19115-2 Profile
124 lines (109 loc) · 5.22 KB
/
Document for Adding Brief and Summary Responses to ESRI Geoportal Server’s ISO19115-2 Profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Modify the codes:
The files control geoportal’s CSW responses are located under this folder ../webapps/geoportal/WEB-INF/classes/gpt/metadata/iso
1. Download the two xsl files provided here : apiso-2-brief.xslt and apiso-2-summary.xslt
2. Navigate to the location ../webapps/geoportal/WEB-INF/classes/gpt/metadata/iso; then paste the two files under “iso” folder
3. Open the iso-19115-2-definition.xml
4. Add the following content in the end of the section <schema..> , so it looks like this after the modification <schema key="iso-19115-2" templateFile="gpt/metadata/iso/iso-19115-2-template.xml" cswOutputSchema="http://www.isotc211.org/2005/gmd" cswBriefXslt="gpt/metadata/iso/apiso-2-brief.xslt" cswSummaryXslt="gpt/metadata/iso/apiso-2-summary.xslt">
5. Save the modification and close iso-19115-2-definition.xml
6. Restart the server
7. Any ISO 19115-2 metadata published after the modification can be retrieved through CSW in brief or summary contents
Appendix 1 – ISO 19115-2 brief content
<?xml version="1.0" encoding="UTF-8"?>
<!--
See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
Esri Inc. licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gmi="http://www.isotc211.org/2005/gmi"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:srv="http://www.isotc211.org/2005/srv">
<xsl:output indent="yes" method="xml" omit-xml-declaration="no"/>
<xsl:template match="/gmi:MI_Metadata">
<xsl:copy>
<!-- <xsl:apply-templates/> -->
<xsl:copy-of select="//gmd:fileIdentifier"/>
<xsl:copy-of select="gmd:language[1]"/>
<xsl:copy-of select="//gmd:characterSet"/>
<xsl:copy-of select="//gmd:parentIdentifier"/>
<xsl:copy-of select="//gmd:hierarchyLevel"/>
<xsl:copy-of select="//gmd:dateStamp"/>
<xsl:copy-of select="//gmd:metadataStandardName"/>
<xsl:copy-of select="//gmd:metadataStandardVersion"/>
<xsl:copy-of select="//gmd:referenceSystemInfo"/>
<xsl:apply-templates select="gmd:identificationInfo[1]"/>
<xsl:apply-templates select="//gmd:distributionInfo"/>
<xsl:apply-templates select="//gmd:dataQualityInfo"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//gmd:identificationInfo">
<xsl:copy>
<xsl:if test="count(//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title)=1">
<xsl:apply-templates select="gmd:MD_DataIdentification"/>
</xsl:if>
</xsl:copy>
</xsl:template >
<!-- dataset case -->
<xsl:template match="//gmd:identificationInfo/gmd:MD_DataIdentification">
<xsl:copy>
<xsl:apply-templates select="gmd:citation"/>
<xsl:copy-of select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:graphicOverview"/>
<xsl:apply-templates select="gmd:extent"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation">
<xsl:copy>
<xsl:apply-templates select="gmd:CI_Citation"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation">
<xsl:copy>
<xsl:copy-of select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent">
<xsl:copy>
<xsl:apply-templates select="gmd:EX_Extent"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent">
<xsl:copy>
<xsl:apply-templates select="gmd:geographicElement"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement">
<xsl:copy>
<xsl:copy-of select="//gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox"/>
</xsl:copy>
</xsl:template>
<!-- sections common to dataset and service -->
<!-- distrib info section -->
<xsl:template match="//gmd:distributionInfo">
<xsl:copy>
<xsl:copy-of select="//gmd:distributionInfo/gmd:MD_Distribution"/>
</xsl:copy>
</xsl:template >
<!-- dataQualityInfo section -->
<!-- distrib info section -->
<xsl:template match="//gmd:dataQualityInfo">
<xsl:copy>
<xsl:apply-templates select="gmd:DQ_DataQuality"/>
</xsl:copy>
</xsl:template >
<xsl:template match="//gmd:dataQualityInfo/gmd:DQ_DataQuality">
<xsl:copy>
<xsl:copy-of select="//gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage"/>
</xsl:copy>
</xsl:template >
</xsl:stylesheet>