From 465ea079a23115003f5bcb969e01973d27114bf4 Mon Sep 17 00:00:00 2001 From: Paul Pound Date: Tue, 29 May 2012 12:16:09 -0300 Subject: [PATCH] updated caption for datastreams table --- islandora-object-edit.tpl.php | 2 +- islandora.module | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/islandora-object-edit.tpl.php b/islandora-object-edit.tpl.php index 3145cf44..409c9781 100644 --- a/islandora-object-edit.tpl.php +++ b/islandora-object-edit.tpl.php @@ -44,7 +44,7 @@ //dsm($object); drupal_set_title($islandora_object->label); -print($islandora_object->label . ' ' . $islandora_object->id); +//print($islandora_object->label . ' ' . $islandora_object->id); print ($variables['datastream_table']); ?> diff --git a/islandora.module b/islandora.module index 2c1c694c..750fccaf 100644 --- a/islandora.module +++ b/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')), ); } - $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); } \ No newline at end of file