LP1902939 Add Internet Access Level to School
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 8 Jul 2021 20:44:36 +0000 (16:44 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 19 Nov 2022 20:08:07 +0000 (15:08 -0500)
Add new db column to school table and reference in interface.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/examples/fm_IDL.xml
Open-ILS/src/eg2/src/app/staff/admin/server/routing.module.ts
Open-ILS/src/sql/Pg/600.schema.student_card.sql

index e3337a2..a583894 100644 (file)
@@ -15683,11 +15683,13 @@ SELECT  usr,
                        <field name="addr_post_code"    reporter:datatype="text"     reporter:label="School Address Postal Code"/>
                        <field name="eg_perm_group"     reporter:datatype="link"     reporter:label="Permission Profile" oils_obj:required="true"/>
                        <field name="home_ou"           reporter:datatype="link"     reporter:label="Home Library" oils_obj:required="true"/>
+            <field name="net_access"        reporter:datatype="link"     reporter:label="Internet Access Level"/>
                </fields>
         <links>
             <link field="district_id" reltype="has_a" key="id" map="" class="scd"/>
             <link field="eg_perm_group" reltype="has_a" key="id" map="" class="pgt"/>
             <link field="home_ou" reltype="has_a" key="id" map="" class="aou"/>
+            <link field="net_access" reltype="has_a" key="id" map="" class="cnal"/>
         </links>
                <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
                        <actions>
index 99a0303..2f76675 100644 (file)
@@ -75,7 +75,7 @@ const routes: Routes = [{
     data: [{
         schema: 'student_card',
         table: 'district',
-        fieldOrder: 'id,active,name,code,contact_name,contact_email,file_dir,exceptions_dir,state_id'
+        fieldOrder: 'id,active,name,code,contact_name,contact_email,file_dir,exceptions_dir,state_id,net_access'
     }]
 }, {
     path: 'student_card/school',
index 98f1a4a..499f140 100644 (file)
@@ -29,7 +29,8 @@ CREATE TABLE student_card.school (
     addr_state          TEXT,
     addr_post_code      TEXT,
     eg_perm_group       INTEGER NOT NULL REFERENCES permission.grp_tree (id),
-    home_ou             INTEGER NOT NULL REFERENCES actor.org_unit (id)
+    home_ou             INTEGER NOT NULL REFERENCES actor.org_unit (id),
+    net_access          INTEGER NOT NULL REFERENCES config.net_access_level (id)
 );
 CREATE UNIQUE INDEX student_card_school_state_id_idx ON student_card.school (district_id, state_id);