[GeoNetwork-devel] [GN 3.0.4] Conformity degree issue

Hi,

i'm having a problem with the conformity degree field (/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:report/gmd:DQ_DomainConsistency/gmd:result/gmd:DQ_ConformanceResult/gmd:pass). I noticed that when i click the save & close button the field is not include inside the post call of the form.

This is the form field in the post call:
_X156_replace:<gmd:result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:gn="http://www.fao.org/geonetwork&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gmx="http://www.isotc211.org/2005/gmx&quot; xmlns:srv="http://www.isotc211.org/2005/srv&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
     <gmd:DQ_ConformanceResult>
         <gmd:specification>
             <gmd:CI_Citation>
                 <gmd:title>
                     <gco:CharacterString>Commission Regulation (EU) No 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards interoperability of spatial data sets and services</gco:CharacterString>
                 </gmd:title>
                 <gmd:date>
                     <gmd:CI_Date>
                         <gmd:date>
<gco:Date>2010-12-08</gco:Date>
                         </gmd:date>
                         <gmd:dateType>
                             <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode&quot; codeListValue="publication" />
                         </gmd:dateType>
                     </gmd:CI_Date>
                 </gmd:date>
             </gmd:CI_Citation>
         </gmd:specification>
         <gmd:explanation>
             <gco:CharacterString>See the referenced specification 1</gco:CharacterString>
         </gmd:explanation>
     </gmd:DQ_ConformanceResult>
</gmd:result>

Instead this is the form field in the post call when i click the save metadata button:

<gmd:result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:gn="http://www.fao.org/geonetwork&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gmx="http://www.isotc211.org/2005/gmx&quot; xmlns:srv="http://www.isotc211.org/2005/srv&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
     <gmd:DQ_ConformanceResult>
         <gmd:specification>
             <gmd:CI_Citation>
                 <gmd:title>
                     <gco:CharacterString>Commission Regulation (EU) No 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards interoperability of spatial data sets and services</gco:CharacterString>
                 </gmd:title>
                 <gmd:date>
                     <gmd:CI_Date>
                         <gmd:date>
<gco:Date>2010-12-08</gco:Date>

                         </gmd:date>
                         <gmd:dateType>
                             <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode&quot; codeListValue="publication" />
                         </gmd:dateType>
                 </gmd:date>
             </gmd:CI_Citation>
         </gmd:specification>
         <gmd:explanation>
             <gco:CharacterString>See the referenced specification 1</gco:CharacterString>
         </gmd:explanation>
         <gmd:pass xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; gco:nilReason="unknown">
             <gco:Boolean></gco:Boolean>
         </gmd:pass>
     </gmd:DQ_ConformanceResult>
</gmd:result>

You can notice the tag gmd:pass is correctly popuplated in this call. There is a way to fix this?

Regards,
Marco

--
This email was Virus checked by Astaro Security Gateway. http://www.sophos.com

I have some updates about this issue. The problem is not related to the save buttons, i noticed that the field is submitted only when i click on a radio button (not the preselected), pratically only when the radio value change.
I try to install my custom schema plugin even in geonetwork 3.2.1 and the problem still persist.

This is the configuration inside config-editor:

                 <!-- Conformity -->
                 <section name="conformity">

                     <field name="conformity" xpath="/gmd:MD_Metadata/gmd:dataQualityInfo/*/gmd:report/*/gmd:result" del="../.." templateModeOnly="true" >
                         <template>
                             <values>
                                 <!-- Title -->
                                 <key label="conformity_title" xpath="gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:title/gco:CharacterString" tooltip="gmd:pass">
                                     <helper name="gmd:title" context="/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:report/gmd:DQ_DomainConsistency/gmd:result/gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:title" />
                                 </key>
                                 <!-- Date-->
                                 <key label="conformity_date" xpath="gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date" use="date" />
                                 <!-- Explanation -->
                                 <key label="explanation" xpath="gmd:DQ_ConformanceResult/gmd:explanation/gco:CharacterString" use="textarea" />
                                 <!-- Pass -->
                                 <key label="pass" xpath="gmd:DQ_ConformanceResult/gmd:pass/gco:Boolean" use="gn-checkbox-with-nilreason">
                                     <directiveAttributes data-tag-name="gmd:pass" data-nilreason="eval#gmd:DQ_ConformanceResult/gmd:pass/@gco:nilReason" data-labels='{"true": "conformant", "false": "notConformant", "unknown": "notEvaluated"}' />
                                 </key>
                             </values>
                             <snippet>
                                 <gmd:result>
                                     <gmd:DQ_ConformanceResult>
                                         <gmd:specification>
                                             <gmd:CI_Citation>
                                                 <gmd:title>
