Bug 7257: Add a link to remove an individual title from a list in the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Fri, 2 Aug 2013 18:25:37 +0000 (14:25 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 7 Aug 2013 14:45:21 +0000 (14:45 +0000)
commitcf902c704ba9b0560bc8ff2006fe5763ffa2a090
tree7539398d3bc8f68dc9087e297a6a31236c3e3b49
parent05019c13607908689581285abc39735923a564f5
Bug 7257: Add a link to remove an individual title from a list in the OPAC

It should be possible when viewing the contents of a list to click a
link to remove an individual title from the list without having to check
a checkbox and click another button.

This patch adds a link to each list item to "Remove from this list."
The functionality is JavaScript-dependent, automatically checking the
appropriate checkbox and submitting the form to delete.

To test, view a list for which you have delete permission. There should
be a "Remove from this list" link next to each item on the list. Test
delete functionality by:

- Clicking the link and then clicking cancel.
- Clicking the link and confirming.
- Checking more than one checkbox and then clicking a single remove
  link (only the one corresponding record should be removed).
- Checking one or more checkboxes and clicking the "Remove from list"
  link at the top of the page.

If JavaScript is disabled the links should not appear.

There are now two delete confirmation messages: One if you're removing
only one item, another if you're removing more than one. This is true
whether you use the links or the checkboxes.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt