metadata101 / iso19139.rndt

1 stars 7 forks source link

Problem with rndt-template-service.xml #30

Open SaraRatto opened 2 years ago

SaraRatto commented 2 years ago

Creating a service metadata with the template: rndt-template-service.xml is not working properly. In specific the Conformity section presents duplicated gmd:report nodes for INSPIRE compliance (moreover none of them is correctly compiled).

SaraRatto commented 2 years ago

In updating this the situation we have: image

This the relative XML (before updating there was only the first node gmd:report):


 <gmd:report>
            <gmd:DQ_DomainConsistency>
               <gmd:result>
                  <gmd:DQ_ConformanceResult>
                     <gmd:specification>
                        <gmd:CI_Citation>
                           <gmd:title>
                              <gco:CharacterString>REGOLAMENTO  (CE)  N.  976/2009  DELLA  COMMISSIONE  del 19   ottobre   2009   recante   attuazione   della   direttiva 2007/2/CE   del Parlamento europeo e del Consiglio per quanto riguarda i servizi di rete</gco:CharacterString>
                           </gmd:title>
                           <gmd:date>
                              <gmd:CI_Date>
                                 <gmd:date>
                                    <gco:Date>2009-10-19</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"
                                                         codeListValue="publication">publication</gmd:CI_DateTypeCode>
                                 </gmd:dateType>
                              </gmd:CI_Date>
                           </gmd:date>
                        </gmd:CI_Citation>
                     </gmd:specification>
                     <gmd:explanation>
                        <gco:CharacterString>non conforme</gco:CharacterString>
                     </gmd:explanation>
                     <gmd:pass>
                        <gco:Boolean>false</gco:Boolean>
                     </gmd:pass>
                  </gmd:DQ_ConformanceResult>
               </gmd:result>
            </gmd:DQ_DomainConsistency>
         </gmd:report>
         <gmd:report>
            <gmd:DQ_DomainConsistency>
               <gmd:result>
                  <gmd:DQ_ConformanceResult>
                     <gmd:specification>
                        <gmd:CI_Citation>
                           <gmd:title gco:nilReason="missing">
                              <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"
                                                         codeListValue="publication">publication</gmd:CI_DateTypeCode>
                                 </gmd:dateType>
                              </gmd:CI_Date>
                           </gmd:date>
                        </gmd:CI_Citation>
                     </gmd:specification>
                     <gmd:explanation>
                        <gco:CharacterString>Fare riferimento alle specifiche indicate</gco:CharacterString>
                     </gmd:explanation>
                     <gmd:pass gco:nilReason="unknown"/>
                  </gmd:DQ_ConformanceResult>
               </gmd:result>
            </gmd:DQ_DomainConsistency>
         </gmd:report>
SaraRatto commented 1 year ago

The problem is actually related to imported and transformed metadata according RNDT2.0 XSL. These metadata mantain the old, but still admitted, structure:

<gmd:DQ_ConformanceResult>
                     <gmd:specification>
                        <gmd:CI_Citation>
                           <gmd:title>
                              <gco:CharacterString>REGOLAMENTO  (CE)  N.  976/2009  DELLA  COMMISSIONE  del 19   ottobre   2009   recante   attuazione   della   direttiva 2007/2/CE   del Parlamento europeo e del Consiglio per quanto riguarda i servizi di rete</gco:CharacterString>
                           </gmd:title>
<…..>

In the editor in the modify mode this structure is not rendered on the page then there is no conformance block. Moreover if you try to add a new block it happens what shows in the comment before: https://github.com/metadata101/iso19139.rndt/issues/30#issuecomment-1191329643.