Revision d18df94e
Added by Andreas Kohlbecker over 12 years ago
modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme | ||
---|---|---|
108 | 108 |
|
109 | 109 |
} else { |
110 | 110 |
// all relationsship types but misapplied_name_for invalid_designation_for |
111 |
$taxonRelationshipsLines[] = theme('cdm_related_taxon',$taxonRelation->fromTaxon, $taxonRelation->type->uuid, $taxonRelation->type->representation_L10n_abbreviatedLabel); |
|
111 |
$taxonRelationshipsLines[] = theme('cdm_related_taxon',$taxonRelation->fromTaxon, $taxonRelation->type->uuid, $taxonRelation->type->representation_L10n_abbreviatedLabel, true);
|
|
112 | 112 |
} |
113 | 113 |
} |
114 | 114 |
} |
... | ... | |
273 | 273 |
} |
274 | 274 |
|
275 | 275 |
|
276 |
function theme_cdm_related_taxon($taxon, $reltype_uuid = false, $relsign = null){ |
|
276 |
function theme_cdm_related_taxon($taxon, $reltype_uuid = false, $relsign = null, $doLinkTaxon = false){
|
|
277 | 277 |
|
278 | 278 |
static $relsign_homo = '≡'; |
279 | 279 |
static $relsign_hetero = '='; |
... | ... | |
323 | 323 |
|
324 | 324 |
RenderHints::pushToRenderStack('related_taxon'); |
325 | 325 |
|
326 |
//$taxonUri = url(path_to_taxon($taxon->uuid)); |
|
327 | 326 |
if($taxon->name->nomenclaturalReference){ |
328 | 327 |
$referenceUri = url(path_to_reference($taxon->name->nomenclaturalReference->uuid)); |
329 | 328 |
} |
329 |
if($doLinkTaxon){ |
|
330 |
$taxonUri = url(path_to_taxon($taxon->uuid)); |
|
331 |
} |
|
330 | 332 |
//printing the taxonName and the handling the special case of annotations |
331 | 333 |
$nameHtml = theme('cdm_taxonName', $taxon->name, $taxonUri, $referenceUri, true, false, $skiptags); |
332 | 334 |
$special_annotations_array = array(); |
Also available in: Unified diff
linking taxa for #2609 (Implement Concept Relationships for Dataportal)