Revision a91d2f20
Added by Francisco Revilla about 14 years ago
modules/cdm_dataportal/theme/cdm_dataportal.name.theme | ||
---|---|---|
310 | 310 |
if(isset($renderTemplate['referencePart']['microreference'])){ |
311 | 311 |
$microreference = $taxonName->nomenclaturalMicroReference; |
312 | 312 |
} |
313 |
$citation = cdm_ws_get(CDM_WS_NOMENCLATURAL_REFERENCE_CITATION, array($taxonName->nomenclaturalReference->uuid), "microReference=$microreference");
|
|
313 |
$citation = cdm_ws_get(CDM_WS_NOMENCLATURAL_REFERENCE_CITATION, array($taxonName->nomenclaturalReference->uuid), "microReference=".urlencode($microreference));
|
|
314 | 314 |
$citation = $citation->String; |
315 | 315 |
// find preceding element of the refrence |
316 | 316 |
$precedingKey = get_preceding_contentElementKey('reference', $renderTemplate); |
modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme | ||
---|---|---|
230 | 230 |
|
231 | 231 |
//later homonym or trated as later homonym |
232 | 232 |
$taxon_name_relations = cdm_ws_get(CDM_WS_PORTAL_TAXON_NAMERELATIONS, $taxon->uuid); |
233 |
switch ($taxon_name_relations[0]->type->representation_L10n){ |
|
234 |
case 'later homonym for': |
|
235 |
$later_homonym = ' [non ' . $taxon_name_relations[0]->fromName->titleCache . ']'; |
|
236 |
break; |
|
237 |
case 'treated as later homonym for': |
|
238 |
$later_homonym = ' [non ' . $taxon_name_relations[0]->fromName->titleCache . ']'; |
|
239 |
break; |
|
233 |
foreach($taxon_name_relations as $element){ |
|
234 |
switch ($element->type->representation_L10n){ |
|
235 |
case 'later homonym for': |
|
236 |
$later_homonym = ' ' . l('[non ' . $element->fromName->titleCache . ']', |
|
237 |
'cdm_dataportal/name/' . $element->fromName->uuid); |
|
238 |
break; |
|
239 |
case 'treated as later homonym for': |
|
240 |
$later_homonym = ' ' .'[non ' . $element->fromName->titleCache . ']'; |
|
241 |
break; |
|
242 |
} |
|
240 | 243 |
} |
241 | 244 |
|
245 |
|
|
242 | 246 |
$out = '<span class="relation_sign">'.$relsign.'</span>'.$name_prefix . $nameHtml . $name_postfix . $later_homonym; |
243 | 247 |
|
244 | 248 |
//var_dump($taxon_name_relations[0]->type->representation_L10n); |
Also available in: Unified diff
homonym modifications, ticket #1421