LP#1398107: Alert when autodeleting a title with holds on it.
authorChris Sharp <csharp@georgialibraries.org>
Wed, 11 Mar 2020 23:33:15 +0000 (19:33 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Tue, 27 Oct 2020 19:39:18 +0000 (15:39 -0400)
commit0da0b3858d0ea14e29a63b7f4ff672559445a3f1
tree0882f3e0e58e4450e0df401af677755264045cde
parent5e85cc276497e1976ab49427515af0b0ffe8e853
LP#1398107: Alert when autodeleting a title with holds on it.

Add a new "TITLE_HAS_HOLDS" event that we pass up to the user
if any non-canceled, unfulfilled title hold targets a bib that
would otherwise be silently deleted with holds canceled.

Also, retarget any holds pointing to a bib that is automatically
deleted after removing its volumes/copies to the destination bib
if this is the last copy.

Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm