-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batch selection is not in sync between search results and record view #8295
Comments
The problem is related to this default value
While in the search page, the metadata is added to the selection bucket named @fxprunayre what is the |
Indeed, we should use the same bucket id to put elements in the same selection. |
I tested implementing the solution of using s101 for both search and record view. This seems to solve the issue of the checkbox being initially set incorrectly on the record view page. However, updating the checkbox value on the record view still does not update the search view after clicking "Back to search". Is there an additional refresh that needs to be done upon clicking the "Back to search" button to persist these changes from record view to search? |
It seems executing: core-geonetwork/web-ui/src/main/resources/catalog/views/default/module.js Lines 307 to 309 in b874f86
That seems restoring the history and doesn't trigger the search. I'm not really sure yet that from that code we can trigger it as requires the SearchFormDirective, not available there. The same problem happens when you delete a metadata in the metadata page (calls also the same I think the "Back to search" should trigger the last search, not using the history, to make sure it shows the latest results, not some old local cached stuff. But it's a bit unclear how to trigger a search when clicking that button. |
Describe the bug
The batch selection is not in sync between search results and record view. The UI should be updated on both when the selection is updated from one.
To Reproduce
Steps to reproduce the behavior:
OR
Expected behavior
After checking the "Add to the selection" checkbox from the record view and returning to the search results, the selection on the search results page should be updated without a page refresh.
AND
After adding the current record to the selection from the search results page, the "Add to the selection" checkbox state and label should display correctly within the record view.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: