Revision b5e773ef
#392 CICHORIEAE display notes & #1483 references for distributions as footnotes
modules/cdm_dataportal/theme/cdm_dataportal.taxon.theme | ||
---|---|---|
103 | 103 |
ksort($joinedAuthorTeams); |
104 | 104 |
foreach($joinedAuthorTeams as $authorteam=>$sensuCitation){ |
105 | 105 |
$footnoteKey = FootnoteManager::addNewFootnote($footnoteListKey, $sensuCitation); |
106 |
$joinedAuthorTeams[$authorteam] = '<span class="sensu">sensu '.$authorteam. theme('cdm_footnote_key', $footnoteKey).'</span>'; |
|
106 |
$joinedAuthorTeams[$authorteam] = '<span class="sensu">sensu '.$authorteam. theme('cdm_footnote_key', $footnoteKey, $footnoteListKey).'</span>';
|
|
107 | 107 |
} |
108 | 108 |
|
109 | 109 |
// generate output |
... | ... | |
112 | 112 |
foreach($misapplied as $misapplied_name){ |
113 | 113 |
|
114 | 114 |
$out .= '<li class="synonym">'.$misapplied_name['out'] . " "; |
115 |
// fill authors the renderedFootnoteKey and sorting 'em |
|
115 |
// fill authors with the renderedFootnoteKey and sorting 'em
|
|
116 | 116 |
foreach($misapplied_name['authorteam'] as $authorteam=>&$renderedFootnoteKey) { |
117 | 117 |
$renderedFootnoteKey = $joinedAuthorTeams[$authorteam]; |
118 | 118 |
} |
... | ... | |
125 | 125 |
} |
126 | 126 |
$out .= '</ul>'; |
127 | 127 |
|
128 |
$out .= theme('cdm_footnotes', $footnoteListKey, 'div'); |
|
128 | 129 |
RenderHints::popFromRenderStack(); |
129 | 130 |
return $out; |
130 | 131 |
} |
... | ... | |
144 | 145 |
$referenceUri = url(path_to_reference($synonym->name->nomenclaturalReference->uuid)); |
145 | 146 |
} |
146 | 147 |
$out .= theme('cdm_taxonName', $synonym->name, null, $referenceUri); |
148 |
$out .= theme('cdm_annotations_as_footnotekeys', $synonym); |
|
147 | 149 |
$out .= '</span>'; |
148 | 150 |
} |
149 | 151 |
} |
... | ... | |
185 | 187 |
$referenceUri = url(path_to_reference($taxon->name->nomenclaturalReference->uuid)); |
186 | 188 |
} |
187 | 189 |
$out .= '<li class="Taxon">'.theme('cdm_taxonName', $taxon->name, $taxonUri, $referenceUri); |
190 |
$out .= theme('cdm_annotations_as_footnotekeys', $taxon); |
|
191 |
|
|
188 | 192 |
if($showMedia_taxa){ |
189 | 193 |
$out .= theme('cdm_taxon_list_thumbnails', $taxon); |
190 | 194 |
} |
195 |
|
|
191 | 196 |
$out .= '</li>'; |
192 | 197 |
} else { |
193 | 198 |
// its a synonym |
... | ... | |
200 | 205 |
$referenceUri = url(path_to_reference($acceptedTaxon->name->nomenclaturalReference->uuid)); |
201 | 206 |
} |
202 | 207 |
$out .= '<li class="Synonym">'.theme('cdm_taxonName', $taxon->name, $taxonUri, $referenceUri); |
208 |
$out .= theme('cdm_annotations_as_footnotekeys', $taxon); |
|
203 | 209 |
if($showMedia_synonyms){ |
204 | 210 |
$out .= theme('cdm_taxon_list_thumbnails', $acceptedTaxon); |
205 | 211 |
} |
... | ... | |
207 | 213 |
} else { |
208 | 214 |
//TODO avoid using Ajax in the cdm_dynabox |
209 | 215 |
//TODO add media |
210 |
$out .= theme('cdm_dynabox', theme('cdm_taxonName', $taxon->name, null, null), cdm_compose_url(CDM_WS_PORTAL_TAXON_ACCEPTED, array($taxon->uuid)), 'cdm_list_of_taxa'); |
|
216 |
$out .= theme('cdm_dynabox', theme('cdm_taxonName', $taxon->name, null, null, false), cdm_compose_url(CDM_WS_PORTAL_TAXON_ACCEPTED, array($taxon->uuid)), 'cdm_list_of_taxa');
|
|
211 | 217 |
} |
212 | 218 |
} |
213 | 219 |
} |
... | ... | |
247 | 253 |
$referenceUri = url(path_to_reference($taxon->name->nomenclaturalReference->uuid)); |
248 | 254 |
} |
249 | 255 |
$nameHtml = theme('cdm_taxonName', $taxon->name, $taxonUri, $referenceUri); |
256 |
$nameHtml .= theme('cdm_annotations_as_footnotekeys', $taxon); |
|
250 | 257 |
|
251 | 258 |
//later homonym or trated as later homonym |
252 | 259 |
$taxon_name_relations = cdm_ws_get(CDM_WS_PORTAL_TAXON_NAMERELATIONS, $taxon->uuid); |
Also available in: Unified diff