geonetwork / geonetwork/core-geonetwork

Tooltips in table field display incorrect message for cit:party/*/cit:name

Open
#8,630 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
521
Forks
515
Avg merge
6d 13h
Merged PRs (30d)
19

Description

Describe the bug
When editing an ISO19115-3 record in GN4.2.5, the tooltip text displays the wrong text for cit:party/*/cit:name - both for cit:CI_Organisation and cit:individual. Instead, it displays the value for '<element name="cit:name" context="cit:CI_OnlineResource" id="409.0">'

To Reproduce
Steps to reproduce the behavior (in an unmodified GN4.2.5):

  1. Go to 'Contribute->Add new record'
  2. Click on 'Template for geographical data' and click '+ Create"
  3. Click the 'Tooltips' checkbox under the Eyeball in the menubar
  4. Scroll down to 'Point of contact' in the new record and click on the 'Organisation' textfield
  5. See error in the value of text in tooltips being the value from labels.xml '<element name="cit:name" context="cit:CI_OnlineResource" id="409.0">'
  6. Expected value should come from '<element name="cit:name" context="cit:CI_Organisation(" id="376.0">'

Screenshots

Image

Log file
If applicable, add the server log file to help trace your problem.

Desktop (please complete the following information):

  • Browser Firefox
  • GeoNetwork Version 4.2.5
  • Server Application - Tomcat 9 with Java 8

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the tooltip issue through Contribute → Add new record using the geographical data template, then inspect the tooltip lookup and the relevant labels.xml entries for cit:name. Compare the cit:CI_Organisation and cit:individual contexts with the incorrectly selected cit:CI_OnlineResource value; done means each Point of contact field shows its context-specific tooltip.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.