Download GeoNetwork Developer Manual

Transcript
GeoNetwork Developer Manual, Release 2.9.2
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="gmd:MD_Constraints_Type">
<xs:sequence minOccurs="0">
<xs:element name="jurisdictionLink" type="gmd:URL_PropertyType" minOccurs="1"/>
<xs:element name="licenseLink" type="gmd:URL_PropertyType" minOccurs="1"/>
<xs:element name="imageLink" type="gmd:URL_PropertyType" minOccurs="1"/>
<xs:element name="licenseName" type="gco:CharacterString_PropertyType" minOccurs
<xs:element name="attributionConstraints" type="gco:CharacterString_PropertyType
<xs:element name="derivativeConstraints" type="gco:CharacterString_PropertyType"
<xs:element name="commercialUseConstraints" type="gco:CharacterString_PropertyTy
<xs:element name="collectiveWorksConstraints" type="gco:CharacterString_Property
<xs:element name="otherConstraints" type="gco:CharacterString_PropertyType" minO
</xs:sequence>
<xs:attribute ref="mcp:commonsType" use="required"/>
<xs:attribute ref="gco:isoType" use="required" fixed="gmd:MD_Constraints"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="MD_Commons" substitutionGroup="gmd:MD_Constraints" type="mcp:MD_Common
For MCP records, the GeoNetwork editor will show a choice of elements from the substitution group
for gmd:MD_Constraints when adding ‘Resource Constraints’ to the metadata document. This will now
include mcp:MD_Commons.
Note that by similar process, two other elements, now deprecated in favour of MD_Commons, were
also added as substitutes for MD_Constraints. If it was necessary to constrain the choices shown in this
menu, say to remove the deprecated elements and limit the choices to just legal, security and commons,
then this can be done by the following piece of XML in the schema-substitutes.xml file:
<field name="gmd:MD_Constraints">
<substitute name="gmd:MD_LegalConstraints"/>
<substitute name="gmd:MD_SecurityConstraints"/>
<substitute name="mcp:MD_Commons"/>
</field>
The result of this change is shown below.
Once again, a good place to start when building a schema-substitutes.xml file for the MCP is the schemasubstitutes.xml file for the iso19139 schema.
4.3. Example - ISO19115/19139 Marine Community Profile (MCP)
47