'coust', 'description'),
'currency', null)
+,( 'circ.deposit.exempt_groups', 'circ',
+ oils_i18n_gettext('circ.deposit.exempt_groups',
+ 'Permission groups exempt from item deposit fees',
+ 'coust', 'label'),
+ oils_i18n_gettext('circ.deposit.exempt_groups',
+ 'List of the numeric IDs of permission groups who should not be charged item deposit fees. Example: [3]',
+ 'coust', 'description'),
+ 'array', null)
+
,( 'circ.do_not_tally_claims_returned', 'circ',
oils_i18n_gettext('circ.do_not_tally_claims_returned',
'Do not include outstanding Claims Returned circulations in lump sum tallies in Patron Display.',
'coust', 'description'),
'string', null)
+,( 'circ.rental.exempt_groups', 'circ',
+ oils_i18n_gettext('circ.rental.exempt_groups',
+ 'Permission groups exempt from item rental fees',
+ 'coust', 'label'),
+ oils_i18n_gettext('circ.rental.exempt_groups',
+ 'List of the numeric IDs of permission groups who should not be charged item rental fees. Example: [3]',
+ 'coust', 'description'),
+ 'array', null)
+
,( 'circ.reshelving_complete.interval', 'lib',
oils_i18n_gettext('circ.reshelving_complete.interval',
'Change reshelving status interval',
--- /dev/null
+-- Evergreen DB patch XXXX.data.expose_deposit_rental_exempt_ous.sql
+--
+-- Make sure circ.deposit.exempt_groups and circ.rental.exempt_groups
+-- OU setting types are present in database.
+--
+BEGIN;
+
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class )
+SELECT DISTINCT
+ 'circ.deposit.exempt_groups', 'circ',
+ oils_i18n_gettext('circ.deposit.exempt_groups',
+ 'Permission groups exempt from item deposit fees',
+ 'coust', 'label'),
+ oils_i18n_gettext('circ.deposit.exempt_groups',
+ 'List of the numeric IDs of permission groups who should not be charged item deposit fees. Example: [3]',
+ 'coust', 'description'),
+ 'array', null
+FROM config.org_unit_setting_type
+WHERE NOT EXISTS (SELECT 1 FROM config.org_unit_setting_type WHERE name = 'circ.deposit.exempt_groups');
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class )
+SELECT DISTINCT
+ 'circ.rental.exempt_groups', 'circ',
+ oils_i18n_gettext('circ.rental.exempt_groups',
+ 'Permission groups exempt from item rental fees',
+ 'coust', 'label'),
+ oils_i18n_gettext('circ.rental.exempt_groups',
+ 'List of the numeric IDs of permission groups who should not be charged item rental fees. Example: [3]',
+ 'coust', 'description'),
+ 'array', null
+FROM config.org_unit_setting_type
+WHERE NOT EXISTS (SELECT 1 FROM config.org_unit_setting_type WHERE name = 'circ.rental.exempt_groups');
+
+COMMIT;