Project

General

Profile

« Previous | Next » 

Revision 687d5d3b

Added by Andreas Kohlbecker almost 13 years ago

fixing #2456 (FSI viewer fix search query for sub specific taxa)

View differences:

modules/cdm_dataportal/fsi_gallery/fsi_gallery.module
52 52
			. "</p>"
53 53

  
54 54
	);
55
	/*
56
	 * not yet used
55 57
	$form['fsi_name_substitutions'] = array(
56 58
      '#type' => 'textarea',
57 59
      '#title' => t('Taxon name subtitution rules'),
58 60
      '#default_value' => variable_get('fsi_name_substitutions', false),
59 61
      '#description' => t("One regex substitution rule per line")
60 62
	);
63
	*/
61 64
	$form['fsi_caption'] = array(
62 65
      '#type' => 'textarea',
63 66
      '#title' => t("Gallery caption"),
......
76 79

  
77 80
  $items = array();
78 81

  
79
  	if ($may_cache) {
82
  	if (!$may_cache) {
80 83

  
81 84
	  $items[] = array(
82 85
	    'path' => 'admin/settings/cdm_dataportal/fsi_gallery',
......
86 89
	    'callback arguments' => 'fsi_gallery_admin',
87 90
	    'access' => user_access('access administration pages'),
88 91
	    'type' => MENU_NORMAL_ITEM,
92
	  	'weight' => 10
89 93
	   );
90 94
  	}
91 95

  
......
101 105
      if($taggedText->type == 'name'){
102 106
        $nameArray[] = $taggedText->text;
103 107
      }
108
      if($taggedText->type == 'rank'){
109
        $nameArray[] = substr($taggedText->text, 0 ,1);
110
      }
104 111
    }
105 112

  
106
    //TODO apply substitution rules
107

  
108

  
109 113
	return join("%5F", $nameArray);
110 114
}
111 115

  

Also available in: Unified diff