),
'bool'
)
+,(
+ 'ui.patron_search.result_cap',
+ oils_i18n_gettext(
+ 'ui.patron_search.result_cap',
+ 'GUI: Cap results in Patron Search at this number.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.patron_search.result_cap',
+ 'So for example, if you search for John Doe, normally you would get'
+ || ' at most 50 results. This setting allows you to raise or lower'
+ || ' that limit.',
+ 'coust',
+ 'description'
+ ),
+ 'integer'
+ )
;
UPDATE config.org_unit_setting_type
--- /dev/null
+-- Evergreen DB patch XXXX.data.org-setting-ui.patron_search.result_cap.sql
+--
+-- New org setting ui.patron_search.result_cap
+--
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
+ VALUES (
+ 'ui.patron_search.result_cap',
+ oils_i18n_gettext(
+ 'ui.patron_search.result_cap',
+ 'GUI: Cap results in Patron Search at this number.',
+ 'coust',
+ 'label'
+ ),
+ oils_i18n_gettext(
+ 'ui.patron_search.result_cap',
+ 'So for example, if you search for John Doe, normally you would get'
+ || ' at most 50 results. This setting allows you to raise or lower'
+ || ' that limit.',
+ 'coust',
+ 'description'
+ ),
+ 'integer'
+ );
+
+COMMIT;
obj.OpenILS.data = new OpenILS.data(); obj.OpenILS.data.init({'via':'stash'});
var obscure_dob = String( obj.OpenILS.data.hash.aous['circ.obscure_dob'] ) == 'true';
+ var result_cap_setting = obj.OpenILS.data.hash.aous[
+ 'ui.patron_search.result_cap'
+ ];
+ if (typeof result_cap_setting != 'undefined') {
+ obj.result_cap = Math.abs( result_cap_setting );
+ }
+
JSAN.use('util.list'); obj.list = new util.list('patron_list');
JSAN.use('patron.util');