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)
committerJason Stephenson <jason@sigio.com>
Mon, 30 Nov 2020 18:18:36 +0000 (13:18 -0500)
commitaca6cae69f77a7eae494bbf1f34ac6ce5eef2fbd
treed68b57d2522fa7ccc1c8753b42c22bc0d2218bc3
parentc491e97a954430ae57d99b44b0cd086a4d529828
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>
Signed-off-by: Jason Stephenson <jason@sigio.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