Remember sort order in task, user and project list
Currently, when working with the task, user and project list only the pagination is preserved when editing something and going back to the respective list. This is achieved via an URL parameter keepPagination that is added when navigating to the task, user or project list page. With pull request #5358, a new mechanism was introduced (based on the Primefaces property multiViewState) that can be used to preserve both the sort order and pagination state.
This ticket proposes to apply these changes also to the task, user and project list.
Tasks
- [ ] Add
multiViewState={true}to the DataTable components of the user, task, project lists - [ ] Remove the
keepPaginationurl parameter and logic - [ ] Reset the multi view state via
PrimeFaces.current().multiViewState().clear(...)whenever appropriate (e.g. when navigating via the main menu) - [ ] Add selenium tests to check that sort order is remembered correctly
Hello, @thomaslow I would like to contribute.
Hi @DevPJ9, welcome to Kitodo. Please feel free to open a pull request if you want to participate in the development of Kitodo.Production. You can some coding guidelines https://www.kitodo.org/fileadmin/groups/kitodo/Dokumente/Kitodo_Developer_Guidelines_2017-06.pdf