Revision a6c4c53c
Added by Andreas Kohlbecker almost 4 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
2810 | 2810 |
*/ |
2811 | 2811 |
function cdm_annotations_as_footnotekeys($cdm_entities, $footnote_list_key_suggestion = NULL) { |
2812 | 2812 |
|
2813 |
$footNoteKeys = array();
|
|
2813 |
$foot_note_keys = array();
|
|
2814 | 2814 |
|
2815 | 2815 |
// Is argument cdmBase an array? |
2816 | 2816 |
if (!is_array($cdm_entities)) { |
2817 |
$cdmBase_array = array();
|
|
2818 |
$cdmBase_array[] = $cdm_entities;
|
|
2817 |
$enties = array();
|
|
2818 |
$enties[] = $cdm_entities;
|
|
2819 | 2819 |
} |
2820 | 2820 |
else { |
2821 |
$cdmBase_array = $cdm_entities;
|
|
2821 |
$enties = $cdm_entities;
|
|
2822 | 2822 |
} |
2823 | 2823 |
|
2824 | 2824 |
// Getting the key for the footnotemanager. |
... | ... | |
2830 | 2830 |
} |
2831 | 2831 |
|
2832 | 2832 |
// Adding the footnotes keys. |
2833 |
foreach ($cdmBase_array as $cdmBase_element) {
|
|
2834 |
$annotations = cdm_fetch_visible_annotations($cdmBase_element);
|
|
2833 |
foreach ($enties as $cdm_entity) {
|
|
2834 |
$annotations = cdm_fetch_visible_annotations($cdm_entity);
|
|
2835 | 2835 |
if (is_array($annotations)) { |
2836 | 2836 |
foreach ($annotations as $annotation) { |
2837 |
$footNoteKeys[] = FootnoteManager::addNewFootnote($footnote_list_key, $annotation->text);
|
|
2837 |
$foot_note_keys[] = FootnoteManager::addNewFootnote($footnote_list_key, $annotation->text);
|
|
2838 | 2838 |
} |
2839 | 2839 |
} |
2840 | 2840 |
} |
2841 | 2841 |
|
2842 |
return $footNoteKeys;
|
|
2842 |
return $foot_note_keys;
|
|
2843 | 2843 |
} |
2844 | 2844 |
|
2845 | 2845 |
|
Also available in: Unified diff
ref #8134 dealing with web service problems returning list instead of pagers and better placement of footnotes