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>
Tue, 13 Mar 2012 18:11:38 +0000 (14:11 -0400)
commit33c848f7ca9fab55f72fc9c52ef84164ef3a7bd2
tree60eef57539a729d8db9421547b8cc564350d03fa
parent3f130f8da6ea736ad2bc9ac37c95d0a5819796bd
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