]> git.evergreen-ils.org Git - working/Evergreen.git/commit
TPac: non-inherited org unit visibility
authorBill Erickson <berick@esilibrary.com>
Mon, 12 Mar 2012 16:22:22 +0000 (12:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 2 Apr 2012 16:15:35 +0000 (12:15 -0400)
commit1b7c563166d60ddee4a9c507f3eded07bc5e70c0
treed08f00691adea09153d07eb691c63f1b1728cd99
parent37b324f53adb4fb90fe17ada72d44fca1d606e9f
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>
Signed-off-by: Mike Rylander <mrylander@gmail.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