LP#1234220 Improve hold/copy ratio renewal messages
authorBill Erickson <berickxx@gmail.com>
Fri, 6 Mar 2015 16:04:01 +0000 (11:04 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 6 Mar 2015 16:31:50 +0000 (11:31 -0500)
commit99400bddac93b523215b8fac76b61e5ec2492025
tree00375c0dccace57a3d95271b4873623ceaf5597f
parent32e6401588fc6b2d2b862865fdfab5c2e4a60fa4
LP#1234220 Improve hold/copy ratio renewal messages

Display friendlier messages in the TPAC and staff client client when a
hold/copy ratio rule prevents a renewal.

This creates top-level ILS events for total/avail hold copy ratios,
since that's what best works with the staff client.  The TPAC displays a
simple "item is needed for a hold" message, whereas the staff client
displays the raw event description, which is slightly more descriptive.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/extras/ils_events.xml
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/templates/opac/myopac/circs.tt2
Open-ILS/src/templates/opac/parts/hold_error_messages.tt2
Open-ILS/xul/staff_client/server/circ/util.js