Project

General

Profile

« Previous | Next » 

Revision 3147f061

Added by Francisco Revilla almost 14 years ago

misc changes on layout

View differences:

modules/cdm_dataportal/cdm_dataportal.module
1250 1250
  //$taxon_pager = cdm_ws_get(CDM_WS_FIND_TAXA, null, queryString($request_params));
1251 1251
  $taxon_pager = cdm_ws_get(CDM_WS_PORTAL_TAXON_FIND, null, queryString($request_params));
1252 1252
  
1253
  if (sizeof($taxon_pager->records) == 1){
1254
  	drupal_goto('cdm_dataportal/taxon/' . $taxon_pager->records[0]->uuid);
1255
  }else{
1256
    $taxon_name_page->title = theme('cdm_name_page_title', $taxon_name);
1257
    if($taxon_pager->records){
1258
      $taxon_name_page->content = theme_cdm_list_of_taxa($taxon_pager->records, false);
1259
    }else{
1260
      $taxon_name_page->content = 'This name has no taxa';
1261
    }
1262
    return $taxon_name_page; 
1263
  }
1264
  
1253 1265
  //_cdm_dataportal_set_currentSecUuid($taxon->sec->uuid);
1254 1266
  
1255 1267
  //generating the returned object
1256
  $taxon_name_page->title = theme('cdm_name_page_title', $taxon_name);
1257
  if($taxon_pager->records){
1258
    $taxon_name_page->content = theme_cdm_list_of_taxa($taxon_pager->records, false);
1259
  }else{
1260
    $taxon_name_page->content = 'This name has no taxa';
1261
  }
1262 1268

  
1263
  return $taxon_name_page; 
1264 1269
}
1265 1270

  
1266 1271
function cdm_dataportal_view_search_advanced(){

Also available in: Unified diff