Skip to content

Consider making layer name source in map view configurable #9199

@GeoSander

Description

@GeoSander

Problem

Depending on the metadata profile and view overrides, the default behavior in GeoNetwork seems to be to show the gmd:description first and - if empty - resort to gmd:title:

https://github.com/geonetwork/core-geonetwork/blob/main/web-ui/src/main/resources/catalog/components/viewer/searchlayerformap/partials/searchlayerformap.html#L65-L75

Especially for INSPIRE-based profiles however, the gmd:description can only have these 2 values: endPoint or accessPoint.

This leads to not very descriptive names when adding map layers from a metadata resource link to the map:

Image Image

Suggestion

Let the user decide where the label for the layer (and also perhaps the resource representation in the metadata record view) should be taken from, by adding a UI configuration option for this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions