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

documentation for adding metadata schema or modifying the view is not helpful #7499

Open smrgeoinfo opened 10 months ago

smrgeoinfo commented 10 months ago

I'm trying to figure out how metadata view are generated, and the documentation is not useful. https://docs.geonetwork-opensource.org/4.2/tutorials/customui/view/formatter/#exercices does not explain what the various groovy functions are doing.

For example I'm trying to hide the 'fileDecompressionTechnique' field in the editor and metadata view; I've commented out every place I can find fileDecompressionTechnique or 'File decompression technique' in the core-Geonetwork repo (I'm building 4.4 snapshot from source), flushed browser caches, restarted Geonetwork, and it still keeps showing up in the UI.

How can I configure the metadata entry form and presentation pages?

fxprunayre commented 9 months ago

Groovy formatter support has been removed in https://github.com/geonetwork/core-geonetwork/pull/7346 (the doc need an update on this).

For the metadata entry form check https://docs.geonetwork-opensource.org/4.2/customizing-application/editor-ui/tutorial/ and https://docs.geonetwork-opensource.org/4.2/customizing-application/editor-ui/creating-custom-editor/

For new XSLT formatter you can look at https://github.com/geonetwork/core-geonetwork/tree/main/schemas/iso19115-3.2018/src/main/plugin/iso19115-3.2018/formatter