]> git.evergreen-ils.org Git - 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 17:39:01 +0000 (13:39 -0400)
commitd047646aff7f5aca23ac2a86422e3c869ea3d405
treeebd60a058e3d069c3f0863ea737cd9b290c04046
parent1257ffe6071a2f9d77bb877f0fd6506edb88c11f
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