Project

General

Profile

« Previous | Next » 

Revision a973da5b

Added by Andreas Kohlbecker over 13 years ago

fixing footnote order for distributions and commonnames

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.common.theme
111 111
 */
112 112
function theme_cdm_annotations_as_footnotekeys($cdmBase){
113 113
	
114
    $annotationUrl = cdm_compose_annotations_url($cdmBase);
115
    if($annotationUrl){
116
        $annotationPager = cdm_ws_get($annotationUrl, null, null, null, true);
117
        if($annotationPager->count > 0){
118
	        foreach($annotationPager->records as $annotation){
119
		        $footnoteKey = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey() . '-annotations', $annotation->text);
120
		        $out .=  theme('cdm_footnote_key', $footnoteKey, RenderHints::getFootnoteListKey() . '-annotations', (isset($out)? ',' : ''));
121
		        
122
//		        var_dump(RenderHints::getFootnoteListKey());
123
//		        var_dump(RenderHints::getRenderPath());
124
//	        	$footnoteKey = FootnoteManager::addNewFootnote(RenderHints::getRenderPath() . '-annotations', $annotation->text);
125
//            $out .=  theme('cdm_footnote_key', $footnoteKey, RenderHints::getRenderPath() . '-annotations', (isset($out)? ',' : ''));
126
	        }   
127
        }
114
	$footNoteKeys = cdm_annotations_as_footnotekeys($cdmBase);
115
	foreach($footNoteKeys as $footNoteKey){
116
	   $out .=  theme('cdm_footnote_key', $footnoteKey->keyStr, $footnoteKey->footnoteListKey, (isset($out)? ',' : ''));
128 117
    }
129 118
	return $out;
130 119
}

Also available in: Unified diff