Project

General

Profile

Revision 51cc509a

ID51cc509a276ccf97f7a2135edac78fd6aa77b934
Parent 6c5e37d9
Child 92e38dee

Added by Patrick Plitzner over 5 years ago

#5890 pass classification root node uuid as argument to autosuggest
function

View differences:

modules/cdm_dataportal/cdm_dataportal.search.php
121 121
  return $form;
122 122
}
123 123

  
124
function cdm_dataportal_taxon_autosuggest($string, $treeUuid = NULL, $areaUuid = NULL, $status = NULL) {
124
function cdm_dataportal_taxon_autosuggest($treeUuid = NULL, $areaUuid = NULL, $status = NULL, $string) {
125 125
  $matches = array();
126 126

  
127 127
  $queryParams = array();
......
136 136
    $queryParams['status'] = $status ;
137 137
  }
138 138
  $queryParams['pageNumber'] = '0';
139
  $queryParams['pageSize'] = '10';
139
  $queryParams['pageSize'] = '100';
140 140
  $queryParams['doTaxa'] = true;
141 141
  $queryParams['doSynonyms'] = true;
142 142
  $queryParams['doMisappliedNames'] = true;
......
147 147
      $titleCache = $record->entity->titleCache;
148 148
      preg_match('/(.*) sec.*/', $titleCache, $trimmedTitle); //remove sec reference
149 149
      $trimmedTitle = trim($trimmedTitle[1]);
150
      $matches[$trimmedTitle] = $trimmedTitle;
150
      $matches[$trimmedTitle] = check_plain($trimmedTitle);
151 151
  }
152 152
  drupal_json_output($matches);
153 153
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)