LP#1795906: Allow more configuration of queue position calculation user/miker/lp1795906-hold_queue_pos_by_depth
authorMike Rylander <mrylander@gmail.com>
Tue, 22 Jan 2019 16:45:54 +0000 (11:45 -0500)
committerMike Rylander <mrylander@gmail.com>
Tue, 22 Jan 2019 16:45:54 +0000 (11:45 -0500)
commitfc8a13094f0b48a0fb9f96f916d950ac6f342f1b
tree77e6561a56da814645a876d258f749d5b6e18eb5
parent99d2c43411f96082046f00362cb8e60ca53806ff
LP#1795906: Allow more configuration of queue position calculation

Here we convert the global flag to a YAOUS that allows each library to specify
a "sharing depth" for hold queue position as shown to the patron.  Staff
retain direct control over the context of this calculation by means of an org
selector in the relevant UIs.

Values of note for the YAOUS:
 * Completely unset: restrict peer holds to the context hold's pickup library
 * Depth == 0: Treat all holds as queue peers, regardless of pickup library

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql