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
430 stars 489 forks source link

Allow removal of empty graphic overviews #8436

Closed tylerjmchugh closed 1 month ago

tylerjmchugh commented 1 month ago

Currently an empty graphic overview cannot be removed as the match condition checks for an empty file name. This PR aims to fix this issue by removing the check for an empty file name allowing empty graphic overviews to be removed.

GIF 10-15-2024 1-57-09 PM

An example of an empty graphic overview looks like:

<gmd:graphicOverview>
    <gmd:MD_BrowseGraphic>
        <gmd:fileName gco:nilReason="missing">
            <gco:CharacterString/>
        </gmd:fileName>
    </gmd:MD_BrowseGraphic>
</gmd:graphicOverview>

Checklist