Revision 01fff74a
Added by Andreas Kohlbecker almost 8 years ago
modules/cdm_dataportal/cdm_dataportal.search.php | ||
---|---|---|
134 | 134 |
$search_results = cdm_ws_get(CDM_WS_TAXON_SEARCH, NULL, queryString($queryParams)); |
135 | 135 |
foreach($search_results->records as $record){ |
136 | 136 |
$titleCache = $record->entity->titleCache; |
137 |
preg_match('/(.*) sec.*/', $titleCache, $trimmedTitle);//remove sec reference |
|
137 |
preg_match('/(.*) sec.*/', $titleCache, $trimmedTitle); //remove sec reference
|
|
138 | 138 |
$trimmedTitle = trim($trimmedTitle[1]); |
139 | 139 |
$matches[$trimmedTitle] = $trimmedTitle; |
140 | 140 |
} |
... | ... | |
154 | 154 |
* @param bool $advanced_form |
155 | 155 |
* default is FALSE |
156 | 156 |
* @param bool $classification_select |
157 |
* set TRUE to offer a classifiaction selector in the form - default is FALSE
|
|
157 |
* set TRUE to offer a classification selector in the form - default is FALSE
|
|
158 | 158 |
* if only available in the advanced mode |
159 | 159 |
* |
160 | 160 |
* @return array |
modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
272 | 272 |
// List results. |
273 | 273 |
if (isset($pager->records) && count($pager->records) > 0) { |
274 | 274 |
$out .= '<div id="search_results">'; |
275 |
$out .= drupal_render(compose_list_of_taxa($pager->records, $freetextSearchResults, $classification === NULL)); |
|
275 |
$list_of_taxa = compose_list_of_taxa($pager->records, $freetextSearchResults, $classification === NULL); |
|
276 |
$out .= drupal_render($list_of_taxa); |
|
276 | 277 |
$out .= '</div>'; |
277 | 278 |
$out .= theme('cdm_pager', array( |
278 | 279 |
'pager' => $pager, |
Also available in: Unified diff
avoiding php Strict warning