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
412 stars 487 forks source link

How to remove a submenu item? #8182

Closed laers closed 3 months ago

laers commented 3 months ago

I am looking to remove the submenu item "Manage directory" in the Contribute dropdown. billede

Can I specify a configuration for this in the UI settings (admin.console#/settings/ui)? Somelike this...:

[
  "gn-site-name-menu",
  "gn-portal-switcher",
  "gn-search-menu",
  "gn-map-menu",
  "gn-contribute-menu [NOT directory]",
  "gn-admin-menu"
]
fxprunayre commented 3 months ago

There is no configuration for this but you can remove it in https://github.com/geonetwork/core-geonetwork/blob/main/web-ui/src/main/resources/catalog/components/toolbar/partials/menu-contribute.html#L37-L41.

laers commented 3 months ago

Thanks! It works :-)