Revision 614b1592
Added by Andreas Kohlbecker over 13 years ago
modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
256 | 256 |
if(is_array($specimensOrObersvation->_derivedUnitMedia)){ |
257 | 257 |
$mediaList = array_merge($mediaList, $specimensOrObersvation->_derivedUnitMedia); |
258 | 258 |
} |
259 |
$li = '<tr class="descriptionElement descriptionElement_IndividualsAssociation '.($i%2?'odd':'even').'"><td>' . $specimensOrObersvation->titleCache; |
|
259 |
|
|
260 |
// --- render the title cache |
|
261 |
$out_row = '<tr class="descriptionElement descriptionElement_IndividualsAssociation '.($i%2?'odd':'even').'">'; |
|
262 |
if($specimensOrObersvation->class != 'FieldObservation'){ |
|
263 |
$label_html = cdm_dynabox($specimensOrObersvation->titleCache, |
|
264 |
cdm_compose_url('portal/'.CDM_WS_DERIVEDUNIT_FACADE, array($specimensOrObersvation->uuid)), |
|
265 |
'cdm_derivedUnitFacade', |
|
266 |
'Click for details', |
|
267 |
array('div', 'div')); |
|
268 |
} else { |
|
269 |
$label_html = $specimensOrObersvation->titleCache; |
|
270 |
} |
|
271 |
$out_row .= '<td>' . $label_html . '</td>'; |
|
272 |
|
|
273 |
// --- render associated media |
|
260 | 274 |
if(count($mediaList) > 0){ |
261 | 275 |
$gallery_settings = getGallerySettings(CDM_DATAPORTAL_SPECIMEN_GALLERY_NAME); |
262 | 276 |
$gallery_name = $specimensOrObersvation->uuid; |
... | ... | |
272 | 286 |
} else { |
273 | 287 |
$gallery_html = ''; |
274 | 288 |
} |
275 |
$li .= '</td><td>'.$gallery_html.'</td></tr>';
|
|
276 |
$out_specimenList .= $li;
|
|
289 |
$out_row .= '<td>'.$gallery_html.'</td></tr>';
|
|
290 |
$out_specimenList .= $out_row;
|
|
277 | 291 |
} |
278 | 292 |
$out_specimenList .= '</table>'; |
279 | 293 |
} |
280 | 294 |
|
281 |
$out .= drupal_get_form('specimens_search_form'); |
|
282 |
//$test = specimens_table($descriptionElements); |
|
283 |
//$out .= $test; |
|
284 |
|
|
285 | 295 |
$out .= $out_specimenList; |
286 | 296 |
|
287 | 297 |
|
Also available in: Unified diff
details on specimens