Project

General

Profile

« Previous | Next » 

Revision b5e773ef

Added by Andreas Kohlbecker almost 14 years ago

#392 CICHORIEAE display notes & #1483 references for distributions as footnotes

View differences:

themes/palmweb_2/template.php
94 94

  
95 95
  $descriptions = '';
96 96
  $separator = ', ';
97

  
98
  foreach($descriptionElements as $descriptionElement){
99
    $descriptions .= $descriptionElement->area->representation_L10n . $separator;
100
  }
97
  
98
    RenderHints::pushToRenderStack('descriptionElementDistribution');
99
    RenderHints::setFootnoteListKey(UUID_DISTRIBUTION);
100
    foreach($descriptionElements as $descriptionElement){
101
        // annotations as footnotes
102
        $annotationFootnoteKeys = theme('cdm_annotations_as_footnotekeys', $descriptionElement);
103
//        // source references as footnotes
104
//        $sourcesFootnoteKeyList = '';
105
//        foreach($descriptionElement->sources as $source){
106
//            $_fkey = FootnoteManager::addNewFootnote(UUID_DISTRIBUTION, theme('cdm_DescriptionElementSource', $source, false));
107
//            $sourcesFootnoteKeyList .= theme('cdm_footnote_key', $_fkey, UUID_DISTRIBUTION, ($sourcesFootnoteKeyList ? $separator : ''));
108
//        }
109
        if($annotationFootnoteKeys && $sourcesFootnoteKeyList){
110
            $annotationFootnoteKeys .= $separator;
111
        }
112
        $out .= $descriptionElement->area->representation_L10n . $annotationFootnoteKeys . $sourcesFootnoteKeyList . ' ';
113
    }
114
  
101 115
  $descriptions = substr($descriptions, 0, strlen($descriptions)-2);
102 116
  $taxonTrees =  cdm_ws_get(CDM_WS_PORTAL_TAXONOMY);
103 117
  foreach($taxonTrees as $taxonTree){
......
117 131
  if(strlen($sourceRefs) > 0){
118 132
    $sourceRefs = '<span class="sources">' . $sourceRefs . '</span>';
119 133
  }
134
  
135
    RenderHints::popFromRenderStack();
120 136
  return $descriptions. $sourceRefs ;
121 137

  
122 138
}

Also available in: Unified diff