metadata101 / iso19139.ca.HNAP

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

Unit of Meansurement (uom) rendering issue #415

Open wangf1122 opened 1 day ago

wangf1122 commented 1 day ago

The current UI is not able to handle HNAP uom spec

image

<gco:Distance uom="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/uom/gmxUom.xml#m">1</gco:Distance>

The ISO13139 standard has no such url as part of the uom part.

 <gco:Distance uom="m">10</gco:Distance>

So wonder why HNAP needs such url and how to make the UI handle such url?

josegar74 commented 4 hours ago

I've seen both cases. The file gmxUom.xml seems containing kind of codelist https://github.com/geonetwork/core-geonetwork/blob/main/schemas/iso19139/src/main/plugin/iso19139/schema/resources/uom/gmxUom.xml

I don't think HNAP enforces it, at least I don't find that in the specification.

In any case, the code enforcing it is https://github.com/metadata101/iso19139.ca.HNAP/blob/adcfe954b0e7a4b0ac98f043c32a0cd46630c5a0/src/main/plugin/iso19139.ca.HNAP/update-fixed-info.xsl#L915-L929

Maybe can be added a variable in the xsl to enforce the URL or use the provided value as it is.