|
|
@ -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>'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|