Browse Source

Merge pull request #670 from jonathangreen/ISLANDORA-1943

ISLANDORA-1943
pull/333/merge
Jordan Dukart 8 years ago committed by GitHub
parent
commit
5c351d1956
  1. 8
      theme/theme.inc

8
theme/theme.inc

@ -60,6 +60,11 @@ function islandora_preprocess_islandora_default_edit(array &$variables) {
'datastream' => $ds, 'datastream' => $ds,
)), )),
); );
}
elseif (user_access(ISLANDORA_VIEW_DATASTREAM_HISTORY)) {
$row[] = array();
}
if (islandora_datastream_access(ISLANDORA_VIEW_DATASTREAM_HISTORY, $ds)) {
// Add new datastream content as the lastest version. // Add new datastream content as the lastest version.
$row[] = array( $row[] = array(
'class' => 'datastream-replace', 'class' => 'datastream-replace',
@ -68,6 +73,9 @@ function islandora_preprocess_islandora_default_edit(array &$variables) {
)), )),
); );
} }
else {
$row[] = array();
}
$row[] = array( $row[] = array(
'class' => 'datastream-download', 'class' => 'datastream-download',
'data' => theme('islandora_datastream_download_link', array( 'data' => theme('islandora_datastream_download_link', array(

Loading…
Cancel
Save