Add new db column to school table and reference in interface.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
<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>
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',
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);