Project

General

Profile

Revision 6679207a

ID6679207a899188bbae8fba986cf4655a6fd2e87d
Parent ad6ad4c6
Child f02e26e1

Added by Andreas Kohlbecker about 2 months ago

ref #9222 adapting dataportal and tests to single sourced classes

View differences:

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

Add picture from clipboard (Maximum size: 40 MB)