try-catching any calls to hold reset reasons in circulation module so that it'll...
authorLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Mon, 26 Sep 2022 18:38:32 +0000 (14:38 -0400)
committerLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Thu, 16 Mar 2023 17:00:24 +0000 (13:00 -0400)
commitffe3dcc83fb86e9562e3d38dcf3fe683d43c1123
tree4c3b118323fec40b010b8bc209e838517afafe2e
parent7556efa2e7add4ff0415db0ac1e7e2b3184306bb
try-catching any calls to hold reset reasons in circulation module so that it'll never cancel a checkin/checkout.

sql for reset reasons

make proximity adjustments based on reset reasons if circ.holds.retarget_previous_targets_interval greater than 0. For each previous copy on a hold, reset reasons with MANUAL_RESET will increase the proximity by an amount equal to the maximum proximity + 1 while TIMED_OUT will apply a +1 prox adjustment per occurence within that interval.

log retarget only if it was successful

Don't create reset reason in hold targeter if hold arg is defined. Try catch any errors from hold reset note in hold-targeter application. run reset reason entry search within eval in case of failure.
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/HoldTargeter.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm
Open-ILS/src/sql/Pg/upgrade/xxxx.hold_reset_reasons.sql [new file with mode: 0644]