Merge pull request #22830 from kurund/entityRef-enhancements
[civicrm-core.git] / settings / Search.setting.php
index bddac38074876383b5e6c175fd2a7ecb41737302..9766a3c9f45628185fa73ea92353377054345e75 100644 (file)
@@ -13,8 +13,6 @@
  *
  * @package CRM
  * @copyright CiviCRM LLC https://civicrm.org/licensing
- * $Id$
- *
  */
 /*
  * Settings metadata file
@@ -29,10 +27,10 @@ return [
     'html_type' => 'number',
     'default' => 10,
     'add' => '4.3',
-    'title' => 'Autocomplete Results',
+    'title' => ts('Autocomplete Results'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
+    'description' => ts('The maximum number of contacts to show at a time when typing in an autocomplete field.'),
     'help_text' => NULL,
   ],
   'enable_innodb_fts' => [
@@ -43,10 +41,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 0,
     'add' => '4.4',
-    'title' => 'InnoDB Full Text Search',
+    'title' => ts('InnoDB Full Text Search'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
+    'description' => ts('Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)'),
     'help_text' => NULL,
     'on_change' => [
       ['CRM_Core_InnoDBIndexer', 'onToggleFts'],
@@ -65,10 +63,9 @@ return [
     'html_type' => 'text',
     'default' => 'simple',
     'add' => '4.5',
-    'title' => 'How to handle full-tet queries',
+    'title' => ts('How to handle full-text queries'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => NULL,
     'help_text' => NULL,
   ],
   'includeOrderByClause' => [
@@ -79,10 +76,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 1,
     'add' => '4.6',
-    'title' => 'Include Order By Clause',
+    'title' => ts('Include Order By Clause'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'If disabled, the search results will not be ordered. This may improve response time on search results on large datasets',
+    'description' => ts('If disabled, the search results will not be ordered. This may improve response time on search results on large datasets.'),
     'help_text' => NULL,
   ],
   'includeWildCardInName' => [
@@ -93,10 +90,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 1,
     'add' => '4.6',
-    'title' => 'Automatic Wildcard',
+    'title' => ts('Automatic Wildcard'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => "If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for 'ada' will return any contact whose name includes those letters - e.g. 'Adams, Janet', 'Nadal, Jorge', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for 'ada' will return any contact whose last name begins with those letters - e.g. 'Adams, Janet' but NOT 'Nadal, Jorge'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards ('%' or '_') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: '%ada' will return 'Nadal, Jorge'.",
+    'description' => ts("If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for 'ada' will return any contact whose name includes those letters - e.g. 'Adams, Janet', 'Nadal, Jorge', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for 'ada' will return any contact whose last name begins with those letters - e.g. 'Adams, Janet' but NOT 'Nadal, Jorge'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards ('%' or '_') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: '%ada' will return 'Nadal, Jorge'."),
     'help_text' => NULL,
   ],
   'includeEmailInName' => [
@@ -107,10 +104,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 1,
     'add' => '4.6',
-    'title' => 'Include Email',
+    'title' => ts('Include Email'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.',
+    'description' => ts('If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.'),
     'help_text' => NULL,
   ],
   'includeNickNameInName' => [
@@ -121,10 +118,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 0,
     'add' => '4.6',
-    'title' => 'Include Nickname',
+    'title' => ts('Include Nickname'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'If enabled, nicknames are automatically included when users search by Name.',
+    'description' => ts('If enabled, nicknames are automatically included when users search by Name.'),
     'help_text' => NULL,
   ],
   'includeAlphabeticalPager' => [
@@ -135,10 +132,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 1,
     'add' => '4.6',
-    'title' => 'Include Alphabetical Pager',
+    'title' => ts('Include Alphabetical Pager'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.',
+    'description' => ts('If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.'),
     'help_text' => NULL,
   ],
   'smartGroupCacheTimeout' => [
@@ -150,10 +147,10 @@ return [
     'html_type' => 'number',
     'default' => 5,
     'add' => '4.6',
-    'title' => 'Smart group cache timeout',
+    'title' => ts('Smart group cache timeout'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.',
+    'description' => ts('The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.'),
     'help_text' => NULL,
   ],
   'defaultSearchProfileID' => [
@@ -171,10 +168,10 @@ return [
     ],
     'default' => NULL,
     'add' => '4.6',
-    'title' => 'Default Contact Search Profile',
+    'title' => ts('Default Contact Search Profile'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'If set, this will be the default profile used for contact search.',
+    'description' => ts('If set, this will be the default profile used for contact search.'),
     'help_text' => NULL,
   ],
   'prevNextBackend' => [
@@ -189,13 +186,13 @@ return [
     ],
     'default' => 'default',
     'add' => '5.9',
-    'title' => 'PrevNext Cache',
+    'title' => ts('PrevNext Cache'),
     'is_domain' => 1,
     'is_contact' => 0,
     'pseudoconstant' => [
       'callback' => 'CRM_Core_BAO_PrevNextCache::getPrevNextBackends',
     ],
-    'description' => 'When performing a search, how should the search-results be cached?',
+    'description' => ts('When performing a search, how should the search-results be cached?'),
     'help_text' => '',
   ],
   'searchPrimaryDetailsOnly' => [
@@ -206,10 +203,10 @@ return [
     'quick_form_type' => 'YesNo',
     'default' => 1,
     'add' => '4.7',
-    'title' => 'Search Primary Details Only',
+    'title' => ts('Search Primary Details Only'),
     'is_domain' => 1,
     'is_contact' => 0,
-    'description' => 'If enabled, only primary details (eg contact\'s primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.',
+    'description' => ts('If enabled, only primary details (eg contact\'s primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.'),
     'help_text' => NULL,
   ],
   'quicksearch_options' => [
@@ -231,4 +228,24 @@ return [
     'description' => ts("Which fields can be searched on in the menubar quicksearch box? Don't see your custom field here? Make sure it is marked as Searchable."),
     'help_text' => NULL,
   ],
+  'default_pager_size' => [
+    'group_name' => 'Search Preferences',
+    'group' => 'Search Preferences',
+    'name' => 'default_pager_size',
+    'type' => 'Integer',
+    'quick_form_type' => 'Element',
+    'html_type' => 'text',
+    'html_attributes' => [
+      'size' => 2,
+      'maxlength' => 3,
+    ],
+    'default' => 50,
+    'add' => '5.39',
+    'title' => ts('Default Search Pager size'),
+    'is_domain' => 1,
+    'is_contact' => 0,
+    'description' => ts('What is the default number of records to show on a search'),
+    'help_text' => NULL,
+  ],
+
 ];