Revision 4f3888a8
Added by Alex Theys about 12 years ago
5.x/themes/palmweb_2/template.php | ||
---|---|---|
105 | 105 |
} |
106 | 106 |
//Setting the Anchor to the Bibliography section if the option is enabled |
107 | 107 |
$show_bibliography = variable_get('cdm_show_bibliography', 1); |
108 |
$isBlockactive = null; |
|
109 | 108 |
|
110 |
$regions = system_region_list($theme); |
|
111 |
//$out.=print_r($regions); |
|
112 |
|
|
113 |
foreach (array_keys($regions) as $region) { |
|
114 |
//$out .= print($region['content']); |
|
115 |
$list = block_list($region); |
|
116 |
//$out.=print_r($list); |
|
117 |
foreach ($list as $block) { |
|
118 |
//$out .= print_r($block); |
|
119 |
} |
|
109 |
$markerTypes['markerTypes'] = '2e6e42d9-e92a-41f4-899b-03c0ac64f039'; |
|
110 |
$useDescriptions = cdm_ws_get(CDM_WS_PORTAL_TAXON_DESCRIPTIONS, substr(strrchr($_GET["q"], '/'), 1), queryString($markerTypes)); |
|
111 |
if(!empty($useDescriptions)) { |
|
112 |
$out .= '<li>'.l(t(theme('cdm_feature_name', 'Uses')), $_GET['q'], array("class"=>"toc"), NULL, generalizeString('UseRecords')).'</li>'; |
|
120 | 113 |
} |
121 | 114 |
|
122 |
//$region['content'] = 'content'; |
|
123 |
//$out .= print_r($regions); |
|
124 |
|
|
125 |
|
|
126 | 115 |
if ($show_bibliography && $countFeatures != 0) { |
127 | 116 |
$out .= '<li>'.l(t(theme('cdm_feature_name', 'Bibliography')), $_GET['q'], array("class"=>"toc"), NULL, generalizeString('Bibliography')).'</li>'; |
128 | 117 |
} |
... | ... | |
149 | 138 |
$featureRepresentation = isset($node->feature->representation_L10n) ? $node->feature->representation_L10n : 'Feature'; |
150 | 139 |
$block->module = 'cdm_dataportal'; |
151 | 140 |
//if the option is enabled the description elements will be added to the array |
152 |
//Testing the description title cache! |
|
153 |
//$test .= "<pre>" . print_r($node) . "</pre>"; |
|
154 | 141 |
$show_bibliography = variable_get('cdm_show_bibliography', 1); |
155 | 142 |
if ($show_bibliography) { |
156 | 143 |
$bibliographyOut[] = $node->descriptionElements; |
... | ... | |
166 | 153 |
/* |
167 | 154 |
* Content/DISTRIBUTION |
168 | 155 |
*/ |
169 |
$block->content = "Feature UUID:" . $node->feature->uuid; |
|
170 |
$block->content .= ' element UUID:' . $node->uuid; |
|
171 | 156 |
if($node->feature->uuid == UUID_DISTRIBUTION){ |
172 | 157 |
|
173 | 158 |
if(variable_get(DISTRIBUTION_TEXTDATA_DISPLAY_ON_TOP, 0)){ |
... | ... | |
208 | 193 |
* Content/ALL OTHER FEATURES |
209 | 194 |
*/ |
210 | 195 |
else if($node->feature->uuid == UUID_USE_RECORD) { |
211 |
$block->content .= "TOTO"; |
|
212 | 196 |
$block->content .= theme('cdm_block_Uses', $taxon->uuid); |
213 | 197 |
//$block->content .= theme('cdm_descriptionElements', $node->descriptionElements, $node->feature->uuid, $taxon->uuid), |
214 | 198 |
} |
215 |
/*else if ($node->feature->uuid == UUID_DESCRIPTION) { |
|
216 |
//$block->content .= print_r($node); |
|
217 |
}*/ |
|
218 |
else if ($node->feature->uuid == UUID_TEST) { |
|
219 |
//$block->content .= print_r($node); |
|
220 |
} |
|
221 | 199 |
else { |
222 | 200 |
$block->content .= theme('cdm_descriptionElements', $node->descriptionElements, $node->feature->uuid, $taxon->uuid); |
223 | 201 |
|
... | ... | |
388 | 366 |
$outTemp= array(); |
389 | 367 |
foreach ($references as $reference) { |
390 | 368 |
$referenceString = ''; |
391 |
//print_r($reference); |
|
392 | 369 |
switch ($reference->citation->type) { |
393 | 370 |
case "Journal": |
394 | 371 |
$referenceString .= "<li class=\"descriptionText DescriptionElement\">"; |
... | ... | |
818 | 795 |
} |
819 | 796 |
|
820 | 797 |
|
821 |
/*function palmweb_2_cdm_reference_page($referenceTO){ |
|
822 |
//print_r($referenceTO); |
|
823 |
$author_team = cdm_ws_get(CDM_WS_REFERENCE_AUTHORTEAM, $referenceTO->uuid); |
|
824 |
$nomenclatural = cdm_ws_get('portal/taxon/$0/descriptions', '1d91bd71-7109-4916-872f-a82b710a9cdf'); |
|
825 |
|
|
826 |
print_r($nomenclatural); |
|
827 |
return "TOTO"; |
|
828 |
}*/ |
|
829 |
|
|
830 | 798 |
|
831 | 799 |
/** |
832 | 800 |
* Sets the body-tag class attribute. |
Also available in: Unified diff
AT: committing latest changes to the dataportal code during first round of Code review