diff --git a/includes/object_properties.inc b/includes/object_properties.inc index c8589e62..97dd20a4 100644 --- a/includes/object_properties.inc +++ b/includes/object_properties.inc @@ -64,6 +64,7 @@ function islandora_edit_properties_form_submit($form, &$form_state) { function islandora_edit_properties_form($form, &$form_state, $object_id) { $form = array(); $islandora_object = islandora_get_object($object_id); + drupal_set_title($islandora_object->label); if (!isset($islandora_object)) { return NULL; } diff --git a/islandora.module b/islandora.module index dcbb92ac..dbfad96b 100644 --- a/islandora.module +++ b/islandora.module @@ -659,20 +659,26 @@ function islandora_preprocess_islandora_default_edit(&$variables) { module_load_include('inc', 'islandora', 'includes/datastream'); // $variables['add_datastream_form'] = drupal_get_form('islandora_add_datastream_form', $islandora_object->id); $header = array( + array('data' => t('ID')), + array('data' => t('Type')), + array('data' => t('Mime type')), array('data' => t('Label')), - array('data' => t('Operations'),'colspan' => '2'), - //array('data' => t('Delete')), + array('data' => t('Operations'), 'colspan' => '2'), + //array('data' => t('Delete')), ); $table_attributes = array('class' => array('manage-datastrea')); $rows = array(); foreach ($islandora_object as $ds) { $rows[] = array( + array('class' => 'datastream-label', 'data' => l($ds->id, $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/view')), + array('class' => 'datastream-label', 'data' => $ds->controlGroup), + array('class' => 'datastream-label', 'data' => $ds->mimeType), array('class' => 'datastream-label', 'data' => l($ds->label, $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/view')), - array('class' => 'datastream-download', 'data' => l(t('download'), $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/download')), + array('class' => 'datastream-download', 'data' => l(t('download'), $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/download')), array('class' => 'datastream-delete', 'data' => l(t('delete'), $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/delete')), - ); + ); } $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); + $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 diff --git a/islandora_basic_collection/admin/islandora_basic_collection.admin.inc b/islandora_basic_collection/admin/islandora_basic_collection.admin.inc index 8311f3e8..1536de3b 100644 --- a/islandora_basic_collection/admin/islandora_basic_collection.admin.inc +++ b/islandora_basic_collection/admin/islandora_basic_collection.admin.inc @@ -10,6 +10,13 @@ function islandora_basic_collection_admin() { on a view tab you may have multiple modules configured to provide content for the default tab.'), '#weight' => -10 ); + $form['islandora_basic_collection_page_size'] = array( + '#type' => 'textfield', + '#title' => t('The default number of objects to show for a collection'), + '#default_value' => variable_get('islandora_basic_collection_page_size', '10'), + '#description' => t('The default number of object to show in a collection view.'), + '#weight' => -10 + ); return system_settings_form($form); } diff --git a/islandora_basic_collection/islandora-basic-collection.tpl.php b/islandora_basic_collection/islandora-basic-collection.tpl.php index da5de757..92c9ec5f 100644 --- a/islandora_basic_collection/islandora-basic-collection.tpl.php +++ b/islandora_basic_collection/islandora-basic-collection.tpl.php @@ -25,11 +25,13 @@