Revision d5de0b1f
Added by Andreas Kohlbecker over 3 years ago
modules/cdm_dataportal/includes/name.inc | ||
---|---|---|
415 | 415 |
if (isset($renderTemplate['referencePart']['microreference'])&& isset($taxon_name->nomenclaturalSource->citationMicroReference)) { |
416 | 416 |
$microreference = $taxon_name->nomenclaturalSource->citationMicroReference; |
417 | 417 |
} |
418 |
if(count($nomref_tagged_text) == 0 && isset($taxon_name->nomenclaturalSource->citation)){ |
|
419 |
// TODO is this case still relevant? The tagged text should already contain all information! |
|
420 |
$citation = cdm_ws_getNomenclaturalReference($taxon_name->nomenclaturalSource->citation->uuid, $microreference); |
|
418 |
if(count($nomref_tagged_text) == 0 && isset($taxon_name->nomenclaturalSource->citation->title)){ |
|
419 |
$citation = $taxon_name->nomenclaturalSource->citation->title; // using only the title here since the authors are already addded to the string |
|
420 |
if(isset($taxon_name->nomenclaturalSource->citationMicroReference) && $taxon_name->nomenclaturalSource->citationMicroReference){ |
|
421 |
$citation .= ': ' . $taxon_name->nomenclaturalSource->citationMicroReference; |
|
422 |
} |
|
421 | 423 |
// Find preceding element of the reference. |
422 | 424 |
$precedingKey = get_preceding_contentElementKey('reference', $renderTemplate); |
423 | 425 |
if (str_beginsWith($citation, ", in")) { |
Also available in: Unified diff
ref #9265 getting citationDetail from NomenclaturalSource