90 |
90 |
|
91 |
91 |
$name = $taxonRelation->fromTaxon->name->titleCache;
|
92 |
92 |
|
93 |
|
$author_team = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $taxonRelation->fromTaxon->sec->uuid);
|
94 |
|
$authorteam = $author_team->titleCache;
|
|
93 |
$authorteam = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $taxonRelation->fromTaxon->sec->uuid);
|
|
94 |
$authorteam = $authorteam->titleCache;
|
95 |
95 |
|
96 |
96 |
if(!isset($misapplied[$name])){
|
97 |
97 |
$misapplied[$name]['out'] =
|
... | ... | |
106 |
106 |
$joinedAuthorTeams[$authorteam] = 'sensu '.theme('cdm_reference', $taxonRelation->fromTaxon->sec);
|
107 |
107 |
}
|
108 |
108 |
|
109 |
|
} else {
|
110 |
|
// all relationsship types but misapplied_name_for invalid_designation_for
|
111 |
|
$taxonRelationshipsLines[] = cdm_taxonRelationship($taxonRelation, true, _is_invers_taxonRelationship($taxonRelation, $focusedTaxon));
|
112 |
|
}
|
113 |
|
}
|
|
109 |
} else {
|
|
110 |
// all relationsship types but misapplied_name_for invalid_designation_for
|
|
111 |
$taxonRelationshipsLines[] = cdm_taxonRelationship($taxonRelation, true, _is_invers_taxonRelationship($taxonRelation, $focusedTaxon), true);
|
|
112 |
}
|
|
113 |
}
|
114 |
114 |
}
|
115 |
115 |
|
116 |
116 |
// sort the joinedAuthorTeams and create footnotes and footnotekeys
|
... | ... | |
156 |
156 |
$tr_footnotes_aux .= $element;
|
157 |
157 |
}
|
158 |
158 |
$out .= '<ul>' . $tr_footnotes_aux . '</ul>';
|
159 |
|
//$out .= '</ul>';
|
|
159 |
|
160 |
160 |
RenderHints::popFromRenderStack();
|
161 |
161 |
return $out;
|
162 |
162 |
}
|
... | ... | |
282 |
282 |
* @param unknown_type $taxonRelationType
|
283 |
283 |
* @param unknown_type $doLinkTaxon
|
284 |
284 |
*/
|
285 |
|
function cdm_taxonRelationship($taxonRelationship, $doLinkTaxon = false, $inverse = false){
|
|
285 |
function cdm_taxonRelationship($taxonRelationship, $doLinkTaxon = false, $inverse = false, $showSecReference = false){
|
286 |
286 |
|
287 |
287 |
// validate object
|
288 |
288 |
if( ! (isset($taxonRelationship->toTaxon) && isset($taxonRelationship->fromTaxon) && isset($taxonRelationship->type)) ) {
|
... | ... | |
307 |
307 |
$reltype_representation = $taxonRelationType->representation_L10n;
|
308 |
308 |
}
|
309 |
309 |
|
310 |
|
return cdm_related_taxon($toTaxon, null, $relsign, $reltype_representation, $doLinkTaxon);
|
|
310 |
return cdm_related_taxon($toTaxon, null, $relsign, $reltype_representation, $doLinkTaxon, $showSecReference);
|
311 |
311 |
}
|
312 |
312 |
|
313 |
313 |
/**
|
... | ... | |
320 |
320 |
* @param unknown_type $taxonRelationType
|
321 |
321 |
* @param unknown_type $doLinkTaxon
|
322 |
322 |
*/
|
323 |
|
function cdm_related_taxon($taxon, $reltype_uuid = null, $relsign = null, $reltype_representation = null, $doLinkTaxon = false){
|
|
323 |
function cdm_related_taxon($taxon, $reltype_uuid = null, $relsign = null, $reltype_representation = null, $doLinkTaxon = false, $showSecReference = false){
|
324 |
324 |
|
325 |
325 |
static $relsign_homo = '≡';
|
326 |
326 |
static $relsign_hetero = '=';
|
327 |
327 |
static $relsign_invalid = '–';
|
328 |
328 |
|
|
329 |
$footnoteListKey = 'taxonRelationships';
|
|
330 |
|
329 |
331 |
$name_prefix = '';
|
330 |
332 |
$name_postfix = '';
|
331 |
333 |
|
... | ... | |
378 |
380 |
}
|
379 |
381 |
//printing the taxonName and the handling the special case of annotations
|
380 |
382 |
$out_taxon_part = theme('cdm_taxonName', $taxon->name, $taxonUri, $referenceUri, true, false, $skiptags);
|
381 |
|
$out_taxon_part .= theme('cdm_annotations_as_footnotekeys', array($taxon->name, $taxon) );
|
382 |
|
$out_taxon_part .= ' sec. ' . theme('cdm_reference', $taxon->sec);
|
|
383 |
$out_taxon_part .= theme('cdm_annotations_as_footnotekeys', array($taxon->name, $taxon), $footnoteListKey);
|
|
384 |
|
|
385 |
if($showSecReference) {
|
|
386 |
$out_taxon_part .= ' sensu ' . theme('cdm_reference', $taxon->sec);
|
|
387 |
}
|
383 |
388 |
|
384 |
389 |
|
385 |
390 |
//later homonym or trated as later homonym AND bloking names
|
fixing #2679 (Improve Concept Relationships for Dataportal)