Revert "Org unit sibling display sort order"
authorBill Erickson <berick@esilibrary.com>
Mon, 2 Apr 2012 17:18:18 +0000 (13:18 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 2 Apr 2012 17:23:15 +0000 (13:23 -0400)
This reverts commit dee33cc9da90762dea9b9aa13190c65e80f07577.

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

index 8de132d..c9357ba 100644 (file)
@@ -4944,7 +4944,6 @@ SELECT  usr,
                        <field reporter:label="Resource Attributes" name="rsrc_attrs" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Attribute Values" name="attr_vals" oils_persist:virtual="true" reporter:datatype="link"/>
                        <field reporter:label="Hours of Operation" name="hours_of_operation" oils_persist:virtual="true" reporter:datatype="link"/>
-                       <field reporter:label="Sibling Sort Order" name="sibling_order" reporter:datatype="int"/>
                </fields>
                <links>
                        <link field="billing_address" reltype="has_a" key="id" map="" class="aoa"/>
index aa0be42..f46587f 100644 (file)
@@ -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];
 
index 2a4429c..4f9f39b 100644 (file)
@@ -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);
index d387280..115613a 100644 (file)
@@ -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;
 */