Commit f9cb4fe
LP#1954937: Provide both global and relative hold queue position
Generate the full, global (approximate) hold queue position for open
(not yet canceled or fulfilled) holds based on the rhrr table. Then,
provide just the in-result order among the peer-bib holds. This allows
users to choose which of the two is more appropriate for each use case
in their environment.
This uses a strategically place correlated LEFT JOIN LATERAL in the FROM
clause of the main query, rather than a CTE, in order to avoid
materialization of the full peer-hold map, and instead only gathering
the positional information for holds that are involved in the actual
result set.
The label for the existing relative_queue_position field is now
"Relative Queue Position", and the label for the new
global_queue_postion field is "Global Queue Postion".
Release-note: Provide both global and result-set-relative hold queue
position information, allowing staff to choose which is best for their
purposes in each hold-listing interface.
Signed-off-by: Mike Rylander <[email protected]>
Signed-off-by: blake <[email protected]>
Signed-off-by: Michele Morgan <[email protected]>1 parent 4063c9b commit f9cb4fe
File tree
7 files changed
+22
-6
lines changed- Open-ILS
- src
- perlmods/lib/OpenILS/Application/Storage/Publisher
- templates/staff
- cat/catalog
- circ
- holds
- patron
- web/js/ui/default/staff/circ
- holds
- patron
7 files changed
+22
-6
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2364 | 2364 | | |
2365 | 2365 | | |
2366 | 2366 | | |
| 2367 | + | |
| 2368 | + | |
2367 | 2369 | | |
2368 | 2370 | | |
2369 | | - | |
2370 | | - | |
| 2371 | + | |
| 2372 | + | |
2371 | 2373 | | |
2372 | 2374 | | |
2373 | 2375 | | |
| |||
2422 | 2424 | | |
2423 | 2425 | | |
2424 | 2426 | | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
2425 | 2434 | | |
2426 | 2435 | | |
2427 | 2436 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
0 commit comments