geonode
geonode copied to clipboard
Harvest errors on dataset metadata XML
Expected Behavior
Data.gov would harvest datasets on GeoNode successfully
Actual Behavior
A few errors occurred:
- Element '{http://www.isotc211.org/2005/gmd}name': This element is not expected. Expected is ({http://www.isotc211.org/2005/gmd}title).
- Element '{http://www.isotc211.org/2005/gmd}includedWithDataset': This element is not expected. Expected is one of ( ({http://www.isotc211.org/2005/gmd}AbstractMD_ContentInformation, {http://www.isotc211.org/2005/gmd}MD_FeatureCatalogueDescription, {http://www.isotc211.org/2005/gmd}MD_CoverageDescription, {http://www.isotc211.org/2005/gmd}MD_ImageDescription, {http://www.isotc211.org/2005/gmd}MI_CoverageDescription, {http://www.isotc211.org/2005/gmd}MI_ImageDescription).
Steps to Reproduce the Problem
- upload a dataset through the GeoNode UI and fill out metadata fields
Specifications
- GeoNode version: 3.2
- Installation method (manual, GeoNode Docker, SPCGeoNode Docker): GeoNode Docker
- Platform: Ubuntu 20.04
In order to correct the errors, the gmd:name element can be removed, and also the includedWithDataset can be relocated within the gmd:MD_FeatureCatalogueDescription element. Am I correct in assuming that these updates can be implemented by editing the full_metadata.xml template?
Also, would removing the gmd:name from the template element break anything?
Does GeoNode document metadata XML get validated in tests?
linked to: https://github.com/GeoNode/geonode/issues/7181
@gannebamm is this still valid on GN 4?
Is there still an option to download the metadata at all in v4? I am unable to find it.
that was my point :) And I think we should restore it...
+1 ! Without metadata download Geonode is useless IMO
@kikislater Metadata download is available. It's the UI button that is missing at the moment.
Take a look at the API response of a resource. You'll find the metadata links inside the links
property.
For example here it is the Dublin Core document for this dataset
Just a little update: The UI now enables to download the metadata
https://master.demo.geonode.org/catalogue/#/dataset/3049