Project

General

Profile

« Previous | Next » 

Revision 317b632e

Added by Francisco Revilla almost 14 years ago

adding acronyms footnotes #1581

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.name.theme
15 15
function theme_cdm_typedesignations($typeDesignations = array()){
16 16

  
17 17
	RenderHints::pushToRenderStack('typedesignations');
18
	RenderHints::setFootnoteListKey(UUID_SYNONYM_OF);
18 19
	_add_js_cluetip();
19 20
	$out = '<ul class="typeDesignations">';
20 21

  
......
78 79

  
79 80
			$out .= '<li class="specimenTypeDesignation">';
80 81
			$out .= '<span class="status">'.(($std->typeStatus->representation_L10n) ? $std->typeStatus->representation_L10n : t('Type')) .$typeReference.'</span>: '.$std->typeSpecimen->titleCache;
81
			//$out .= '<span class="status">'.(($std->typeStatus->representation_L10n) ? $std->typeStatus->representation_L10n : t('Type')) .$typeReference.'</span>: '.$std->typeSpecimen->titleCache . ' footnote: '. theme_cdm_footnote($std->typeSpecimen->collection->code, $std->typeSpecimen->collection->titleCache);
82
  
83 82
			$out .= theme('cdm_specimen', $std->typeSpecimen);
83
			//footnotes for synonymy acronyms 
84
			$_fkey = FootnoteManager::addNewFootnote(RenderHints::getRenderPath(), $std->typeSpecimen->collection->titleCache);
85
      $out .= theme('cdm_footnote_key', $_fkey, RenderHints::getRenderPath());		
84 86
			$out .= '</li>';
85 87
		}
86 88
	}
87 89

  
88 90
	$out .= '</ul>';
89

  
91
	//render the footnotes at the end of the page
92
  $out .= theme('cdm_footnotes', RenderHints::getRenderPath());
90 93
	RenderHints::popFromRenderStack();
91 94
	return $out;
92 95
}

Also available in: Unified diff