Project

General

Profile

« Previous | Next » 

Revision 39ae8ca4

Added by Andreas Kohlbecker over 3 years ago

ref #8543 unification of annotation and source footnotes for related taxa etc.

View differences:

modules/cdm_dataportal/includes/pages.inc
717 717
    if(isset($name_relationships['list']['items'][0])){
718 718
      $accepted_name .= ' ' . drupal_render($name_relationships);
719 719
    }
720

  
721
    // handle annotations of the name and taxon
722
    $annotations_and_sources_taxon = handle_annotations_and_sources(
723
      $taxon,
724
      synonymy_annotations_and_source_config(),
725
      '',
726
      RenderHints::getFootnoteListKey());
727
    $annotations_and_sources_name = handle_annotations_and_sources(
728
      $taxon->name,
729
      synonymy_annotations_and_source_config(),
730
      '',
731
      RenderHints::getFootnoteListKey());
732

  
733
    $accepted_name .= $annotations_and_sources_taxon['foot_note_keys'] . ($annotations_and_sources_taxon['foot_note_keys'] && $annotations_and_sources_name['foot_note_keys'] ? ', ': '') . $annotations_and_sources_name['foot_note_keys'];
720
    $accepted_name .= render_taxon_and_name_footnotes($taxon);
734 721
    $accepted_name .= '</div>';
735 722
    RenderHints::popFromRenderStack();
736 723
  }

Also available in: Unified diff