]> git.koha-community.org Git - koha.git/commit
Bug 37150: Can't delete single title from a list using the "Remove from list" link 24.05.x
authorOwen Leonard <oleonard@myacpl.org>
Mon, 24 Jun 2024 14:46:36 +0000 (14:46 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 9 Oct 2024 22:07:40 +0000 (22:07 +0000)
commitb5daaf54fefb4b9b76535a5e3c23fbc41795caba
tree2c6d69f861ce32c32360fc74ebc3eb3a9ebc3bc6
parent2d038cfda56a01f453fe7fb7397cf6e44b1ff7f8
Bug 37150: Can't delete single title from a list using the "Remove from list" link

In the OPAC display of titles on a list, the "Remove from list" control
needs to trigger a POST operation instead of GET. This patch
appends a form for handling single entry deletions, populating
the hidden input upon confirmation.

To test, apply the patch and create a list if necessary, adding multiple
titles to it.

- View the contents of your list.
- Each title on your list should have a "Remove from this list" link.
  - Click one of these. You should see a modal confirmation, "Are you
    sure you want to remove this item from the list?"
    - Confirming should delete the title form the list.
  - Check multiple checkboxes in the list of titles and click "Remove
    from list" at the top of the list.
    - You should see a modal confirmation, "Are you sure you want to
      remove these items from the list?"
      - Confirming should result in all checked titles being removed
        from the list.
  - Check one or more checkboxes and then click a single "Remove from
    list" link. After confirming, you should find that only the one
    title was removed from the list.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Eric Garcia <cubingguy714@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit ace488e50f67dfa0986c3dba3e9b85c911539ac1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt