Revision 80f34166
Added by Patrick Plitzner about 6 years ago
modules/cdm_dataportal/settings.php | ||
---|---|---|
1172 | 1172 |
); |
1173 | 1173 |
_add_js_cdm_ws_progressbar(".index-trigger", "#index-progress"); |
1174 | 1174 |
|
1175 |
$form['cdm_webservice']['freetext_index']['cdm_dataportal_taxon_auto_suggest'] = array( |
|
1176 |
'#type' => 'checkbox', |
|
1177 |
'#title' => t('(EXPERIMENTAL) Enable auto-suggest for taxon search'), |
|
1178 |
'#default_value' => variable_get('cdm_dataportal_taxon_auto_suggest', CDM_DATAPORTAL_TAXON_AUTO_SUGGEST), |
|
1179 |
'#description' => t('If enabled, the taxon search field will suggest taxon names while typing in a search query. |
|
1180 |
This function works on indexed taxon names. If you experience any delay maybe you have to reindex (see above).'), |
|
1181 |
); |
|
1182 |
|
|
1183 | 1175 |
$form['cdm_webservice']['proxy'] = array( |
1184 | 1176 |
'#type' => 'fieldset', |
1185 | 1177 |
'#title' => t('Proxy'), |
... | ... | |
2661 | 2653 |
'#description' => t('Number of results to display per page.'), |
2662 | 2654 |
); |
2663 | 2655 |
|
2656 |
$form['search_settings']['freetext_index']['cdm_dataportal_taxon_auto_suggest'] = array( |
|
2657 |
'#type' => 'checkbox', |
|
2658 |
'#title' => t('(EXPERIMENTAL) Enable auto-suggest for taxon search'), |
|
2659 |
'#default_value' => variable_get('cdm_dataportal_taxon_auto_suggest', CDM_DATAPORTAL_TAXON_AUTO_SUGGEST), |
|
2660 |
'#description' => t('If enabled, the taxon search field will suggest taxon names while typing in a search query. |
|
2661 |
This function works on indexed taxon names. If you experience any delay maybe you have to reindex (see above).'), |
|
2662 |
); |
|
2663 |
|
|
2664 | 2664 |
$form['search_settings'][SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX] = array( |
2665 | 2665 |
'#type' => 'checkbox', |
2666 | 2666 |
'#title' => t('Show the') . ' <i>' . t('Display image thumbnails') . '</i>' . t('button') . ':', |
Also available in: Unified diff
ref #6075 Move auto-suggest setting to search settings