Project

General

Profile

Revision e89c1115

IDe89c111509b7ec27018677402c1635d3eababfe1
Parent a5fbcd21
Child 5358baff

Added by Katja Luther over 1 year ago

details page for specimen with item list

View differences:

modules/cdm_dataportal/includes/pages.inc
1244 1244
 *
1245 1245
 * @ingroup compose
1246 1246
 */
1247
function compose_cdm_specimen_page($specimen)
1247
function compose_cdm_specimen_page($specimen_uuid)
1248 1248
{
1249 1249
  drupal_set_title("Specimen Details");
1250 1250
  $render_array = array();
......
1257 1257
          '#markup' => $detail_html
1258 1258
      );
1259 1259
  }else{
1260
      $detail_html = compose_cdm_specimen_or_observation($specimen, true);
1261
      $render_array['markup'] =  $detail_html;
1260
      $specimen_table = array(
1261
          '#theme' => 'table',
1262
          '#weight' => 2,
1263
          // prefix attributes and rows with '#' to let it pass toF the theme function,
1264
          // otherwise it is handled as child render array
1265
          '#attributes' => array('class' => 'specimens'),
1266
          '#rows' => array(),
1267
      );
1268
      $specimen = compose_cdm_specimen_or_observation($specimen_uuid, true);
1269
      $renderArray = array(
1270
              '#theme' => 'item_list',
1271
              '#items' => array($specimen),
1272
              '#type' => 'ul');
1273
      $output = drupal_render($renderArray);
1274

  
1275
      $specimen_table['#rows'][] = array(
1276
              // An array of table rows. Every row is an array of cells, or an associative array
1277
              'data' => array($output),
1278
              'class' =>  array(
1279
                  'descriptionElement',
1280
                  'descriptionElement_IndividualsAssociation'
1281
              ),
1282
      );
1283

  
1284

  
1285
     // $detail_html = compose_cdm_specimen_or_observation($specimen_uuid, true);
1286
      $render_array['markup'] =  $specimen_table;
1287

  
1262 1288
  }
1263 1289
  RenderHints::popFromRenderStack();
1264 1290
  return $render_array;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)