]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP#1795906: new global flag to toggle use of pickup lib in hold queue calculation user/gmcharlt/lp1795906_hold_queue_position
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 5 Oct 2018 19:33:03 +0000 (15:33 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 5 Oct 2018 19:33:03 +0000 (15:33 -0400)
commit99d2c43411f96082046f00362cb8e60ca53806ff
tree8de314831613c05fa7f74317d735d259ebc2c1ea
parenta242104a70179c3980a929bdaa1f9a4a4952efd5
LP#1795906: new global flag to toggle use of pickup lib in hold queue calculation

This patch adds a new global flag, circ.holds.queue_position_relative_to_pickup_lib,
to control whether or not the pickup library is used to restrict the set of
holds constituting the queue that a given hold belongs to. When this flag is
enabled (as it is by default), the queue includes only holds with the same
pickup library. If the flag is not enabled, the previous behavior of including
all relevant holds in the entire consortium is used instead.

This flag is provided in cases where material is broadly shared among the
entire consortium and few of the options to have holds prefer to be
filled locally are in force. In that case, to display a queue position
relative to the pickup library may cause patrons to think that their
requests will be filled significantly sooner than they should expect.

To test
-------
[1] Create five holds on one title for five different patrons, with the
    first with pickup library BR1 and the last with pickup library BR2.
[2] View the hold in the My Account page for the fifth patron. The hold
    should display as #5.
[3] Apply the patch and repeat step 2. The hold should display as #1.
[4] Disable the new global flag. The hold should display as #5 again.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql