Custom Org Tree : Admin UI honors "activate" on new trees
Previously, activating a new tree would work, but the UI did not update
to reflect it. Now the activate link correctly turns into a de-activate
link and vice versa.
Signed-off-by: Bill Erickson <email address hidden>
Signed-off-by: Mike Rylander <email address hidden>
TPac: non-inherited org unit visibility : hide copy counts
Avoid showing copy counts for non-opac-visible org units in the search
results and record details page. This is important when the
'opac.org_unit.non_inheritied_visibility' global flag is enabled, as org
units along the tree may be non-visible.
Signed-off-by: Bill Erickson <email address hidden>
Signed-off-by: Mike Rylander <email address hidden>
New UI for managing custom org unit trees. (Only OPAC is supported for
now). Custom trees default to the same shape as the full org unit tree.
Staff can remove nodes and re-order nodes. Staff can also replace
deleted nodes by dragging them from the reference tree on the left.
Admin -> Server Admin -> Custom Org Unit Trees
Signed-off-by: Bill Erickson <email address hidden>
Signed-off-by: Mike Rylander <email address hidden>
If configured and active, the tpac will now use the custom 'opac' tree
for the org unit selectors. This will be true in both the public
catalog and the staff client catalog. The staff client catalog will
continue to display hidden org units.
If the opac.org_unit.non_inheritied_visibility global flag is set, the
public catalog will display child nodes of hidden org units in the
custom tree.
Signed-off-by: Bill Erickson <email address hidden>
Signed-off-by: Mike Rylander <email address hidden>
Support for building custom org unit hierarchies for display purposes.
Initially, this is meant to support custom OPAC trees, but the design
leaves from for other types of trees.
The only restrictions to custom org trees is that no org unit appear
more once and that they in fact be tree-shaped. Otherwise, any node
can be the parent/child of any other node, regardless of ou_type, etc.
Signed-off-by: Bill Erickson <email address hidden>
Signed-off-by: Mike Rylander <email address hidden>