3 SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
5 CREATE TABLE asset.course_module_course (
8 course_number TEXT NOT NULL,
10 owning_lib INT REFERENCES actor.org_unit (id),
11 is_archived BOOLEAN NOT NULL DEFAULT false;
14 CREATE TABLE asset.course_module_course_users (
15 id SERIAL PRIMARY KEY,
16 course INT NOT NULL REFERENCES asset.course_module_course (id),
17 usr INT NOT NULL REFERENCES actor.usr (id),
19 is_public BOOLEAN NOT NULL DEFAULT false
22 CREATE TABLE asset.course_module_course_materials (
23 id SERIAL PRIMARY KEY,
24 course INT NOT NULL REFERENCES asset.course_module_course (id),
25 item INT NOT NULL REFERENCES asset.copy (id),
27 record INT REFERENCES biblio.record_entry (id),
28 original_location INT REFERENCES asset.copy_location,
29 original_status INT REFERENCES config.copy_status,
30 original_circ_modifier TEXT, --REFERENCES config.circ_modifier,
31 original_callnumber INT REFERENCES asset.call_number,
35 CREATE TABLE asset.course_module_non_cat_course_materials (
36 id SERIAL PRIMARY KEY,
37 course INT NOT NULL REFERENCES asset.course_module_course (id),
43 INSERT INTO permission.perm_list(id, code, description)
49 'Allows user to manage Courses, Course Materials, and associate Users with Courses.',
55 INSERT INTO permission.grp_perm_map(perm, grp, depth) VALUES (624, 9, 0), (624, 11, 0), (624, 12, 0), (624, 13, 0);
57 INSERT INTO config.org_unit_setting_type
58 (grp, name, datatype, label, description)
61 'circ.course_materials_opt_in', 'bool',
63 'circ.course_materials_opt_in',
64 'Opt Org Unit into the Course Materials Module',
69 'circ.course_materials_opt_in',
70 'If enabled, the Org Unit will utilize Course Material functionality.'
76 'circ.course_materials_browse_by_instructor', 'bool',
78 'circ.course_materials_browse_by_instructor',
79 'Allow users to browse Courses by Instructor',
84 'circ.course_materials_browse_by_instructor',
85 'If enabled, the Org Unit will allow OPAC users to browse Courses by instructor name.'