Project

General

Profile

« Previous | Next » 

Revision 6bb442fe

Added by Andreas Kohlbecker about 8 years ago

#5647 avoiding duplicate sensu at missapplications

View differences:

modules/cdm_dataportal/includes/taxon.inc
111 111

  
112 112
  // Sort the joinedAuthorTeams and create footnotes and footnotekeys.
113 113
  ksort($joinedAuthorTeams);
114
  $author_team_cnt = 0;
114 115
  foreach ($joinedAuthorTeams as $authorteam => $sensuCitation) {
115 116
    $footnoteKey = FootnoteManager::addNewFootnote($footnoteListKey, $sensuCitation);
116 117

  
117
      $joinedAuthorTeams[$authorteam] = '<span class="sensu">'
118
        . ($authorteam != $NULL_AUTHORTEAM ? 'sensu '. $authorteam : '')
119
        . theme('cdm_footnote_key', array('footnoteKey' => $footnoteKey))
120
        . '</span>';
118
    $sensu = ++$author_team_cnt == 0 ? '' : 'sensu ';
121 119

  
120
    $joinedAuthorTeams[$authorteam] =  sprintf(
121
        '<span class="sensu">%s%s%s</span>',
122
        $sensu,
123
        ($authorteam != $NULL_AUTHORTEAM ? $authorteam : ''),
124
        theme('cdm_footnote_key', array('footnoteKey' => $footnoteKey))
125
      );
122 126
  }
123 127

  
124 128
  // ---- Generate output ---- //

Also available in: Unified diff