'Allow a user to delete trigger validators' );
INSERT INTO permission.temp_perm ( id, code, description ) VALUES ( 374, 'UPDATE_TRIGGER_VALIDATOR',
'Allow a user to update trigger validators' );
-INSERT INTO permission.temp_perm ( id, code, description ) VALUES ( 375, 'HOLD_LOCAL_AVAIL_OVERRIDE',
- 'Allow a user to place a hold despite the availability of a local copy' );
INSERT INTO permission.temp_perm ( id, code, description ) VALUES ( 376, 'ADMIN_BOOKING_RESOURCE',
'Enables the user to create/update/delete booking resources' );
INSERT INTO permission.temp_perm ( id, code, description ) VALUES ( 377, 'ADMIN_BOOKING_RESOURCE_TYPE',
'integer'
);
-INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
- VALUES
- ('circ.holds.alert_if_local_avail',
- 'Holds: Local available alert',
- 'If local copy is available, alert the person making the hold',
- 'bool'),
-
- ('circ.holds.deny_if_local_avail',
- 'Holds: Local available block',
- 'If local copy is available, deny the creation of the hold',
- 'bool')
- ;
-
INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
VALUES (
'circ.holds.clear_shelf.no_capture_holds',
(350, 'ADMIN_COPY_LOCATION_ORDER', oils_i18n_gettext(350, 'Allow a user to create/view/update/delete a copy location order', 'ppl', 'description')),
-- additional permissions
- (351, 'HOLD_LOCAL_AVAIL_OVERRIDE', oils_i18n_gettext(351, 'Allow a user to place a hold despite the availability of a local copy', 'ppl', 'description')),
-
(352, 'ADMIN_BOOKING_RESOURCE', oils_i18n_gettext(352, 'Enables the user to create/update/delete booking resources', 'ppl', 'description')),
(353, 'ADMIN_BOOKING_RESOURCE_TYPE', oils_i18n_gettext(353, 'Enables the user to create/update/delete booking resource types', 'ppl', 'description')),
(354, 'ADMIN_BOOKING_RESOURCE_ATTR', oils_i18n_gettext(354, 'Enables the user to create/update/delete booking resource attributes', 'ppl', 'description')),
INSERT INTO config.org_unit_setting_type (name, label, description, datatype)
VALUES
- ('circ.holds.alert_if_local_avail',
- oils_i18n_gettext('circ.holds.alert_if_local_avail',
- 'Holds: Local available alert', 'coust', 'label'),
- oils_i18n_gettext('circ.holds.alert_if_local_avail',
- 'If local copy is available, alert the person making the hold', 'coust', 'description'),
- 'bool'),
-
- ('circ.holds.deny_if_local_avail',
- oils_i18n_gettext('circ.holds.deny_if_local_avail',
- 'Holds: Local available block', 'coust', 'label'),
- oils_i18n_gettext('circ.holds.deny_if_local_avail',
- 'If local copy is available, deny the creation of the hold', 'coust', 'description'),
- 'bool'),
-
('circ.holds.clear_shelf.no_capture_holds',
oils_i18n_gettext( 'circ.holds.clear_shelf.no_capture_holds',
'Holds: Bypass hold capture during clear shelf process', 'coust', 'label'),
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0447'); -- gmc
+
+-- undo 0077.data.holds_local_avail_and_override.sql
+DELETE FROM actor.org_unit_setting WHERE name IN (
+ 'circ.holds.alert_if_local_avail',
+ 'circ.holds.deny_if_local_avail'
+);
+DELETE FROM config.org_unit_setting_type WHERE name IN (
+ 'circ.holds.alert_if_local_avail',
+ 'circ.holds.deny_if_local_avail'
+);
+DELETE FROM permission.usr_perm_map WHERE perm = (
+ SELECT id FROM permission.perm_list WHERE code = 'HOLD_LOCAL_AVAIL_OVERRIDE'
+);
+DELETE FROM permission.grp_perm_map WHERE perm = (
+ SELECT id FROM permission.perm_list WHERE code = 'HOLD_LOCAL_AVAIL_OVERRIDE'
+);
+DELETE FROM permission.perm_list WHERE code = 'HOLD_LOCAL_AVAIL_OVERRIDE';
+
+COMMIT;