[GeoNetwork-devel] [GeoNetwork opensource Developer website] #1050: Add URI lookup entry to mcp 1.4 oasis-catalog.xml; typo error in mcp 1.4 oasis-catalog.xml

#1050: Add URI lookup entry to mcp 1.4 oasis-catalog.xml; typo error in mcp 1.4
oasis-catalog.xml
------------------------------------------------------------+---------------
Reporter: awalsh | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC0
Component: Metadata standards | Version: v2.8.0RC0
Keywords: schematron, codelist validation, oasis catalog |
------------------------------------------------------------+---------------
Using latest GN2.8 the jeeves xmlresolver in conjunction with
the mcp-1.4 oasis-catlog.xml file is failing to resolve
this particular code list URI which is used extensively in existing
production MCP XML metadata:-

  <mcp:type>
      <mcp:DP_TypeCode
codeList="http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml#DP_TypeCode&quot;
codeListValue="longName" />
  </mcp:type>

DEBUG shows that this URI resolves to a non-existent web resource
i.e
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml

2012-09-14 14:54:26,998 DEBUG [jeeves.xmlresolver] - Trying to resolve
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml:file:/C:/ANZMEST_SVN9275/web/geonetwork
/WEB-INF/data/config/schema_plugins/iso19139.mcp-1.4/schematron-rules-iso-
codeListValidation.xsl
2012-09-14 14:54:26,998 DEBUG [jeeves.xmlresolver] - Resolved as
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml

As a result the schematron process of codeList validation for
the mcp schema gmxCodelists.xml#DP_TypeCode was failing.

To fix this add the following to the mcp-1.4 oasis-catalog.xml file:

<uri
name="http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml&quot;
              uri="schema/resources/Codelist/gmxCodelists.xml"/>

Then the log shows this resolves OK to a local mcp codeList resource:

2012-09-14 15:40:43,061 DEBUG [jeeves.xmlresolver] - Trying to resolve
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml:file:/C:/ANZMEST_SVN9275/web/geonetwork
/WEB-INF/data/config/schema_plugins/iso19139.mcp-1.4/schematron-rules-iso-
codeListValidation.xsl
2012-09-14 15:40:43,061 DEBUG [jeeves.xmlresolver] - Resolved as
file:C:/ANZMEST_SVN9275/web/geonetwork/WEB-
INF/data/config/schema_plugins/iso19139.mcp-1.4/schema/resources/Codelist/gmxCodelists.xml

There looks like a small typo error in the mcp-1.4 oasis catalog file, an
umatched single
quote ' just before the "http" as follows:

<uri
name="'http://bluenet3.antcrc.utas.edu.au/mcp/schema/resources/Codelist/gmxCodelists.xml&quot;
       uri="schema/resources/Codelist/gmxCodelists.xml"/>
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml

  <uri
name="'http://bluenet3.antcrc.utas.edu.au/mcp-1.4/schema/resources/Codelist/gmxCodelists.xml&quot;
       uri="schema/resources/Codelist/gmxCodelists.xml"/>

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1050&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1050: Add URI lookup entry to mcp 1.4 oasis-catalog.xml; typo error in mcp 1.4
oasis-catalog.xml
------------------------------------------------------------+---------------
Reporter: awalsh | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.8.0 RC0
Component: Metadata standards | Version: v2.8.0RC0
Keywords: schematron, codelist validation, oasis catalog |
------------------------------------------------------------+---------------

Comment(by simonp):

Thanks Andrew - I have fixed this as part of #1043 - I'll close both when
I commit that after I get round to testing it.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1050#comment:1&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.

#1050: Add URI lookup entry to mcp 1.4 oasis-catalog.xml; typo error in mcp 1.4
oasis-catalog.xml
---------------------------------+------------------------------------------
  Reporter: awalsh | Owner: geonetwork-devel@…
      Type: defect | Status: closed
  Priority: major | Milestone: v2.8.0 RC0
Component: Metadata standards | Version: v2.8.0RC0
Resolution: fixed | Keywords: schematron, codelist validation, oasis catalog
---------------------------------+------------------------------------------
Changes (by simonp):

  * status: new => closed
  * resolution: => fixed

Comment:

Fixed in commit 4bd3d985c8d100c1db3318097882a5ce0905e38d

Note: changing the codelist URL from
http://bluenet3.antcrc.utas.edu.au/mcp/resources/Codelist/gmxCodelists.xml
to
http://bluenet3.antcrc.utas.edu.au/mcp-1.4/resources/Codelist/gmxCodelists.xml
takes place as part of the update-fixed-info.xsl (this is executed before
validation because the record is always saved before validating).

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1050#comment:2&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.