metadata101 / iso19139.ca.HNAP

ISO Harmonized North American Profile (HNAP)
GNU General Public License v2.0
4 stars 19 forks source link

Update distribution format so that the value stored is the code instead of the English value. #320

Closed ianwallen closed 1 year ago

ianwallen commented 1 year ago

Update distribution format so that the value stored is the code instead of the English value.

Fixes issue #319

Output after this fix will be distribution format similar the following

         <gmd:distributionFormat>
            <gmd:MD_Format>
               <gmd:name>
                  <gco:CharacterString>CDED ASCII</gco:CharacterString>
               </gmd:name>
               <gmd:version>
                  <gco:CharacterString>test</gco:CharacterString>
               </gmd:version>
            </gmd:MD_Format>
         </gmd:distributionFormat>

Also, the record will validate using a record with the main language as French.

ianwallen commented 1 year ago

Todo: test what happens with old data. - is there any dataloss?

jodygarnett commented 1 year ago

Based on discussion this is required for compatibility with FGP; however the HNAP guidance document is a bit inconclusive (indicating name is used but then only linking to english name).

We have asked @bo-lu clarify FGP intent and update the document accordingly.

ianwallen commented 1 year ago

Based on discussion this is required for compatibility with FGP; however the HNAP guidance document is a bit inconclusive (indicating name is used but then only linking to english name).

We have asked @bo-lu clarify FGP intent and update the document accordingly.

This also applies to #314

ianwallen commented 1 year ago

Todo: test what happens with old data. - is there any data loss?

Tested with an invalid value (GEOJson) and we can see that the value is not removed so there is no data loss. It also does not validate as expected.

image