-
- Notifications
You must be signed in to change notification settings - Fork 504
Description
Describe the bug
When selecting 'link to parent' in the UI, instead of providing 'Link a parent metadata record to the current metadata', it wrongly provides 'Link a resource to the current metadata'. The association type (which cannot be changed) is 'part of seamless database' - which is not correct for parent/child relationships, nor does the parent metadata tag get added to the xml (e.g. <mdb:parentMetadata uuidref="a35d02d7-3bd2-40f8-b982-a0e30b64dc40"/>)
To Reproduce
Steps to reproduce the behavior:
- Open record in edit (Simple view)
- Click on '+Link to parent' next to 'Parent metadata' in side panel (see screenshot below).
- The incorrect screen appears - 'Link a resouce to the current metadata' (see screenshot) not 'Link a parent metadata record' as in GN3.
- Choose a record to link, and save the record.
- A parent link is not generated, but an associated resource is. This is not a parent/child relationship.
<mri:associatedResource> <mri:MD_AssociatedResource> <mri:associationType> <mri:DS_AssociationTypeCode codeList="http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#DS_AssociationTypeCode" codeListValue="partOfSeamlessDatabase"/> </mri:associationType> <mri:metadataReference uuidref="8a780563-ef84-4c3c-b367-88832cc3a8ab" xlink:href="https://geonetwork-metatest.edge.aodn.org.au/geonetwork/srv/api/records/8a780563-ef84-4c3c-b367-88832cc3a8ab"/> </mri:MD_AssociatedResource> </mri:associatedResource>Expected behavior
A parent link is generated in the record.
<mdb:parentMetadata uuidref="a35d02d7-3bd2-40f8-b982-a0e30b64dc40"/>
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.4.1.0]
Additional context
Add any other context about the problem here.