Skip to content
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

implement multi-select operations in collection management #233

Open
abartov opened this issue Jan 24, 2024 · 1 comment
Open

implement multi-select operations in collection management #233

abartov opened this issue Jan 24, 2024 · 1 comment
Assignees
Labels

Comments

@abartov
Copy link
Owner

abartov commented Jan 24, 2024

In manage_collection view, allow toggling a multi-select mode that would allow, with either checkboxes or click-to-select-and-highlight, to select multiple items, including across sub-collections and including sub-collections themselves, and to then perform an operation on all selected/highlighted items.

The operations are:

@damisul
Copy link
Collaborator

damisul commented Dec 19, 2024

Hi @abartov
Here is a PR for a first part: added ability to select multiple items and do batch removal from collections/manage page: #454

As for batch dragging there are some issues...
As far as I see standard jquery-ui Sortable plugin does not supports batch dragging.

I've found some hacks in net to achieve this (e.g. https://stackoverflow.com/questions/5596748/sort-multiple-items-at-once-with-jquery-ui-sortable) and there is a third-party Multisortable plugin https://github.com/shvetsgroup/jquery.multisortable but I failed to quickly get them working. I see two possible areas for investigation:

  • we use pretty complex html layout with a lot of scripting, so it can cause some issues (actually this is the reason why I've implemented multiselect on my own instead of using jQuery-UI selectable)
  • those hacks and plugin were created several years ago, so there could be some compartibility issues related to browser/jQuery versions.

Not sure if we can resolve them quickly. Should I invest more time in multiitem-dragging support?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants