Open ByronCinNZ opened 3 months ago
@ByronCinNZ , can you check https://github.com/geonetwork/core-geonetwork/pull/8224 and https://github.com/geonetwork/core-geonetwork/pull/8225. For the overview GeoNetwork does not encode it using linkage element so I'm not sure we should add more global support of it but at least the PR will fix the invalid ISO19139 document. Thanks
Describe the bug In GeoNetwork 4.2.5, when exporting a metadata record to ISO19139 using the API and formatted for ISO19139. some elements produced are incorrect to ISO19139.
To Reproduce Steps to reproduce the behaviour:
curl -X GET http://localhost:8080/geonetwork/srv/api/records/46a6b1b7-642d-4d3a-bd6d-2d679d3a92a9/formatters/iso19139 > output139md.xml
gmd:graphicOverview
element - a childgmd:linkage
element will (incorrectly) be present. (Thisgmd:linkage
element disappears if the record is imported into GeoNetwork.)gmd:dataQualityInfo
element - the child element togmd:scope
will begmd:MD_Scope
when it should begmd:DQ_Scope
Expected behavior Output for
gmd:scope
on export to ISO19139 when a linage element is present and a dataaQualityInfo is not, should be:And for Browse Graphic -
Instead of -
Screenshots If applicable, add screenshots to help explain your problem.
Log file If applicable, add the server log file to help trace your problem.
Desktop (please complete the following information):
Additional context Cannot test in GN 4.4 as the ISO19139 formatted is not functioning - submitted separate bug report