geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
410 stars 487 forks source link

Unable to select multiple/all data points in map for export. #8117

Open ianwallen opened 3 months ago

ianwallen commented 3 months ago

Describe the bug Unable to select multiple/all data points in map for export.

To Reproduce Steps to reproduce the behavior:

  1. Using Hydrological Basins in Africa (Sample record, please remove!) (da165110-88fd-11da-a88f-000d939bc5d8) as a sample ISO 19139 record. Select image

  2. Click on a region on the map image

We can see that there is data for that region.

  1. I then want to select multiple/all regions so that I see all data related to my selection I'm unable to identify the key combinations to select multiple/all regions.

Expected behavior I expect to be able to select multiple or all regions an see the data and possibly export the data as well.

Desktop (please complete the following information):

Additional context It is possible that what I'm trying to do is possible but I cannot figure it out. If not possible then it would be nice to have that feature added.

josegar74 commented 2 months ago

@ianwallen this seems the code that triggers the update update of the table:

https://github.com/geonetwork/core-geonetwork/blob/2aab69807e7b7302f1d5fb2b2c655a81d96361ee/web-ui/src/main/resources/catalog/components/viewer/gfi/GetFeatureInfoDirective.js#L148-L175

This code clears the panel: https://github.com/geonetwork/core-geonetwork/blob/2aab69807e7b7302f1d5fb2b2c655a81d96361ee/web-ui/src/main/resources/catalog/components/viewer/gfi/GetFeatureInfoDirective.js#L206

I commented the previous line, but then a new tab is displayed with the new feature selected, instead of being added to the existing one, probably due to https://github.com/geonetwork/core-geonetwork/blob/2aab69807e7b7302f1d5fb2b2c655a81d96361ee/web-ui/src/main/resources/catalog/components/viewer/gfi/GetFeatureInfoDirective.js#L218

It doesn't seem that is supported with the current code any additional key combination to select multiple features.