<gco:CharacterString>{{conformity_title}}</gco:CharacterString>
                                                     <gn:copy select="gmd:PT_FreeText" />
                                                 </gmd:title>
                                                 <gn:copy select="gmd:alternateTitle" />
                                                 <gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:Date>{{conformity_date}}</gco:Date>
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode&quot; codeListValue="publication" />
</gmd:dateType>
</gmd:CI_Date>
                                                 </gmd:date>
                                                 <gn:copy select="gmd:edition" />
                                                 <gn:copy select="gmd:editionDate" />
                                                 <gn:copy select="gmd:identifier" />
                                                 <gn:copy select="gmd:citedResponsibleParty" />
                                                 <gn:copy select="gmd:presentationForm" />
                                                 <gn:copy select="gmd:series" />
                                                 <gn:copy select="gmd:otherCitationDetails" />
                                                 <gn:copy select="gmd:collectiveTitle" />
                                                 <gn:copy select="gmd:ISBN" />
                                                 <gn:copy select="gmd:ISSN" />
                                             </gmd:CI_Citation>
                                         </gmd:specification>
                                         <gmd:explanation>
<gco:CharacterString>{{explanation}}</gco:CharacterString>
                                             <gn:copy select="gmd:PT_FreeText" />
                                         </gmd:explanation>
                                         {{pass}}
</gmd:DQ_ConformanceResult>
                                 </gmd:result>
                             </snippet>
                         </template>
                     </field>

                     <action type="add" name="conformity" or="report" forceLabel="true" in="/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality">
                         <template>
                             <snippet>
                                 <gmd:report>
                                     <gmd:DQ_DomainConsistency>
                                         <gmd:result>
<gmd:DQ_ConformanceResult>
<gmd:specification>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString />
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:Date />
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode&quot; codeListValue="publication" />
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
</gmd:CI_Citation>
</gmd:specification>
<gmd:explanation>
<gco:CharacterString />
</gmd:explanation>
                                                 <gmd:pass gco:nilReason="unknown">
                                                     <gco:Boolean />
                                                 </gmd:pass>
</gmd:DQ_ConformanceResult>
                                         </gmd:result>
</gmd:DQ_DomainConsistency>
                                 </gmd:report>
                             </snippet>
                         </template>
                     </action>
                 </section>

Il 20/02/2017 11:35, Marco Spagnulo ha scritto:

Hi,

i'm having a problem with the conformity degree field (/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:report/gmd:DQ_DomainConsistency/gmd:result/gmd:DQ_ConformanceResult/gmd:pass). I noticed that when i click the save & close button the field is not include inside the post call of the form.

This is the form field in the post call:
_X156_replace:<gmd:result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:gn="http://www.fao.org/geonetwork&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gmx="http://www.isotc211.org/2005/gmx&quot; xmlns:srv="http://www.isotc211.org/2005/srv&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
    <gmd:DQ_ConformanceResult>
        <gmd:specification>
            <gmd:CI_Citation>
                <gmd:title>
                    <gco:CharacterString>Commission Regulation (EU) No 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards interoperability of spatial data sets and services</gco:CharacterString>
                </gmd:title>
                <gmd:date>
                    <gmd:CI_Date>
                        <gmd:date>
<gco:Date>2010-12-08</gco:Date>
                        </gmd:date>
                        <gmd:dateType>
                            <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode&quot; codeListValue="publication" />
                        </gmd:dateType>
                    </gmd:CI_Date>
                </gmd:date>
            </gmd:CI_Citation>
        </gmd:specification>
        <gmd:explanation>
            <gco:CharacterString>See the referenced specification 1</gco:CharacterString>
        </gmd:explanation>
    </gmd:DQ_ConformanceResult>
</gmd:result>

Instead this is the form field in the post call when i click the save metadata button:

<gmd:result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:gn="http://www.fao.org/geonetwork&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gmx="http://www.isotc211.org/2005/gmx&quot; xmlns:srv="http://www.isotc211.org/2005/srv&quot; xmlns:gml="http://www.opengis.net/gml&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
    <gmd:DQ_ConformanceResult>
        <gmd:specification>
            <gmd:CI_Citation>
                <gmd:title>
                    <gco:CharacterString>Commission Regulation (EU) No 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the European Parliament and of the Council as regards interoperability of spatial data sets and services</gco:CharacterString>
                </gmd:title>
                <gmd:date>
                    <gmd:CI_Date>
                        <gmd:date>
