Skip to content

Commit

Permalink
ISO19110 / Add flat mode exception support.
Browse files Browse the repository at this point in the history
  • Loading branch information
fxprunayre committed Dec 11, 2017
1 parent d0e7131 commit bf86fe8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Expand Up @@ -81,6 +81,9 @@
in="/gfc:FC_FeatureCatalogue/gfc:featureType/gfc:FC_FeatureType"/>
</section>
</tab>
<flatModeExceptions>
<for name="gfc:code"/>
</flatModeExceptions>
</view>
<view name="advanced">
<tab id="advanced">
Expand Down
6 changes: 4 additions & 2 deletions schemas/iso19110/src/main/plugin/iso19110/layout/layout.xsl
Expand Up @@ -50,8 +50,10 @@
<xsl:variable name="directive"
select="gn-fn-metadata:getFieldAddDirective($editorConfig, $name)"/>

<xsl:if test="$isEditing and
not($isFlatMode)">
<xsl:variable name="flatModeException"
select="gn-fn-metadata:isFieldFlatModeException($viewConfig, $name)"/>

<xsl:if test="$isEditing and (not($isFlatMode) or $flatModeException)">

<xsl:variable name="label"
select="gn-fn-metadata:getLabel($schema, $name, $labels)"/>
Expand Down
Expand Up @@ -74,12 +74,18 @@
</field>

<field name="gfc:FC_FeatureAttribute">
<suggest name="gfc:code"/>
<suggest name="gfc:memberName"/>
<suggest name="gfc:definition"/>
<suggest name="gfc:valueType"/>
<suggest name="gfc:featureType"/>
</field>

<field name="gfc:code">
<suggest name="gco:CharacterString"/>
<suggest name="gmx:Anchor"/>
</field>

<field name="gfc:inheritsTo">
<suggest name="gfc:FC_InheritanceRelation"/>
</field>
Expand Down

0 comments on commit bf86fe8

Please sign in to comment.