287 |
287 |
switch ($element->type->representation_L10n){
|
288 |
288 |
case 'later homonym for':
|
289 |
289 |
if(isset($later_homonym)){
|
290 |
|
$later_homonym .= ' nec ' . l($element->toName->titleCache,
|
|
290 |
$later_homonym .= ' nec ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
291 |
291 |
'cdm_dataportal/name/' . $element->toName->uuid . '/' . $taxon->uuid . '/' . $element->toName->taxonBases[0]->uuid);
|
292 |
292 |
}else{
|
293 |
|
$later_homonym = ' [non ' . l($element->toName->titleCache,
|
294 |
|
'cdm_dataportal/name/' . $element->toName->uuid . '/' . $taxon->uuid . '/' . $element->toName->taxonBases[0]->uuid);
|
|
293 |
$later_homonym = ' [non ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
294 |
'cdm_dataportal/name/' . $element->toName->uuid . '/' . $taxon->uuid . '/' . $element->toName->taxonBases[0]->uuid)
|
|
295 |
. ' ' . $element->toName->datePublished->start;
|
295 |
296 |
}
|
296 |
297 |
break;
|
297 |
298 |
case 'treated as later homonym for':
|
298 |
299 |
if(isset($later_homonym)){
|
299 |
|
$later_homonym = ' nec ' . l($element->toName->titleCache, 'cdm_dataportal/name/' . $element->toName->uuid);
|
|
300 |
$later_homonym = ' nec ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
301 |
'cdm_dataportal/name/' . $element->toName->uuid);
|
300 |
302 |
}else{
|
301 |
|
$later_homonym = ' [non ' . l($element->toName->titleCache, 'cdm_dataportal/name/' . $element->toName->uuid);
|
|
303 |
$later_homonym = ' [non ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
304 |
'cdm_dataportal/name/' . $element->toName->uuid);
|
302 |
305 |
}
|
303 |
306 |
break;
|
304 |
307 |
}
|
fixing ticket #636