LP#1729934 Webstaff display org-scoped penalties user/berick/lp1729934-webstaff-penalty-scope-repairs
authorBill Erickson <berickxx@gmail.com>
Thu, 29 Mar 2018 21:06:16 +0000 (17:06 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 29 Mar 2018 21:15:14 +0000 (17:15 -0400)
commitf08f76b8370d338df389cddc6d3aafe2486f2f71
tree450ccecf68fe2e2f769e83180712e93ccb6a50c4
parent6fe47554e37aa0469b8566f2cf171a258fd93d4e
LP#1729934 Webstaff display org-scoped penalties

Consistent with the XUL client, only display patron standing penalties
(AKA Messages) that are linked to an org unit which is an ancestor,
matching, or descendant org unit of the workstation (e.g. the full
path).

To test:

[1] Create a patron Message which applies to a branch using a branch or
null-depth penalty (e.g. at BR1).

[2] Create a second message that links to the root org unit (e.g. CONS)
via depth=0 penalty.

[2] Log out and back in to the browser client at a workstation under a
different section of the org unit tree (e.g. BR3) and confirm the
Messages created at BR1 do not display, but the messages created at CONS
do.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/patron/app.js