TPac: non-inherited org unit visibility
authorBill Erickson <berick@esilibrary.com>
Mon, 12 Mar 2012 16:22:22 +0000 (12:22 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 30 Mar 2012 13:09:34 +0000 (09:09 -0400)
commita36d62899643ee1da25e9cceff24ccd696c78ad9
tree3f2b6b812906988ecfc55f33bf8ace6eafcbaf4b
parent6508510e74b62a78eb3b29ac7ea98741e522b91a
TPac: non-inherited org unit visibility

Adds support for displaying org units that are children of hidden org
units in the tpac org unit selector.  A new global flag was added to
control this behavior called "opac.org_unit.non_inheritied_visibility" /
"Org Units Do Not Inherit Visibility".

To avoid confusion / distorted org unit trees, children of hidden org
units are left-padded one less for each hidden parent org unit.  For
example, in the stock org tree, if Sys2 is opac_visible=false (and the
global flag is enabled), the tree in the tpac would appear like so:

Cons
- Sys 1
-- BR1
--- SL1
-- BR2
- BR3
- BR4

Similarly, if CONS was also hidden, the whole tree would be shifted left
by 1 pad depth.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_opac_vis_and_sorting.sql [new file with mode: 0644]
Open-ILS/src/templates/opac/parts/org_selector.tt2