]> git.koha-community.org Git - koha.git/commit
Bug 5790 - Prevent deletion of records with holds
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 30 Jan 2013 16:36:38 +0000 (11:36 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 24 Apr 2013 08:41:14 +0000 (20:41 +1200)
commit2e757c4b78d75f02881a654b9f40a73aba2ce368
tree4c7ca99c3f07a7e2efe6b1c3049d08f8c75767ee
parent5cadea611423181099506938e9f206743766a88d
Bug 5790 - Prevent deletion of records with holds

Test Plan:
1) Apply patch
2) Create a record
3) Create an item for the record
3) Place a hold on the bib
4) Attempt to 'Delete all items', you should recieve
   an error message stating to delete all holds before
   deleting all items.

Also, it is possible to get into a situation where a record has
holds but no items. In this situation, it is not possible to
view/delete the holds without adding an item back to the record.
In this case, attempting to delete the bib causes a warning, but
does not prevent deletion.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Passes tests - do note that it was a design decision to leave the delete links clickable even though they are grey.
The reasoning is that librarians will want to be able to know *why* they cannot delete a given item or bib - I like this.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
catalogue/ISBDdetail.pl
catalogue/MARCdetail.pl
catalogue/detail.pl
catalogue/imageviewer.pl
catalogue/labeledMARCdetail.pl
catalogue/moredetail.pl
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc