[GeoNetwork-devel] [GeoNetwork opensource Developer website] #1066: Schematron rules part of the schema plugin

#1066: Schematron rules part of the schema plugin
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC0
Keywords: |
-------------------------+--------------------------------------------------
Main goal is to pack the schematron rules with the schema plugin in order
to easily add/update rules withtout the need of the source code.

Changes:
  * move schematron rules for ISO 19139 to iso19139 schema plugin folder
  * rules location
   * {plugins}/schematron/*.sch : schematron rules
   * {plugins}/schematron/*.xsl : compiled schematron rules
   * {plugins}/loc/{lang}/schematron-*.xml : loc files
  * move schematron XSL compiler to WEB-INF/classes/schematron
  * remove schematron folder at root
  * when schema is loaded,
   * look for sch file in schema folder and compiles rules
   * if no rules found, deal with no schematron rule on validation (ie. no
more schematron-rule-none.xsl)

Layout changes:
  * some minor layout changes in the widget UI

[[Image(geonetwork-xsd-error.png)]]

To include iso19139 schematron rules in your plugins, add a simple XSL
which import the one needed:
  * Example {myschema}/schematron/schematron-rules-iso.xsl
{{{
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform&quot;
version="2.0">
         <xsl:import href="../../iso19139/schematron/schematron-rules-
iso.xsl"/>
</xsl:stylesheet>
}}}

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1066&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.

#1066: Schematron rules part of the schema plugin
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC0
Keywords: |
-------------------------+--------------------------------------------------
Description changed by fxp:

Old description:

Main goal is to pack the schematron rules with the schema plugin in order
to easily add/update rules withtout the need of the source code.

Changes:
* move schematron rules for ISO 19139 to iso19139 schema plugin folder
* rules location
  * {plugins}/schematron/*.sch : schematron rules
  * {plugins}/schematron/*.xsl : compiled schematron rules
  * {plugins}/loc/{lang}/schematron-*.xml : loc files
* move schematron XSL compiler to WEB-INF/classes/schematron
* remove schematron folder at root
* when schema is loaded,
  * look for sch file in schema folder and compiles rules
  * if no rules found, deal with no schematron rule on validation (ie. no
more schematron-rule-none.xsl)

Layout changes:
* some minor layout changes in the widget UI

[[Image(geonetwork-xsd-error.png)]]

To include iso19139 schematron rules in your plugins, add a simple XSL
which import the one needed:
* Example {myschema}/schematron/schematron-rules-iso.xsl
{{{
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform&quot;
version="2.0">
        <xsl:import href="../../iso19139/schematron/schematron-rules-
iso.xsl"/>
</xsl:stylesheet>
}}}

New description:

Main goal is to pack the schematron rules with the schema plugin in order
to easily add/update rules withtout the need of the source code.

Changes:
  * move schematron rules for ISO 19139 to iso19139 schema plugin folder
  * rules location
   * {plugins}/schematron/*.sch : schematron rules
   * {plugins}/schematron/*.xsl : compiled schematron rules
   * {plugins}/loc/{lang}/schematron-*.xml : loc files
  * move schematron XSL compiler to WEB-INF/classes/schematron
  * remove schematron folder at root
  * when schema is loaded,
   * look for sch file in schema folder and compiles rules
   * if no rules found, deal with no schematron rule on validation (ie. no
more schematron-rule-none.xsl)

Layout changes:
  * some minor layout changes in the widget UI

[[Image(geonetwork-xsd-error.png, 600px)]]

To include iso19139 schematron rules in your plugins, add a simple XSL
which import the one needed:
  * Example {myschema}/schematron/schematron-rules-iso.xsl
{{{
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform&quot;
version="2.0">
         <xsl:import href="../../iso19139/schematron/schematron-rules-
iso.xsl"/>
</xsl:stylesheet>
}}}

--

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1066#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.

#1066: Schematron rules part of the schema plugin
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
     Type: enhancement | Status: new
Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC0
Keywords: |
-------------------------+--------------------------------------------------

Comment(by fxp):

Dev branch: https://github.com/fxprunayre/core-
geonetwork/compare/geonetwork%3Amaster...feature/schema-plugin-with-
schematron

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1066#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.

#1066: Schematron rules part of the schema plugin
--------------------------+-------------------------------------------------
  Reporter: fxp | Owner: geonetwork-devel@…
      Type: enhancement | Status: closed
  Priority: major | Milestone: v2.9.0
Component: General | Version: v2.8.0RC0
Resolution: fixed | Keywords:
--------------------------+-------------------------------------------------
Changes (by fxp):

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

Comment:

Commit b5c50283b492e6383ce9a52487cbac7b07b302d9

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/1066#comment:3&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.