'View booking resources', 'ppl', 'description')),
( 623, 'UPDATE_ORG_UNIT_SETTING.opac.matomo', oils_i18n_gettext(623,
'Allows a user to configure Matomo Analytics org unit settings', 'ppl', 'description')),
- ( 624, '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 (
),
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 ();