Project

General

Profile

« Previous | Next » 

Revision c0ac3382

Added by Andreas Kohlbecker over 16 years ago

View differences:

modules/cdm_dataportal/cdm_dataportal.module
93 93
  }
94 94
  drupal_add_css(drupal_get_path('module', 'cdm_dataportal').'/cdm_dataportal.css');
95 95
  return $items;
96
  
96 97
}
97 98

  
98 99
/**
......
124 125
        return $block;
125 126
      case 1:
126 127
        $block['subject'] = t('Credits');
127
        $block['content'] = theme('cdm_dataportal_credits');
128
        //$_SESSION['cdm']['currentSecRef']['uuid']
129
        return;
128
        $block['content'] = theme('cdm_credits');
129
        return $block;
130 130
    }
131 131
  }
132 132
}
......
244 244

  
245 245
  $taxonTO = cdm_ws_get_taxon($uuid);
246 246

  
247
  _cdm_dataportal_set_currentSecUuid($taxonTO);
247
  _cdm_dataportal_set_currentSecUuid($taxonTO->secUuid);
248 248

  
249 249
  drupal_set_title(theme('cdm_taxon', $taxonTO, true));
250 250
  //TODO retrieve complete synonymy and other data
......
313 313
 */
314 314
function _cdm_dataportal_set_currentSecUuid($secUuid){
315 315

  
316
  if( !isset($_SESSION['cdm']['currentSecRef']) ||  $_SESSION['cdm']['currentSecRef']['uuid'] != $secUuid){
316
  if( !isset($_SESSION['cdm']['currentSecRef']['uuid']) ||  $_SESSION['cdm']['currentSecRef']['uuid'] != $secUuid){
317 317
    $secRef = cdm_ws_get_reference($secUuid);
318 318
    $_SESSION['cdm']['currentSecRef'] = (array)$secRef;
319 319
  }
......
328 328
 */
329 329
function _cdm_dataportal_currentSecRef_array(){
330 330
  
331
  if( !isset($_SESSION['cdm']['currentSecRef'])){
331
  if( !isset($_SESSION['cdm']['currentSecRef']['uuid'])){
332 332
     $secUuid = variable_get('cdm_secUuid_default', false);
333 333
     _cdm_dataportal_set_currentSecUuid($secUuid);
334 334
  }

Also available in: Unified diff