Browse Source

allwed for existing non-standard mimetype

pull/547/head
Alan Stanley 10 years ago
parent
commit
9b49ec7bbf
  1. 4
      includes/datastream.version.inc

4
includes/datastream.version.inc

@ -282,7 +282,11 @@ function islandora_datastream_version_replace_form($form, &$form_state, Abstract
$form_state['dsid'] = $datastream->id; $form_state['dsid'] = $datastream->id;
$form_state['object'] = $object; $form_state['object'] = $object;
$datastream_mime_map = islandora_get_object_extensions($object); $datastream_mime_map = islandora_get_object_extensions($object);
$current_mime = $datastream->mimetype;
$mimes = $datastream_mime_map[$datastream->id]['mime']; $mimes = $datastream_mime_map[$datastream->id]['mime'];
if (!in_array($current_mime, $mimes)) {
$mimes[] = $current_mime;
}
$extensions = array(); $extensions = array();
foreach ($mimes as $mime) { foreach ($mimes as $mime) {
$extensions = array_merge($extensions, islandora_get_extensions_for_mimetype($mime)); $extensions = array_merge($extensions, islandora_get_extensions_for_mimetype($mime));

Loading…
Cancel
Save