From: Bill Erickson Date: Mon, 2 Apr 2012 17:18:18 +0000 (-0400) Subject: Revert "Org unit sibling display sort order" X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0fa65039f42dd1abd142a60b589ff589b14f05cd;p=contrib%2FConifer.git Revert "Org unit sibling display sort order" This reverts commit dee33cc9da90762dea9b9aa13190c65e80f07577. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 8de132df5d..c9357baab5 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -4944,7 +4944,6 @@ SELECT usr, - diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm index aa0be426f2..f46587f551 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm @@ -87,7 +87,7 @@ sub init_ro_object_cache { { parent_ou => undef}, { flesh => -1, flesh_fields => {aou => ['children']}, - order_by => {aou => 'sibling_order, name'} + order_by => {aou => 'name'} } ])->[0]; diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql index 2a4429c4da..4f9f39b49e 100644 --- a/Open-ILS/src/sql/Pg/005.schema.actors.sql +++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql @@ -295,8 +295,7 @@ CREATE TABLE actor.org_unit ( email TEXT, phone TEXT, opac_visible BOOL NOT NULL DEFAULT TRUE, - fiscal_calendar INT NOT NULL DEFAULT 1, -- foreign key constraint to be added later - sibling_order INT NOT NULL DEFAULT 0 + fiscal_calendar INT NOT NULL DEFAULT 1 -- foreign key constraint to be added later ); CREATE INDEX actor_org_unit_parent_ou_idx ON actor.org_unit (parent_ou); CREATE INDEX actor_org_unit_ou_type_idx ON actor.org_unit (ou_type); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_opac_vis_and_sorting.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_opac_vis_and_sorting.sql index d38728035d..115613ab6f 100644 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_opac_vis_and_sorting.sql +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.org_unit_opac_vis_and_sorting.sql @@ -14,19 +14,11 @@ INSERT INTO config.global_flag (name, enabled, label) ) ); -ALTER TABLE actor.org_unit ADD COLUMN - sibling_order INTEGER NOT NULL DEFAULT 0; - -ALTER TABLE auditor.actor_org_unit_history ADD COLUMN - sibling_order INTEGER NOT NULL DEFAULT 0; - COMMIT; /* UNDO BEGIN; DELETE FROM config.global_flag WHERE name = 'opac.org_unit.non_inheritied_visibility'; -ALTER TABLE actor.org_unit DROP COLUMN sibling_order; -ALTER TABLE auditor.actor_org_unit_history DROP COLUMN sibling_order; COMMIT; */