'View booking resource types', 'ppl', 'description')),
( 622, 'VIEW_BOOKING_RESOURCE', oils_i18n_gettext(622,
'View booking resources', 'ppl', 'description')),
- ( 623, 'MANAGE_RESERVES', oils_i18n_gettext(623,
+ ( 624, 'MANAGE_RESERVES', oils_i18n_gettext(624,
'Allows user to manage Courses, Course Materials, and associate Users with Courses.', 'ppl', 'description'))
;
course_number TEXT NOT NULL,
section_number TEXT,
owning_lib INT REFERENCES actor.org_unit (id),
- is_archived BOOLEAN NOT NULL DEFAULT false;
+ is_archived BOOLEAN NOT NULL DEFAULT false
);
CREATE TABLE asset.course_module_role (
INSERT INTO permission.perm_list(id, code, description)
VALUES (
- 620,
+ 624,
'MANAGE_RESERVES',
oils_i18n_gettext(
- 620,
+ 624,
'Allows user to manage Courses, Course Materials, and associate Users with Courses.',
'ppl',
'description'
)
);
-INSERT INTO permission.grp_perm_map(perm, grp, depth) VALUES (620, 9, 0), (620, 11, 0), (20, 12, 0), (620, 13, 0);
+INSERT INTO permission.grp_perm_map(perm, grp, depth) VALUES (624, 9, 0), (624, 11, 0), (20, 12, 0), (624, 13, 0);
INSERT INTO config.org_unit_setting_type
(grp, name, datatype, label, description, fm_class)
),
oils_i18n_gettext(
'circ.course_materials_opt_in',
- 'If enabled, the Org Unit will utilize Course Material functionality.'
+ 'If enabled, the Org Unit will utilize Course Material functionality.',
'coust',
'description'
), null
),
oils_i18n_gettext(
'circ.course_materials_browse_by_instructor',
- 'If enabled, the Org Unit will allow OPAC users to browse Courses by instructor name.'
+ 'If enabled, the Org Unit will allow OPAC users to browse Courses by instructor name.',
'coust',
'description'
), null
RETURN NEW;
END;
$func$ LANGUAGE plpgsql;
+
+CREATE OR REPLACE FUNCTION biblio.course_reserves_facet () RETURNS TRIGGER AS $func$
+BEGIN
+ PERFORM asset.update_course_reserves_facet(NEW.id, NEW.id);
+ RETURN NEW;
+END;
+$func$ LANGUAGE plpgsql;
+
CREATE TRIGGER course_reserves_facet AFTER INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE biblio.course_reserves_facet ();