Revision bb4e2e49
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/includes/occurrences_new.inc | ||
---|---|---|
189 | 189 |
* @return array |
190 | 190 |
* The render array for the SpecimenOrObservationDTO |
191 | 191 |
* |
192 |
* @throws \Exception |
|
193 | 192 |
* @ingroup compose |
194 | 193 |
*/ |
195 | 194 |
function compose_cdm_specimen_or_observation_dto($sob_dto, $compact_mode = FALSE, &$derivatives = NULL) { |
... | ... | |
219 | 218 |
* |
220 | 219 |
* compose_hook() implementation |
221 | 220 |
* |
222 |
* @param object $sob_dto
|
|
221 |
* @param object $fu_dto
|
|
223 | 222 |
* the CDM FieldUnitDTO |
224 | 223 |
* the render array for. |
225 | 224 |
* @param bool $compact_mode |
... | ... | |
228 | 227 |
* @return array |
229 | 228 |
* The render array for the SpecimenOrObservationDTO |
230 | 229 |
* |
231 |
* @throws \Exception |
|
232 | 230 |
* @ingroup compose |
233 | 231 |
*/ |
234 | 232 |
function compose_cdm_field_unit_dto_location($fu_dto, $compact_mode = FALSE) { |
235 | 233 |
|
236 |
$table_heading = "Location"; |
|
237 |
|
|
238 | 234 |
$table_row_data = []; |
239 | 235 |
if (isset_not_empty($fu_dto->sex)) { |
240 | 236 |
$table_row_data[] = cdm_sob_dto_table_row(cdm_occurrence_field_name_label('sex'), cdm_term_representation($fu_dto->sex)); |
... | ... | |
276 | 272 |
* |
277 | 273 |
* compose_hook() implementation |
278 | 274 |
* |
279 |
* @param object $sob_dto
|
|
275 |
* @param object $gathering_dto
|
|
280 | 276 |
* the CDM FieldUnitDTO |
281 | 277 |
* the render array for. |
282 | 278 |
* @param bool $compact_mode |
... | ... | |
285 | 281 |
* @return array |
286 | 282 |
* The render array for the SpecimenOrObservationDTO |
287 | 283 |
* |
288 |
* @throws \Exception |
|
289 | 284 |
* @ingroup compose |
290 | 285 |
*/ |
291 | 286 |
function compose_cdm_gathering_dto($gathering_dto, $compact_mode = FALSE) { |
... | ... | |
356 | 351 |
* @param $table_heading |
357 | 352 |
* @param array $table_row_data |
358 | 353 |
* @param $sob_dto |
354 |
* @param $weight |
|
355 |
* The weight determining the order of the drupal render element |
|
356 |
* |
|
357 |
* @return array|null |
|
359 | 358 |
*/ |
360 | 359 |
function cdm_sob_dto_table($table_heading, array $table_row_data, $sob_dto, $weight = null) { |
361 | 360 |
if(count($table_row_data) > 0 ) { |
... | ... | |
380 | 379 |
} |
381 | 380 |
return $sob_table; |
382 | 381 |
} |
382 |
return null; |
|
383 | 383 |
} |
384 | 384 |
|
385 | 385 |
function cdm_sob_dto_table_row($label, $value) { |
... | ... | |
396 | 396 |
'no_striping' => TRUE, |
397 | 397 |
]; |
398 | 398 |
} |
399 |
return null; |
|
399 | 400 |
} |
Also available in: Unified diff
ref #7599 ref #6866 specimen details in floating tables - cleaning