geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Filter get_defined_contact_role is not defined

Open etj opened this issue 1 year ago • 3 comments

The filter is only referenced once in the full_metadata.xml file:

https://github.com/GeoNode/geonode/blob/ec24c991c50fc9c0078d3994d35f133608376fbd/geonode/catalogue/templates/catalogue/full_metadata.xml#L16

The contact roles are not added in the XML metadata document indeed.

Only checked on master, probably it's also on other branches.

etj avatar Aug 29 '24 08:08 etj

@ahmdthr maybe this is related to our issue with GDI-DE compatability and missing entries in the XML (https://github.com/Thuenen-GeoNode-Development/Sprints/issues/6 & https://github.com/Thuenen-GeoNode-Development/thuenen_atlas/issues/34)?

gannebamm avatar Aug 29 '24 11:08 gannebamm

@gannebamm Let me take a look in detail.

@etj It most probably is referring to:

https://github.com/GeoNode/geonode/blob/ec24c991c50fc9c0078d3994d35f133608376fbd/geonode/base/models.py#L1767

but I will take a look at it soon, and report back.

ahmdthr avatar Aug 29 '24 12:08 ahmdthr

@gannebamm Our GDI-DE compliance issue was not really related to this, but our generated metadata didn't include multiple contacts. But it is now fixed, we now get a GDI-DE compliant metadata with multiple contacts.

@etj As I suspected, incorrect property was being referred. I have created a PR to fix that.

ahmdthr avatar Sep 04 '24 05:09 ahmdthr