<gco:Date>2010-12-08</gco:Date>

                        </gmd:date>
                        <gmd:dateType>
                            <gmd:CI_DateTypeCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode&quot; codeListValue="publication" />
                        </gmd:dateType>
                </gmd:date>
            </gmd:CI_Citation>
        </gmd:specification>
        <gmd:explanation>
            <gco:CharacterString>See the referenced specification 1</gco:CharacterString>
        </gmd:explanation>
        <gmd:pass xmlns:gmd="http://www.isotc211.org/2005/gmd&quot; xmlns:gco="http://www.isotc211.org/2005/gco&quot; gco:nilReason="unknown">
            <gco:Boolean></gco:Boolean>
        </gmd:pass>
    </gmd:DQ_ConformanceResult>
</gmd:result>

You can notice the tag gmd:pass is correctly popuplated in this call. There is a way to fix this?

Regards,
Marco

--
This email was Virus checked by Astaro Security Gateway. http://www.sophos.com

Ciao Marco,

this issue has just been solved on 3.2.x.
Pls refer to
   https://github.com/geonetwork/core-geonetwork/issues/1972

   Cheers,
   Emanuele

Alle 11:56:09 di Wednesday 22 February 2017, Marco Spagnulo ha scritto:

I have some updates about this issue. The problem is not related to the
save buttons, i noticed that the field is submitted only when i click on
a radio button (not the preselected), pratically only when the radio
value change.
I try to install my custom schema plugin even in geonetwork 3.2.1 and
the problem still persist.

This is the configuration inside config-editor:

                 <!-- Conformity -->
                 <section name="conformity">

                     <field name="conformity"
xpath="/gmd:MD_Metadata/gmd:dataQualityInfo/*/gmd:report/*/gmd:result"
del="../.." templateModeOnly="true" >
                         <template>
                             <values>
                                 <!-- Title -->
                                 <key label="conformity_title"
xpath="gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:title
/gco:CharacterString" tooltip="gmd:pass">
                                     <helper name="gmd:title"
context="/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:report
/gmd:DQ_DomainConsistency/gmd:result/gmd:DQ_ConformanceResult/gmd:specifica
tion/gmd:CI_Citation/gmd:title" />
                                 </key>
                                 <!-- Date-->
                                 <key label="conformity_date"
xpath="gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:date/
gmd:CI_Date/gmd:date/gco:Date" use="date" />
                                 <!-- Explanation -->
                                 <key label="explanation"
xpath="gmd:DQ_ConformanceResult/gmd:explanation/gco:CharacterString"
use="textarea" />
                                 <!-- Pass -->
                                 <key label="pass"
xpath="gmd:DQ_ConformanceResult/gmd:pass/gco:Boolean"
use="gn-checkbox-with-nilreason">
                                     <directiveAttributes
data-tag-name="gmd:pass"
data-nilreason="eval#gmd:DQ_ConformanceResult/gmd:pass/@gco:nilReason"
data-labels='{"true": "conformant", "false": "notConformant", "unknown":
"notEvaluated"}' />
                                 </key>
                             </values>
                             <snippet>
                                 <gmd:result>
                                     <gmd:DQ_ConformanceResult>
                                         <gmd:specification>
                                             <gmd:CI_Citation>
                                                 <gmd:title>
<gco:CharacterString>{{conformity_title}}</gco:CharacterString>
                                                     <gn:copy
select="gmd:PT_FreeText" />
                                                 </gmd:title>
                                                 <gn:copy
select="gmd:alternateTitle" />
                                                 <gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:Date>{{conformity_date}}</gco:Date>
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_1913
9_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"
codeListValue="publication" />
</gmd:dateType>
</gmd:CI_Date>
                                                 </gmd:date>
                                                 <gn:copy
select="gmd:edition" />
                                                 <gn:copy
select="gmd:editionDate" />
                                                 <gn:copy
select="gmd:identifier" />
                                                 <gn:copy
select="gmd:citedResponsibleParty" />
                                                 <gn:copy
select="gmd:presentationForm" />
                                                 <gn:copy
select="gmd:series" />
                                                 <gn:copy
select="gmd:otherCitationDetails" />
                                                 <gn:copy
select="gmd:collectiveTitle" />
                                                 <gn:copy
select="gmd:ISBN" />
                                                 <gn:copy
select="gmd:ISSN" />
                                             </gmd:CI_Citation>
                                         </gmd:specification>
                                         <gmd:explanation>
<gco:CharacterString>{{explanation}}</gco:CharacterString>
                                             <gn:copy
select="gmd:PT_FreeText" />
                                         </gmd:explanation>
                                         {{pass}}
</gmd:DQ_ConformanceResult>
                                 </gmd:result>
                             </snippet>
                         </template>
                     </field>

                     <action type="add" name="conformity" or="report"
forceLabel="true"
in="/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality">
                         <template>
                             <snippet>
                                 <gmd:report>
                                     <gmd:DQ_DomainConsistency>
                                         <gmd:result>
