Browse Source

Fixed issue ISLANDORA-164.

pull/64/head
Nigel Banks 13 years ago
parent
commit
dd23ba456e
  1. 3
      ObjectHelper.inc

3
ObjectHelper.inc

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

Loading…
Cancel
Save