]> git.evergreen-ils.org Git - Evergreen.git/commit
Org unit sibling display sort order
authorBill Erickson <berick@esilibrary.com>
Mon, 12 Mar 2012 18:11:47 +0000 (14:11 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 2 Apr 2012 16:15:49 +0000 (12:15 -0400)
commitdee33cc9da90762dea9b9aa13190c65e80f07577
treeddeb25396e5b5ddb9e5f060926f1173cf1bcf631
parent1b7c563166d60ddee4a9c507f3eded07bc5e70c0
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>
Signed-off-by: Mike Rylander <mrylander@gmail.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