Opened 12 years ago

Closed 12 years ago

#1027 closed defect (fixed)

MCP version 1.5 (Experimental) shouldn't be loaded as the default schema

Reported by: awalsh Owned by: geonetwork-devel@…
Priority: major Milestone: v2.8.0 RC0
Component: Metadata standards Version: v2.8.0RC0
Keywords: MCP schema Cc: simon.pigot@…

Description

Using GN2.8+ANZMEST MCP schemas. Because of the schema detection logic coded into the schema-ident.axml config. files for the MCPV1.4 amd MCP V1.5 schemas the MCP1.5 Experimental schema ends be default one. The desired behavoir is the opposite i.e the MCP V1.4 schema should be the default.

Suggested way to fix (Thanks to Ian and Simon!) is as follows:

In the mcp-1.4 schema-ident.xml we set:

<autodetect xmlns:mcp="http://bluenet3.antcrc.utas.edu.au/mcp"

xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco">

<!-- catchs most MCP records as default 1.4 (except for 1.5-experimental)-->

<elements type="root">

<mcp:MD_Metadata/>

</elements>

</autodetect>

and in the mcp-1.5 experimental schema-ident.xml we set:

<autodetect xmlns:mcp="http://bluenet3.antcrc.utas.edu.au/mcp"

xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco">

<elements>

<gmd:metadataStandardName>

<gco:CharacterString>Australian Marine Community Profile of ISO

19115:2005/19139</gco:CharacterString>

</gmd:metadataStandardName> <gmd:metadataStandardVersion>

<gco:CharacterString>1.5-experimental</gco:CharacterString>

</gmd:metadataStandardVersion>

</elements>

</autodetect>

Change History (1)

comment:1 by ianwallen, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in commit https://github.com/geonetwork/schema-plugins/commit/094568103a2d93cb1ce55d5de3e6de9e525ddeb1

Note: This exact fix was not implemented. Instead an | logic was used to look for 1.4 and 1.5 - See other related commits on the same date for details.

Note: See TracTickets for help on using tickets.