<gmd:DQ_ConformanceResult>
<gmd:specification>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString />
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:Date />
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode
codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_1913
9_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"
codeListValue="publication" />
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
</gmd:CI_Citation>
</gmd:specification>
<gmd:explanation>
<gco:CharacterString />
</gmd:explanation>
                                                 <gmd:pass
gco:nilReason="unknown">
                                                     <gco:Boolean />
                                                 </gmd:pass>
</gmd:DQ_ConformanceResult>
                                         </gmd:result>
</gmd:DQ_DomainConsistency>
                                 </gmd:report>
                             </snippet>
                         </template>
                     </action>
                 </section>

Il 20/02/2017 11:35, Marco Spagnulo ha scritto:
> Hi,
>
> i'm having a problem with the conformity degree field
> (/gmd:MD_Metadata/gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:report/gmd:D
> Q_DomainConsistency/gmd:result/gmd:DQ_ConformanceResult/gmd:pass). I
> noticed that when i click the save & close button the field is not
> include inside the post call of the form.
>
> This is the form field in the post call:
> _X156_replace:<gmd:result
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
> xmlns:gn="http://www.fao.org/geonetwork&quot;
> xmlns:gco="http://www.isotc211.org/2005/gco&quot;
> xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
> xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
> xmlns:srv="http://www.isotc211.org/2005/srv&quot;
> xmlns:gml="http://www.opengis.net/gml&quot;
> xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
>
> <gmd:DQ_ConformanceResult>
>
> <gmd:specification>
>
> <gmd:CI_Citation>
>
> <gmd:title>
>
> <gco:CharacterString>Commission Regulation (EU) No
>
> 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the
> European Parliament and of the Council as regards interoperability of
> spatial data sets and services</gco:CharacterString>
>
> </gmd:title>
> <gmd:date>
>
> <gmd:CI_Date>
>
> <gmd:date>
>
> <gco:Date>2010-12-08</gco:Date>
>
> </gmd:date>
> <gmd:dateType>
>
> <gmd:CI_DateTypeCode
>
> codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19
> 139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"
> codeListValue="publication" />
>
> </gmd:dateType>
>
> </gmd:CI_Date>
>
> </gmd:date>
>
> </gmd:CI_Citation>
>
> </gmd:specification>
> <gmd:explanation>
>
> <gco:CharacterString>See the referenced specification
>
> 1</gco:CharacterString>
>
> </gmd:explanation>
>
> </gmd:DQ_ConformanceResult>
>
> </gmd:result>
>
> Instead this is the form field in the post call when i click the save
> metadata button:
>
> <gmd:result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
> xmlns:gn="http://www.fao.org/geonetwork&quot;
> xmlns:gco="http://www.isotc211.org/2005/gco&quot;
> xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
> xmlns:gmx="http://www.isotc211.org/2005/gmx&quot;
> xmlns:srv="http://www.isotc211.org/2005/srv&quot;
> xmlns:gml="http://www.opengis.net/gml&quot;
> xmlns:xlink="http://www.w3.org/1999/xlink&quot;&gt;
>
> <gmd:DQ_ConformanceResult>
>
> <gmd:specification>
>
> <gmd:CI_Citation>
>
> <gmd:title>
>
> <gco:CharacterString>Commission Regulation (EU) No
>
> 1089/2010 of 23 November 2010 implementing Directive 2007/2/EC of the
> European Parliament and of the Council as regards interoperability of
> spatial data sets and services</gco:CharacterString>
>
> </gmd:title>
> <gmd:date>
>
> <gmd:CI_Date>
>
> <gmd:date>
>
> <gco:Date>2010-12-08</gco:Date>
>
> </gmd:date>
> <gmd:dateType>
>
> <gmd:CI_DateTypeCode
>
> codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19
> 139_Schemas/resources/codelist/ML_gmxCodelists.xml#CI_DateTypeCode"
> codeListValue="publication" />
>
> </gmd:dateType>
>
> </gmd:date>
>
> </gmd:CI_Citation>
>
> </gmd:specification>
> <gmd:explanation>
>
> <gco:CharacterString>See the referenced specification
>
> 1</gco:CharacterString>
>
> </gmd:explanation>
> <gmd:pass xmlns:gmd="http://www.isotc211.org/2005/gmd&quot;
>
> xmlns:gco="http://www.isotc211.org/2005/gco&quot; gco:nilReason="unknown">
>
> <gco:Boolean></gco:Boolean>
>
> </gmd:pass>
>
> </gmd:DQ_ConformanceResult>
>
> </gmd:result>
>
> You can notice the tag gmd:pass is correctly popuplated in this call.
> There is a way to fix this?
>
> Regards,
> Marco

--

GeoServer Professional Services from the experts!
Visit http://goo.gl/NWWaa2 for more information.

Ing. Emanuele Tajariol
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------