From 7b3463ba5acc59378f06b639018d5879b3c0e1fe Mon Sep 17 00:00:00 2001 From: Alan Stanley Date: Thu, 5 Jul 2012 11:14:07 -0300 Subject: [PATCH] added mappings for mkv and wmv files --- MimeClass.inc | 2 ++ fedora_repository.module | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MimeClass.inc b/MimeClass.inc index dacde76c..97825c41 100644 --- a/MimeClass.inc +++ b/MimeClass.inc @@ -175,6 +175,8 @@ class MimeClass { "movie" => "video/x-sgi-movie", "flv" => "video/x-flv", "swf" => "application/x-shockwave-flash", + 'mkv' => "video/x-matroska", + 'wmv' => 'video/x-ms-wmv', // audio: "mp3" => "audio/mpeg", "mp4a" => "audio/mp4", diff --git a/fedora_repository.module b/fedora_repository.module index 6b59ed9a..677fb8be 100644 --- a/fedora_repository.module +++ b/fedora_repository.module @@ -125,7 +125,7 @@ function fedora_repository_ingest_form_submit(array $form, array &$form_state) { module_load_include('inc', 'fedora_repository', 'CollectionClass'); module_load_include('inc', 'fedora_repository', 'CollectionPolicy'); module_load_include('inc', 'fedora_repository', 'ContentModel'); - +var_dump($form_state); $contentModelPid = ContentModel::getPidFromIdentifier($form_state['values']['models']); $contentModelDsid = ContentModel::getDSIDFromIdentifier($form_state['values']['models']); $err = TRUE;