try-catching any calls to hold reset reasons in circulation module so that it'll... user/lew/retargeter_hold_notes_geosort_squash
authorLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Mon, 26 Sep 2022 18:38:32 +0000 (14:38 -0400)
committerLlewellyn Marshall <llewellyn.marshall@ncdcr.gov>
Fri, 3 Mar 2023 14:36:38 +0000 (09:36 -0500)
commita21d4371adb25b772943f7e1944e7a420998c921
tree6b53a5c944aedf91fc698e98599b6b365cb3b5b3
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 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.

geosort

merge vincinity stuff into geo app, revert changes to admin page component, fix syntax error in statement to create SQL

add call to geo from actor like how the retrieve coordinates works

get distance divisor from config global flags and divide shipping
distance by it to get copy score.

change from max_prox to max_prox+1 so retargeted copies always appear outside of initial list even if prox is 0.
38 files changed:
Open-ILS/examples/fm_IDL.xml
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/eg2/src/app/staff/admin/server/admin-server-splash.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/admin-server.module.ts
Open-ILS/src/eg2/src/app/staff/admin/server/org-unit-shipping-hub-distance.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
Open-ILS/src/extras/install/Makefile.debian-bullseye
Open-ILS/src/extras/install/Makefile.debian-buster
Open-ILS/src/extras/install/Makefile.debian-stretch
Open-ILS/src/extras/install/Makefile.fedora
Open-ILS/src/extras/install/Makefile.ubuntu-bionic
Open-ILS/src/extras/install/Makefile.ubuntu-focal
Open-ILS/src/perlmods/Build.PL
Open-ILS/src/perlmods/MANIFEST
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
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/Geo.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/HoldTargeter.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/CDBI/actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/dbi.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm
Open-ILS/src/perlmods/lib/OpenILS/Utils/VicinityCalculator.pm [new file with mode: 0644]
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/xxxx.function.ahcm_shipping_distance.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.hold_reset_reasons.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/xxxx.schema.actor_org_unit_shipping_hub.sql [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/library/core_info.tt2
Open-ILS/src/templates/staff/admin/actor/org_unit/t_main_tab.tt2
Open-ILS/tests/datasets/sql/assets_concerto.sql
Open-ILS/tests/datasets/sql/env_create.sql
Open-ILS/tests/datasets/sql/env_destroy.sql
Open-ILS/tests/datasets/sql/libraries.sql
Open-ILS/tests/datasets/sql/transactions.sql
Open-ILS/web/conify/global/actor/org_unit.html
Open-ILS/web/opac/locale/en-US/conify.dtd