core-geonetwork icon indicating copy to clipboard operation
core-geonetwork copied to clipboard

Adding an associated resource to an existing one create two links instead of one

Open HueyNemud opened this issue 2 years ago • 1 comments

Describe the bug When adding a new associated resource (also on the calalog) to an existing resource, Geonetwork creates two duplicated links instead of one, the second being considered a link to an external catalog. Yet the two links have exactly the same URLs. Also, deleting one of the link removes both.

To Reproduce

  1. Edit the metadata of a resource
  2. Click on "Add associated resource"
  3. Add a relation to another resource from the catalog (tested with "source dataset" and "other resource").
  4. The "Associated resources" panel show two links to that resource instead of one

Expected behavior Only a single link to the associated resource should be created.

Screenshots E.g. https://catalog.geohistoricaldata.org/geonetwork/srv/eng/catalog.search#/metadata/6a48afcf-6bdc-4880-b2d6-dd8e557253c2 image Link to "Verniquet File" : https://catalog.geohistoricaldata.org/geonetwork/srv/api/records/697871b7-f663-4e0e-8785-c48ecfe05515 Link to "Verniquet File [external catalog] : https://catalog.geohistoricaldata.org/geonetwork/srv/api/records/697871b7-f663-4e0e-8785-c48ecfe05515

Desktop (please complete the following information):

  • Firefox 102.x
  • GeoNetwork 4.0.5 from the Docker image geonetwork:4.0.5

HueyNemud avatar Jul 19 '22 09:07 HueyNemud

Can't reproduce the issue on main. I don't remember any PR fixing that. Could you upgrade to 4.2.0 ?

fxprunayre avatar Jul 19 '22 09:07 fxprunayre

@HueyNemud Did the upgrade help? If so please close this issue. Thanks.

ThomasJunk avatar Jun 06 '23 14:06 ThomasJunk

@ThomasJunk Yes, I couldn't figure out the cause of this problem, but it magically disappeared in a later update. Closing this issue now, thank you for the reminder

HueyNemud avatar Jun 06 '23 17:06 HueyNemud