Project

General

Profile

« Previous | Next » 

Revision 57e2ea1f

Added by Francisco Revilla about 14 years ago

changes related to the new dataportal name page. Tickets related with this topic which are now commited are #1496, 790 and 1354

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.page.theme
25 25
	return '<span class="'.$taxon->class.'">'.theme('cdm_taxonName', $taxon->name, null, $referenceUri, $renderPath).'</span>';
26 26
}
27 27

  
28
/**
29
 * Default title for a name page
30
 * @param $taxon_name The taxon name object
31
 * @return the formatted name title
32
 */
33
function theme_cdm_name_page_title($taxon_name){
34
  $renderPath = 'taxon_page_title';
35
  if(isset($taxon_name->nomenclaturalReference)){
36
    $referenceUri = url(path_to_reference($taxon_name->nomenclaturalReference->uuid));
37
  }
38
  return '<span class="'.$taxon_name->class.'">'.theme('cdm_taxonName', $taxon_name, null, $referenceUri, $renderPath).'</span>';
39
}
28 40

  
29 41
/**
30 42
 * A wrapper function that groups available information to show by default, when
......
192 204
		$typeDesignations = cdm_ws_get(CDM_WS_TAXON_NAMETYPEDESIGNATIONS, $taxon->uuid);
193 205
		if($typeDesignations){
194 206
			$out .= theme('cdm_typedesignations', $typeDesignations);
207
			//$out .= l('test', path_to_name($typeDesignations[0]->typeName->uuid), array(), NULL, NULL, FALSE, TRUE);
195 208
		}
196 209
	} else {
197 210
		// reder the homotypicSynonymyGroup including the type information

Also available in: Unified diff