Download GeoNetwork Developer Manual

Transcript
GeoNetwork Developer Manual, Release 2.9.2
<xs:enumeration
<xs:enumeration
<xs:enumeration
<xs:enumeration
<xs:enumeration
</xs:restriction>
</xs:simpleType>
value="planningCadastre"/>
value="society"/>
value="structure"/>
value="transportation"/>
value="utilitiesCommunication"/>
The following is part of the codelists.xml entry manually created for this element:
<codelist name="gmd:MD_TopicCategoryCode">
<entry>
<code>farming</code>
<label>Farming</label>
<description>Rearing of animals and/or cultivation of plants. Examples: agriculture,
irrigation, aquaculture, plantations, herding, pests and diseases affecting crops
livestock</description>
</entry>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
<entry>
<code>biota</code>
<label>Biota</label>
<description>Flora and/or fauna in natural environment. Examples: wildlife, vegetati
biological sciences, ecology, wilderness, sealife, wetlands, habitat</description>
</entry>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
<entry>
<code>boundaries</code>
<label>Boundaries</label>
<description>Legal land descriptions. Examples: political and administrative
boundaries</description>
</entry>
.....
</codelist>
The codelists.xml file maps the enumerated values from the XSD to a localized label and a description
via the code element.
A localized copy of codelists.xml is made available on an XPath to the presentation XSLTs eg.
/root/gui/schemas/iso19139/codelist for the iso19139 schema.
The XSLT metadata.xsl which contains templates used by all metadata schema presentation XSLTs,
handles the creation of a select list/drop down menu in the editor and display of the code and description
in the metadata viewer.
The iso19139 schema has additional codelists that are managed external to the XSDs in catalog/vocabulary files such as http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml These
have also been added to the codelists.xml file so that they can be localized, overridden in profiles and
include an extended description to provide more useful information when viewing the metadata record.
The iso19139 schema has additional templates in its presentation xslts to handlese codelists because
they are specific to that schema. These are discussed in the section on presentation XSLTs later in this
manual.
32
Chapter 4. Schema Plugins