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

New thesaurus - metadata record doesn't pass schema and INSPIRE validation #4610

Open ghost opened 4 years ago

ghost commented 4 years ago

Describe the bug After picking the values from a thesaurus imported via "New thesaurus" option in Classification Systems metadata record is not schema and INSPIRE valid.

To Reproduce Steps to reproduce the behavior:

  1. Set German as UI language
  2. create New thesaurus
  3. Add two values (both in English and German) in the created thesaurus
  4. import schema and INSPIRE valid metadata record: https://raw.githubusercontent.com/inspire-eu-validation/community/master/examples/Dataset_metadata_2.0_example
  5. Add new thesaurus and choose both values in the keyword picker
  6. Export metadata record as XML
  7. Validate the record in INSPIRE Validator http://inspire.ec.europa.eu/validator/v2/TestRuns/EIDf1882213-3d26-4620-8f40-9846fb297b85.html

Expected behavior Metadata record must be schema and INSPIRE valid.

Example metada record for import in INSPIRE Validator https://vanilla.geocat.net/geonetwork/srv/eng/catalog.search#/metadata/123e4567-e89b-12d3-a456-426655440000

Screenshots grafik

ghost commented 4 years ago

This issue might be related to https://github.com/geonetwork/core-geonetwork/issues/3860.

pvgenuchten commented 4 years ago

@DeordD can you share the xml created, it seems the title and/or date element is not added by this wizard, they are required elements

ghost commented 4 years ago

@pvgenuchten:

Case 1: UI language - German; Thesaurus language - German:

grafik

Case 2: UI language - Englisch; Thesaurus language - Englisch:

grafik

P.S. Test was done in Vanilla 3.10.3 SNAPSHOT. Metadata records are also published there: https://vanilla.geocat.net/geonetwork/srv/eng/catalog.search#/search?resultType=details&sortBy=relevance&fast=index&_content_type=json&from=1&to=20&any=4610

ghost commented 4 years ago

This problem only occurs when creating thesaurus using following option: grafik

Metadata record is schema-valid when thesaurus is imported from INSPIRE Registry.