Revision 6679207a
Added by Andreas Kohlbecker over 3 years ago
modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
32 | 32 |
RenderHints::pushToRenderStack('taxon_page_title'); |
33 | 33 |
$referenceUri = ''; |
34 | 34 |
$out = ''; |
35 |
if (isset($taxon->name->nomenclaturalReference)) {
|
|
36 |
$referenceUri = url(path_to_reference($taxon->name->nomenclaturalReference->uuid));
|
|
35 |
if (isset($taxon->name->nomenclaturalSource->citation)) {
|
|
36 |
$referenceUri = url(path_to_reference($taxon->name->nomenclaturalSource->citation->uuid));
|
|
37 | 37 |
} |
38 | 38 |
|
39 | 39 |
$out .= render_taxon_or_name($taxon, NULL, $referenceUri, FALSE); |
... | ... | |
192 | 192 |
RenderHints::pushToRenderStack('name_page_title'); |
193 | 193 |
|
194 | 194 |
$referenceUri = NULL; |
195 |
if (isset($taxon_name->nomenclaturalReference)) {
|
|
196 |
$referenceUri = url(path_to_reference($taxon_name->nomenclaturalReference->uuid));
|
|
195 |
if (isset($taxon_name->nomenclaturalSource->citation)) {
|
|
196 |
$referenceUri = url(path_to_reference($taxon_name->nomenclaturalSource->citation->uuid));
|
|
197 | 197 |
} |
198 | 198 |
|
199 | 199 |
$out = '<span class="' . html_class_attribute_ref($taxon_name) . '">' |
Also available in: Unified diff
ref #9222 adapting dataportal and tests to single sourced classes