geonetwork / geonetwork/core-geonetwork
Multiple issues with Contacts in Default (and List) metadata view
- Dominant language
- Java
- Stars
- 521
- Forks
- 514
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 19
Description
**Describe the bug**
The default metadata view "Contacts for Resource" and "Metadata information - Point of Contact" section have several related bugs (ISO 19115-3 metadata) -
1. When the contact is a `CI_Individual` rather than a `CI_Organisation`, no information is displayed. The circle is empty, but the popup shows information.

2. Clicking on the filter option in the contact popup returns no results

3. We have been asked that the placement of the Initial for the Contact in the circle be centred.
**To Reproduce**
Steps to reproduce the behaviour:
1. In GeoNetwork 4.2.x search for a ISO19115-3 metadata record containing `CI_Individual` contact information
2. Click on this record to view in "Default" mode
3. Scroll down to "Contact for the resource"
4. Click on a contact and and select "Focus on resources from (contact)"
**Expected behavior**
The desired "Default" metadata view would look like this -

When selecting "Focus on resources from (contact)", the resulting search should return something like this -

**Desktop (please complete the following information):**
- Browser - firefox, chrome, safari
- GeoNetwork Version 4.2.5
- Server Application - Tomcat 9 with Java 8
**Additional context**
We have applied the following fixes for your consideration -
1. To fix the lack of `CI_Individual` contact information displayed, we changed line 1287 in the schema plugin `iso19115-3.2018/index-fields/index.xsl` as follows -
```
Contributor guide
Research direction
Start with schema plugin iso19115-3.2018/index-fields/index.xsl, catalog/components/search/mdview/partials/contact.html, and catalog/components/utility/UtilityDirective.js. Reproduce the issue with an ISO19115-3 CI_Individual contact, then compare the supplied fixes against the indexing, contact filter, and initial alignment behavior. Done means all three behaviors work in Default and List views and the contact search returns matching resources.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript, xml
- Domain
- backend, frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100