'In the Patron Bills interface, a payment attempt will warn if the amount exceeds the value of this setting.',
'coust', 'description'),
'currency', null)
+,( 'circ.holds.max_duplicate_holds', 'holds',
+ oils_i18n_gettext(
+ 'circ.holds.max_duplicate_holds',
+ 'Maximum number of duplicate holds allowed.',
+ 'coust', 'label'),
+ oils_i18n_gettext(
+ 'circ.holds.max_duplicate_holds',
+ 'Maximum number of duplicate title or metarecord holds allowed per patron.',
+ 'coust', 'description'),
+ 'integer', null)
;
UPDATE config.org_unit_setting_type
--- /dev/null
+BEGIN;
+
+SELECT plan(1);
+
+-- Check that config.org_unit_setting_type of circ.holds.max_duplicate_holds exists.
+SELECT isnt_empty(
+ 'SELECT * FROM config.org_unit_setting_type WHERE name = $$circ.holds.max_duplicate_holds$$',
+ 'config.org_unit_setting_type circ.holds.max_duplicate_holds exists'
+);
+
+SELECT * FROM finish();
+
+ROLLBACK;
--- /dev/null
+BEGIN;
+
+-- INSERT INTO config.upgrade_log (version, applied_to) VALUES ('XXXX', :eg_version);
+
+-- Add the circ.holds.max_duplicate_holds org. unit setting type.
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class )
+VALUES
+( 'circ.holds.max_duplicate_holds', 'holds',
+ oils_i18n_gettext(
+ 'circ.holds.max_duplicate_holds',
+ 'Maximum number of duplicate holds allowed.',
+ 'coust', 'label'),
+ oils_i18n_gettext(
+ 'circ.holds.max_duplicate_holds',
+ 'Maximum number of duplicate title or metarecord holds allowed per patron.',
+ 'coust', 'description'),
+ 'integer', null );
+
+COMMIT;