Project

General

Profile

« Previous | Next » 

Revision 6eaec849

Added by Katja Luther almost 5 years ago

implement blast search table for the result

View differences:

modules/cdm_dataportal/settings.php
35 35
  define('CDM_DATAPORTAL_LAST_VISITED_TAB_ARRAY_INDEX', 999);
36 36
  define('CDM_DATAPORTAL_SPECIMEN_DERIVATE_TREE', 0);
37 37

  
38
  define('CDM_WS_PORTAL_BLAST', 'http://127.0.0.1:9001/api/sequence');
39
  define('CDM_BLAST', 0);
38 40
  define('CDM_REGISTRATION_PRESISTENT_IDENTIFIER_AS_LINK', 'cdm_registration_presistent_identifier_as_link');
39 41

  
40 42
  /* annotationTypeKeys */
......
2771 2773
    '#description' => t('Area uuids, comma separated, no whitespace. EXPERIMENTAL!!!!'),
2772 2774
  );
2773 2775

  
2776
    $form['blast_search_settings'] = array(
2777
        '#type' => 'fieldset',
2778
        '#title' => t('Blast Search'),
2779
        '#collapsible' => TRUE,
2780
        '#collapsed' => TRUE,
2781
        '#description' => t('<p>To perform blast searchs
2782
         the block <em>CDM Taxon Search</em> should be enabled and visible for users
2783
         where they can write the text to be searched. You can find Drupal block configuration
2784
         site at <a href="./?q=admin/build/block">Administer&#45&#62Site building&#45&#62Blocks</a></p>
2785
         <p>To perform a blast search a blast database for the cdm instance is needed.</p> '),
2786
    );
2787

  
2788
    $form['blast_search_settings'][CDM_BLAST] = array(
2789
        '#type' => 'checkbox',
2790
        '#title' => t('Activate Blast search') . ':',
2791
        '#default_value' => variable_get(CDM_BLAST, 0), // '05b0dd06-30f8-477d-bf4c-30d9def56320' =>  Caucasia (Ab + Ar + Gg + Rf(CS)) (Cc)
2792

  
2793
        '#description' => t('Activate the blast search for this portal, this works only with an existing blast database!'),
2794
    );
2795
    $form['blast_search_settings'][CDM_WS_PORTAL_BLAST] = array(
2796
        '#type' => 'textfield',
2797
        '#title' => t('Webservice URL for blast search') . ':',
2798
        '#default_value' => variable_get(CDM_WS_PORTAL_BLAST, 'http://127.0.0.1:9001/api/sequence'), // '05b0dd06-30f8-477d-bf4c-30d9def56320' =>  Caucasia (Ab + Ar + Gg + Rf(CS)) (Cc)
2799

  
2800
        '#description' => t('Enter the webservice URL for blast search'),
2801
    );
2802

  
2774 2803
  // --- SEARCH TAXA GALLERY ---- //
2775 2804
  $items = variable_get('cdm_dataportal_search_items_on_page', CDM_DATAPORTAL_SEARCH_ITEMS_ON_PAGE);
2776 2805
  $collapsed = FALSE;

Also available in: Unified diff