Browse Source

updated caption for datastreams table

pull/117/merge
Paul Pound 13 years ago
parent
commit
465ea079a2
  1. 2
      islandora-object-edit.tpl.php
  2. 3
      islandora.module

2
islandora-object-edit.tpl.php

@ -44,7 +44,7 @@
//dsm($object); //dsm($object);
drupal_set_title($islandora_object->label); drupal_set_title($islandora_object->label);
print($islandora_object->label . ' ' . $islandora_object->id); //print($islandora_object->label . ' ' . $islandora_object->id);
print ($variables['datastream_table']); print ($variables['datastream_table']);
?> ?>

3
islandora.module

@ -659,6 +659,7 @@ function islandora_preprocess_islandora_default_edit(&$variables) {
array('class' => 'datastream-delete', 'data' => l(t('delete'), $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/delete')), array('class' => 'datastream-delete', 'data' => l(t('delete'), $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/delete')),
); );
} }
$table = array('colgroups' => NULL, 'sticky' => TRUE, 'empty' => 'Error loading datastreams', 'caption' => NULL, 'header' => $header, 'rows' => $rows, 'attributes' => $table_attributes); $caption = $islandora_object->label . ' - ' . $islandora_object->id;
$table = array('colgroups' => NULL, 'sticky' => TRUE, 'empty' => 'Error loading datastreams', 'caption' => $caption, 'header' => $header, 'rows' => $rows, 'attributes' => $table_attributes);
$variables['datastream_table'] = theme_table($table); $variables['datastream_table'] = theme_table($table);
} }
Loading…
Cancel
Save