|
|
|
@ -210,6 +210,7 @@ function islandora_menu() {
|
|
|
|
|
'page callback' => 'islandora_edit_datastream', |
|
|
|
|
'page arguments' => array(2, 4), |
|
|
|
|
'type' => MENU_CALLBACK, |
|
|
|
|
'file' => 'includes/datastream.inc', |
|
|
|
|
'access arguments' => array(FEDORA_METADATA_EDIT), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -672,7 +673,7 @@ function islandora_preprocess_islandora_default_edit(&$variables) {
|
|
|
|
|
array('data' => t('Type')), |
|
|
|
|
array('data' => t('Mime type')), |
|
|
|
|
array('data' => t('Size')), |
|
|
|
|
array('data' => t('Operations'), 'colspan' => '2'), |
|
|
|
|
array('data' => t('Operations'), 'colspan' => '3'), |
|
|
|
|
//array('data' => t('Delete')), |
|
|
|
|
); |
|
|
|
|
$table_attributes = array('class' => array('manage-datastreams')); |
|
|
|
@ -685,6 +686,7 @@ function islandora_preprocess_islandora_default_edit(&$variables) {
|
|
|
|
|
array('class' => 'datastream-mime', 'data' => $ds->mimeType), |
|
|
|
|
array('class' => 'datastream-size', 'data' => islandora_datastream_get_human_readable_size($ds)), |
|
|
|
|
array('class' => 'datastream-download', 'data' => l(t('download'), islandora_datastream_get_url($ds, 'download'))), |
|
|
|
|
array('class' => 'datstream-edit', 'data' => islandora_datastream_edit_get_link($islandora_object, $ds->id)), |
|
|
|
|
array('class' => 'datastream-delete', 'data' => l(t('delete'), $base_url . '/islandora/object/' . $islandora_object->id . '/datastream/' . $ds->id . '/delete')), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|