Open tylerjmchugh opened 1 month ago
The problem is related to this default value metadata
for the selection bucket, that is used in the metadata page when retrieving the metadata information:
While in the search page, the metadata is added to the selection bucket named s101
.
@fxprunayre what is the metadata
bucket used for? I assume should be unified the value?
what is the metadata bucket used for? I assume should be unified the value?
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:
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 closeRecord
function), the search page is displayed including the deleted metadata.
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):