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

Returning to the editor board from the create metadata or metadata import pages displays empty results.

Open josegar74 opened this issue 1 year ago • 0 comments

Describe the bug Returning to the editor board from the create metadata or metadata import pages displays empty results.

To Reproduce Steps to reproduce the behavior:

  1. Login as administrator and load the iso19139 sample metadata.
  2. Go to the Editor Board --> results are displayed
  3. Select the option Create metadata and then in the Contribute menu the Editor board --> results are displayed
  4. Repeat the previous step (with the Create metadata or import metadata page) --> No results are displayed

Expected behavior The results are displayed.

Additional context The issue is related to this code:

https://github.com/geonetwork/core-geonetwork/blob/955448ff870d8f8bd2918774a8e9996c0e6091ef/web-ui/src/main/resources/catalog/components/search/searchmanager/SearchFormDirective.js#L333

The search url is stored, the first time (step 3) probably empty and it works, but doing the step again (4) causes that the search is not issued.

@fgravin I see you added this code, long time ago. Can you review it to check if removing this code could cause any unwanted issue. I did some checks and apparently not, solving the issue described.

josegar74 avatar Jul 10 '23 11:07 josegar74