Revision 61b6ee11
Added by Andreas Kohlbecker about 11 years ago
7.x/modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme | ||
---|---|---|
168 | 168 |
* @todo document this function. |
169 | 169 |
*/ |
170 | 170 |
function theme_cdm_list_of_taxa($variables) { |
171 |
|
|
171 | 172 |
$records = $variables['records']; |
172 | 173 |
$freetextSearchResults = $variables['freetextSearchResults']; |
174 |
$show_classification = $variables['show_classification']; |
|
175 |
|
|
173 | 176 |
RenderHints::pushToRenderStack('list_of_taxa'); |
174 | 177 |
|
175 | 178 |
$form_name = 'search_gallery'; |
... | ... | |
251 | 254 |
if (!$is_synonym) { |
252 | 255 |
$out .= '<span class="sensu"> sensu ' . theme('cdm_reference', array('reference' => $taxon->sec)) . '</span>'; |
253 | 256 |
} |
257 |
if ($show_classification) { |
|
258 |
$classifications = get_classifications_for_taxon($taxon); |
|
259 |
$classification_titles = array(); |
|
260 |
foreach ($classifications as $classification) { |
|
261 |
if (isset($classification->titleCache)) { |
|
262 |
$classification_titles[] = $classification->titleCache; |
|
263 |
} |
|
264 |
} |
|
265 |
$out .= ' : <span class="classifications">' . implode(', ', $classification_titles) . '</span>'; |
|
266 |
} |
|
254 | 267 |
$out .= theme('cdm_annotations_as_footnotekeys', array('cdmBase_list' => $taxon)); |
255 | 268 |
if ($showMedia_synonyms) { |
256 | 269 |
$out .= theme('cdm_taxon_list_thumbnails', array('taxon' => $acceptedTaxon)); |
... | ... | |
287 | 300 |
'nameLink' => $taxonUri, |
288 | 301 |
'refenceLink' => $referenceUri, |
289 | 302 |
)); |
303 |
if ($show_classification) { |
|
304 |
$classifications = get_classifications_for_taxon($taxon); |
|
305 |
$classification_titles = array(); |
|
306 |
foreach ($classifications as $classification) { |
|
307 |
if (isset($classification->titleCache)) { |
|
308 |
$classification_titles[] = $classification->titleCache; |
|
309 |
} |
|
310 |
} |
|
311 |
$out .= ' : <span class="classifications">' . implode(', ', $classification_titles) . '</span>'; |
|
312 |
} |
|
290 | 313 |
$out .= theme('cdm_annotations_as_footnotekeys', array('cdmBase_list' => $taxon)); |
291 | 314 |
|
292 | 315 |
if ($showMedia_taxa) { |
Also available in: Unified diff
searching on all classifications now possible and fixing some bugs related to #2896