try-catching any calls to hold reset reasons in circulation module so that it'll... user/lew/retargeter-hold-notes-3-9-0
authorLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Mon, 26 Sep 2022 18:38:32 +0000 (14:38 -0400)
committerLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Tue, 21 Feb 2023 17:13:53 +0000 (12:13 -0500)
commitc580e1d4b6d6ca203970f57c086167415fb926b1
tree8f556d01326656f47f1d81313e196a01744f89b2
parent8d9f9280da10a5e2211e083c331b300141196e53
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 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.

fix tab issues.
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]