Skip to content
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

GXE editor can't read repeated elements out #293

Open
NG-AG opened this issue Feb 20, 2018 · 1 comment
Open

GXE editor can't read repeated elements out #293

NG-AG opened this issue Feb 20, 2018 · 1 comment

Comments

@NG-AG
Copy link

NG-AG commented Feb 20, 2018

I'm extending the iso19115 profile by enabling the already created and unused GXE xml files to show the whole profile.
The problem is that some elements have more than one occurrence, like the 'result' element in Quality reports.
The iso19115 xml looks like this (see geoportal/profiles/metadata/iso/iso19110/iso19110/schema/gmd/dataQuality/AbstractDQ_Element_Type.xml):

<result>
    <DQ_ConformanceResult>
        ...
    </DQ_ConformanceResult>
 </result>
<result>
    <DQ_QuantitativeResult>
        ...
    </DQ_QuantitativeResult>
</result>

Creation of these metadata from the editor interface works perfect, but they won't show properly in the editor when trying to edit it again. The editor interface will only show information for the first 'result' element and will leave blank the other one.

I've noticed that repeated elements with g:maxOccurs="unbounded" don't have this problem though.

Is this a bug?

@NG-AG NG-AG changed the title GXE can't interpret duplicate elements GXE editor can't read repeated elements out Feb 20, 2018
@Cimentar
Copy link

Hi,
try to use elements g:matchTopElements and g:match to match right XML element.

Example from INSPIRE Keywords:

		  <!-- INSPIRE data theme --> 
		  <h:div g:label="$i18n.catalog.mdParam.inspire.keyword.dataTheme.label"> 
		    <g:element 
		      g:extends="$base/xtn/gmd/identification/XTN_InspireDataTheme_Keywords.xml">
		      <g:matchTopElements> 
		        <g:match
              g:qPath="gmd:MD_Keywords/gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString"
              g:qValue="GEMET - INSPIRE themes, version 1.0"
              g:qMode="must"/>
          </g:matchTopElements>
		    </g:element>
		  </h:div> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants