Browse Source

Merge pull request #64 from nigelgbanks/ISLANDORA-164

Islandora 164 Fixed
pull/66/merge
Ben Woodhead 13 years ago
parent
commit
c5c5779451
  1. 3
      ObjectHelper.inc

3
ObjectHelper.inc

@ -336,11 +336,12 @@ class ObjectHelper {
$versions = $item->get_datastream_history($id);
if (is_array($versions)) {
$downloadVersion = '<form method="GET" action="' . $action . '" onsubmit="this.action=\'' . $action . '\' + \'/\'+this.version.value;">';
$downloadVersion .= '<input type="submit" value="' . t('Download') . '">';
$downloadVersion .= '<select name="version">';
foreach ($versions as $version) {
$downloadVersion .= '<option>' . $version->createDate . '</option>';
}
$downloadVersion .= '</select><input type="submit" value="' . t('Download') . '"></form>';
$downloadVersion .= '</select></form>';
}
}

Loading…
Cancel
Save