Org unit sibling display sort order
authorBill Erickson <berick@esilibrary.com>
Mon, 12 Mar 2012 18:11:47 +0000 (14:11 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 12 Mar 2012 20:01:36 +0000 (16:01 -0400)
commit03fc438f7ad32e5fb5e2fdcb132f0f947ba33e4e
tree2945b9d2063134bef8e0763e662ed59765b63581
parente2db081d06017d18e190fe3142ee4796334be5d3
Org unit sibling display sort order

Adds a new "sibling_order" column to actor.org_unit which specifies the
order in which an org unit should be sorted as compared to its sibling
org units in org unit trees.

This commit adds the IDL/DB components.  It also updates the tpac and
the generic get_org_tree API.  (Note, a follow-up commit will be pushed
to remove some deprecated / reduntant org tree retrievals).

Note that the sibling_order values do not have to be unique within each
set of siblings.  The org unit name is still used as a tie-breaker sort,
so if the sort order is left unset (i.e. all values are 0), org units
will fall back to name-only sorting.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
Open-ILS/src/sql/Pg/005.schema.actors.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_opac_vis_and_sorting.sql