Project

General

Profile

Revision 93f3d033

ID93f3d03390817bd9f096095ee3890f9067d853b3
Parent dfb24d50
Child 4ea4c60e

Added by Andreas Kohlbecker about 2 months ago

ref #9034 removing preliminar life span code with extensions

View differences:

modules/cdm_dataportal/includes/agent.inc
20 20
  }
21 21

  
22 22
  $visible_extensions_sorted = visible_extensions_sorted($agent);
23
  // FIXME:-------------- "Life span" as Extension -------------
24
  $lifespan_extension = null;
25
  // 7d1a269b-9bdd-44eb-beba-2f8acee941af is the phycobank specific ext type for "Life span" which will become obsolete!!!!
26
  if(isset($visible_extensions_sorted['7d1a269b-9bdd-44eb-beba-2f8acee941af'])){
27
    // as first element after the titleCache
28
    $lifespan_extension = $visible_extensions_sorted['7d1a269b-9bdd-44eb-beba-2f8acee941af'][0]->value;
29
    unset($visible_extensions_sorted['7d1a269b-9bdd-44eb-beba-2f8acee941af']);
30
  }
31 23
  // ------------------------------------
32
  if(!$lifespan_extension && isset($agent->lifespan)){
24
  if(isset($agent->lifespan)){
33 25
    $names_and_lifespan .= ', ' . timePeriodToString($agent->lifespan);
34
  } else {
35
    $names_and_lifespan .= ", " . $lifespan_extension;
36 26
  }
37

  
38 27
  $names_and_lifespan_markup = '<div class="names-and-lifespan">' . $names_and_lifespan . '</div> ';
39 28

  
40 29
  $name_details = [];

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)