geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Harvest errors on dataset metadata XML

Open d3netxer opened this issue 3 years ago • 6 comments

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

  1. 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?

d3netxer avatar Jun 24 '21 16:06 d3netxer

linked to: https://github.com/GeoNode/geonode/issues/7181

gannebamm avatar Jun 25 '21 06:06 gannebamm

@gannebamm is this still valid on GN 4?

giohappy avatar May 09 '22 10:05 giohappy

Is there still an option to download the metadata at all in v4? I am unable to find it.

gannebamm avatar May 09 '22 14:05 gannebamm

that was my point :) And I think we should restore it...

giohappy avatar May 09 '22 15:05 giohappy

+1 ! Without metadata download Geonode is useless IMO

kikislater avatar Jun 30 '22 17:06 kikislater

@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

giohappy avatar Jun 30 '22 18:06 giohappy

Just a little update: The UI now enables to download the metadata grafik https://master.demo.geonode.org/catalogue/#/dataset/3049

gannebamm avatar Oct 25 '22 13:10 gannebamm