geonetwork / geonetwork/core-geonetwork
Tooltips in table field display incorrect message for cit:party/*/cit:name
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):
- Go to 'Contribute->Add new record'
- Click on 'Template for geographical data' and click '+ Create"
- Click the 'Tooltips' checkbox under the Eyeball in the menubar
- Scroll down to 'Point of contact' in the new record and click on the 'Organisation' textfield
- 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">'
- Expected value should come from '<element name="cit:name" context="cit:CI_Organisation(" id="376.0">'
Screenshots
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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