Project

General

Profile

Revision b5e773ef

IDb5e773ef2f11d24f655945abc62e52c8cda26744
Parent 15f11e83
Child e48b96fe

Added by Andreas Kohlbecker over 10 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

Add picture from clipboard (Maximum size: 40 MB)