Revision 57cfb47e
Added by Andreas Kohlbecker over 11 years ago
5.x/modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme | ||
---|---|---|
398 | 398 |
switch ($element->type->representation_L10n){ |
399 | 399 |
case 'later homonym for': |
400 | 400 |
if(isset($name_relations_html)){ |
401 |
$name_relations_html .= ' nec ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
401 |
$name_relations_html .= 'nec ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4), |
|
402 | 402 |
'cdm_dataportal/name/' . $element->toName->uuid . '/' . $taxon->uuid . '/' . $element->toName->taxonBases[0]->uuid); |
403 | 403 |
}else{ |
404 |
$name_relations_html = ' non ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
404 |
$name_relations_html = 'non ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4), |
|
405 | 405 |
'cdm_dataportal/name/' . $element->toName->uuid . '/' . $taxon->uuid . '/' . $element->toName->taxonBases[0]->uuid) |
406 | 406 |
. ' ' . $element->toName->datePublished->start; |
407 | 407 |
} |
408 | 408 |
break; |
409 | 409 |
case 'treated as later homonym for': |
410 | 410 |
if(isset($name_relations_html)){ |
411 |
$name_relations_html = ' nec ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
411 |
$name_relations_html = 'nec ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4), |
|
412 | 412 |
'cdm_dataportal/name/' . $element->toName->uuid); |
413 | 413 |
}else{ |
414 |
$name_relations_html = ' non ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
414 |
$name_relations_html = 'non ' . l($element->toName->titleCache . ' ' . substr($element->toName->nomenclaturalReference->datePublished->start, 0, 4), |
|
415 | 415 |
'cdm_dataportal/name/' . $element->toName->uuid); |
416 | 416 |
} |
417 | 417 |
break; |
... | ... | |
423 | 423 |
switch ($element->type->representation_L10n){ |
424 | 424 |
case 'blocking name for': |
425 | 425 |
if(isset($name_relations_html) ){ |
426 |
$name_relations_html .= ' nec ' . l($element->fromName->titleCache . ' ' . substr($element->fromName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
426 |
$name_relations_html .= 'nec ' . l($element->fromName->titleCache . ' ' . substr($element->fromName->nomenclaturalReference->datePublished->start, 0, 4), |
|
427 | 427 |
'cdm_dataportal/name/' . $element->fromName->uuid . '/' . $taxon->uuid . '/' . $element->fromName->taxonBases[0]->uuid); |
428 | 428 |
}else{ |
429 |
$name_relations_html = ' non ' . l($element->fromName->titleCache . ' ' . substr($element->fromName->nomenclaturalReference->datePublished->start, 0, 4),
|
|
429 |
$name_relations_html = 'non ' . l($element->fromName->titleCache . ' ' . substr($element->fromName->nomenclaturalReference->datePublished->start, 0, 4), |
|
430 | 430 |
'cdm_dataportal/name/' . $element->fromName->uuid . '/' . $taxon->uuid . '/' . $element->fromName->taxonBases[0]->uuid) |
431 | 431 |
. ' ' . $element->fromName->datePublished->start; |
432 | 432 |
} |
... | ... | |
436 | 436 |
} |
437 | 437 |
//rels output |
438 | 438 |
if(isset($name_relations_html)){ |
439 |
$name_relations_html = '['. $name_relations_html .']';
|
|
439 |
$name_relations_html = '['. trim($name_relations_html) .']';
|
|
440 | 440 |
} |
441 | 441 |
} |
442 | 442 |
//geneal output |
443 |
$out = '<span class="relation_sign" title="' . $reltype_representation . '">'.$relsign.'</span>'.$name_prefix . $out_taxon_part . $name_postfix . $name_relations_html; |
|
443 |
$out = '<span class="relation_sign" title="' . $reltype_representation . '">'.$relsign.'</span>'.$name_prefix . $out_taxon_part . $name_postfix . ' ' . $name_relations_html;
|
|
444 | 444 |
$out = uuid_anchor($taxon->uuid, $out); |
445 | 445 |
|
446 | 446 |
RenderHints::popFromRenderStack(); |
Also available in: Unified diff
removing whitespace around homonymes