Revision 8b647486
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/includes/occurrences_new.inc | ||
---|---|---|
38 | 38 |
* Currently unused, but added for compatibility with |
39 | 39 |
* compose_cdm_specimen_or_observation($specimen_or_observation, |
40 | 40 |
* $isSpecimen_page = false, &$derivatives = null) |
41 |
* @param array $derivatives |
|
42 |
* the render array which contains the compositions of the derivatives |
|
43 |
* of the supplied $specimenOrObservation |
|
44 | 41 |
* |
45 | 42 |
* @return array |
46 | 43 |
* The render array for the SpecimenOrObservationDTO |
47 | 44 |
* |
48 | 45 |
* @ingroup compose |
49 | 46 |
*/ |
50 |
function compose_cdm_specimen_or_observation_dto_details_grid($sob_dto, $compact_mode = FALSE, &$derivatives = NULL) {
|
|
47 |
function compose_cdm_specimen_or_observation_dto_details_grid($sob_dto, $compact_mode = FALSE) { |
|
51 | 48 |
$render_array = []; |
52 | 49 |
if (!$sob_dto) { |
53 | 50 |
return $render_array; |
... | ... | |
643 | 640 |
} |
644 | 641 |
******/ |
645 | 642 |
|
646 |
RenderHints::setFootnoteListKey($sob_dto->type . '-' . $sob_dto->uuid); |
|
643 |
RenderHints::pushToRenderStack('specimen_or_observation'); |
|
644 |
$footnote_list_key = $sob_dto->type . '-' . $sob_dto->uuid; |
|
645 |
RenderHints::setFootnoteListKey($footnote_list_key); |
|
647 | 646 |
|
648 | 647 |
$render_array['sob_details_grid'] = [ |
649 | 648 |
'#type' => 'container', |
... | ... | |
771 | 770 |
|
772 | 771 |
|
773 | 772 |
|
774 |
|
|
773 |
$render_array['footnotes'] = markup_to_render_array(render_footnotes($footnote_list_key)); |
|
775 | 774 |
|
776 | 775 |
|
777 | 776 |
} // END of $specimenOrObservation exists |
Also available in: Unified diff
ref #6866 showing footnotes in specimen page