Skip to content

Creating parent/child relationship does not work #9214

@atkinsn

Description

@atkinsn

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:

  1. Open record in edit (Simple view)
  2. Click on '+Link to parent' next to 'Parent metadata' in side panel (see screenshot below).
  3. The incorrect screen appears - 'Link a resouce to the current metadata' (see screenshot) not 'Link a parent metadata record' as in GN3.
  4. Choose a record to link, and save the record.
  5. 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

Image 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.4.1.0]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions