geonetwork / geonetwork/core-geonetwork

Inspire keywords not found when changing language

Open
#7,534 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
521
Forks
514
Avg merge
6d 13h
Merged PRs (30d)
19

Description

**Describe the bug**
When switch between languages while editing records, the INSPIRE keyword saved in French is not recognized in English version.

**To Reproduce**
Steps to reproduce the behavior:
1. Remove all languages except French in `Settings > Language and translations` and `Settings > User Interface > Top toolbar > List of languages`
2. Import a record and add an INSPIRE keyword like `Adresses` (shows in French correctly).
3. Re-add English in configuration and switch to it.
4. Edit the record (should already display the error) and save it directly.
5. Even if anchor is selected, it doesn't work.

**Expected behavior**
Should at less recognize a metadata record with an anchor link independently of the lang.

E.g : the following anchor in english
`Addresses`

Should be recognize in a monolanguage environment.

**Screenshots**
![image](https://github.com/geonetwork/core-geonetwork/assets/39771412/9b115bf8-7b3e-4803-847f-67d193d46a6a)

**Desktop (please complete the following information):**
- Browser: Chrome
- GeoNetwork Version : 4.2.7
- Server Application : Jetty with Java 11

Contributor guide

Open the contributing guide

Research direction

Reproduce the language-switching workflow in Settings > Language and translations and the record editor using the French INSPIRE keyword “Adresses” and its English anchor. Trace the metadata validation path that handles INSPIRE keyword anchors across languages; done when the saved anchor is recognized and the record can be edited and saved in a monolingual English environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.