Skip to content

Commit

Permalink
Merge pull request #670 from jonathangreen/ISLANDORA-1943
Browse files Browse the repository at this point in the history
ISLANDORA-1943
  • Loading branch information
jordandukart committed Apr 7, 2017
2 parents 1d51b69 + 55619f1 commit 5c351d1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions theme/theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ function islandora_preprocess_islandora_default_edit(array &$variables) {
'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.
$row[] = array(
'class' => 'datastream-replace',
Expand All @@ -68,6 +73,9 @@ function islandora_preprocess_islandora_default_edit(array &$variables) {
)),
);
}
else {
$row[] = array();
}
$row[] = array(
'class' => 'datastream-download',
'data' => theme('islandora_datastream_download_link', array(
Expand Down

0 comments on commit 5c351d1

Please sign in to comment.