New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor / Add XSL and table modes #1635

Merged
merged 6 commits into from Jul 25, 2016

Conversation

Projects
None yet
1 participant
@fxprunayre
Member

fxprunayre commented Jul 25, 2016

This PR add 2 things:

  • Editor configuration could create a section based on a custom XSL template. This is useful when advanced customization may be done (eg. custom loop, table view)

  • Editor can display simple tables to edit metadata elements

    Eg. for quality measures in ISO19115-3:

image

Usage:

For example, create a tab on the data quality section:

<tab id="qualityMeasures">
  <section>
    <xsl xpath="/mdb:MD_Metadata/mdb:dataQualityInfo" mode="iso19115-3-qm"/>
  </section>
</tab>

Then declare a template (eg. in iso19115-3/layout/layout-custom-tpl.xsl) to customize
the layout:

<xsl:template name="iso19115-3-qm">
  <h1><xsl:value-of select="$strings/qualityMeasures"/></h1>

This PR also adds a template to render element in a table. Table support:

  • Table header
  • Table body composed of rows and cols
  • colspan attribute supported
  • Column could be displayed as readonly
  • input with number type or textarea supported
  • Remove element control. Element could be a simple or complex element
  • Add element control

image

This work is supported by Ifremer for improving data quality evaluation in the context of the MedSea project. It is mainly tested on ISO19115-3 standard but is generic and can be used with other standards.

Future work

  • Up/Down control
  • Multilingual editing
  • Merge also work done by Jose for Sweden

@fxprunayre fxprunayre added this to the 3.2.0 milestone Jul 25, 2016

@fxprunayre fxprunayre self-assigned this Jul 25, 2016

fxprunayre added a commit to metadata101/iso19115-3 that referenced this pull request Jul 25, 2016

@fxprunayre fxprunayre changed the title from Editor / Add XSL mode to allow advanced configuration using XSL to Editor / Add XSL and table modes Jul 25, 2016

@fxprunayre fxprunayre merged commit e8a1724 into geonetwork:develop Jul 25, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

fxprunayre added a commit to fxprunayre/core-geonetwork that referenced this pull request Dec 20, 2016

Editor / Make table layout configurable
In config-editor.xml, define which elements should be displayed using table
in flat mode views (ie. this does not apply to advanced view).

Related work: geonetwork#1635

In ISO19139, table is used for contact, online source, coupled resource, format, other locale.

fxprunayre added a commit that referenced this pull request Dec 20, 2016

Editor / Make table layout configurable (#1813)
In config-editor.xml, define which elements should be displayed using table
in flat mode views (ie. this does not apply to advanced view).

Related work: #1635

In ISO19139, table is used for contact, online source, coupled resource, format, other locale.

fxprunayre added a commit to metadata101/iso19115-3 that referenced this pull request Sep 27, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment