geonetwork / geonetwork/core-geonetwork

Multiple issues with Contacts in Default (and List) metadata view

Open
#8,237 0 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**
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.
![image](https://github.com/geonetwork/core-geonetwork/assets/1085756/3c0e6e30-5e0e-4c9f-8982-c5c6ab2a4edf)
2. Clicking on the filter option in the contact popup returns no results
![image](https://github.com/geonetwork/core-geonetwork/assets/1085756/cdcf86ea-6067-4635-9d68-358d6a0808ad)
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 -
![image](https://github.com/geonetwork/core-geonetwork/assets/1085756/4e073980-712d-45fd-b5de-e41e6826f1dc)

When selecting "Focus on resources from (contact)", the resulting search should return something like this -
![image](https://github.com/geonetwork/core-geonetwork/assets/1085756/ea459c96-afac-4393-9503-98c1439e54cb)

**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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.