Project

General

Profile

« Previous | Next » 

Revision 9781aceb

Added by Andreas Kohlbecker almost 14 years ago

refactoring footnote system

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
235 235
	            foreach($element->sources as $source){
236 236
	                if(_is_original_source_type($source)){ 
237 237
	                  $_fkey = FootnoteManager::addNewFootnote(UUID_COMMON_NAME, theme('cdm_DescriptionElementSource', $source, false));
238
	                  $sourcesFootnoteKeyList .= theme('cdm_footnote_key', $_fkey, UUID_COMMON_NAME, ($sourcesFootnoteKeyList ? $separator : ''));
238
	                  $sourcesFootnoteKeyList .= theme('cdm_footnote_key', $_fkey, ($sourcesFootnoteKeyList ? $separator : ''));
239 239
	                }
240 240
	            }
241 241
				$rendered_element_list .= (strlen($rendered_element_list) > 0 ? ', ': '') . $element->name . $sourcesFootnoteKeyList;
......
318 318
		// source references as footnotes
319 319
		foreach($descriptionElement->sources as $source){
320 320
			if(_is_original_source_type($source)){
321
			 $_fkey = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey(), theme('cdm_DescriptionElementSource', $source, false));
322
			 $footNoteKeys[] = new FootnoteKey($_fkey, RenderHints::getFootnoteListKey());
321
			    $footNoteKeys[] = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey(), theme('cdm_DescriptionElementSource', $source, false));
323 322
			}
324 323
		}
325 324
		// sort and render footnote keys
326 325
		$footnoteKeyListStr = '';
327 326
		asort($footNoteKeys);
328 327
        foreach($footNoteKeys as $footNoteKey){
329
			$footnoteKeyListStr .= theme('cdm_footnote_key', $footNoteKey->keyStr, $footnoteKey->footnoteListKey, ($footnoteKeyListStr ? $separator : ''));
328
			$footnoteKeyListStr .= theme('cdm_footnote_key', $footNoteKey, ($footnoteKeyListStr ? $separator : ''));
330 329
        }
331 330
		
332 331
        

Also available in: Unified diff