Project

General

Profile

Revision 023c4a03

ID023c4a03b112854eef6b2f8de74711e5217c39d6
Parent 80f34166
Child eebf415b

Added by Patrick Plitzner almost 4 years ago

fix #6075 harmonize code

View differences:

modules/cdm_dataportal/settings.php
23 23
  define('CDM_DATAPORTAL_NOMREF_IN_TITLE', 1);
24 24
  define('CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE', 0);
25 25
  define('CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE_PAGE_SIZE', 50);
26
  define('CDM_DATAPORTAL_TAXON_AUTO_SUGGEST', 0);
27 26
  define('CDM_DATAPORTAL_COMPRESSED_SPECIMEN_DERIVATE_TABLE_SHOW_DETERMINED_AS', 0);
28 27
  define('CDM_DATAPORTAL_DISPLAY_IS_ACCEPTED_FOR', 0);
29 28
  define('CDM_DATAPORTAL_ALL_FOOTNOTES', 0);
......
359 358

  
360 359
define('SIMPLE_SEARCH_USE_LUCENE_BACKEND', 'simple_search_use_lucene_backend');
361 360
define('SIMPLE_SEARCH_IGNORE_CLASSIFICATION', 'simple_search_ignore_classification');
361
define('SIMPLE_SEARCH_AUTO_SUGGEST', 'cdm_search_taxa_auto_suggest');
362 362

  
363 363
/* Gallery variables. */
364 364
$gallery_settings = array(
......
2646 2646
      configured to also use the free-text search backend.'),
2647 2647
  );
2648 2648

  
2649
  $form['search_settings'][SIMPLE_SEARCH_AUTO_SUGGEST] = array(
2650
    '#type' => 'checkbox',
2651
    '#title' => t('(EXPERIMENTAL) Enable auto-suggest for taxon search'),
2652
    '#default_value' => variable_get(SIMPLE_SEARCH_AUTO_SUGGEST, 0),
2653
    '#description' => t('If enabled, the taxon search field will suggest taxon names while typing in a search query.
2654
    This function works on indexed taxon names. If you experience any delay maybe you have to reindex (see above).'),
2655
  );
2656

  
2649 2657
  $form['search_settings']['cdm_dataportal_search_items_on_page'] = array(
2650 2658
    '#type' => 'textfield',
2651 2659
    '#title' => t('Results per page') . ':',
2652 2660
    '#default_value' => variable_get('cdm_dataportal_search_items_on_page', CDM_DATAPORTAL_SEARCH_ITEMS_ON_PAGE),
2653 2661
    '#description' => t('Number of results to display per page.'),
2654 2662
  );
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 2663
    
2664 2664
  $form['search_settings'][SEARCH_RESULTS_SHOW_THUMBNAIL_CHECKBOX] = array(
2665 2665
    '#type' => 'checkbox',

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)