Skip to content

Instantly share code, notes, and snippets.

@mjordan
Last active March 13, 2017 23:58
Show Gist options
  • Save mjordan/f1c8e84beb312e88c239 to your computer and use it in GitHub Desktop.
Save mjordan/f1c8e84beb312e88c239 to your computer and use it in GitHub Desktop.
$map = array(
'jpeg' => 'islandora:sp_basic_image',
'jpe' => 'islandora:sp_basic_image',
'jpeg' => 'islandora:sp_basic_image',
'gif' => 'islandora:sp_basic_image',
'png' => 'islandora:sp_basic_image',
'tif' => 'islandora:sp_large_image_cmodel',
'tiff' => 'islandora:sp_large_image_cmodel',
'jp2' => 'islandora:sp_large_image_cmodel',
'pdf' => 'islandora:sp_pdf',
'mp3' => 'islandora:sp-audioCModel',
'mp4a' => 'islandora:sp-audioCModel',
'm4a' => 'islandora:sp-audioCModel',
'oga' => 'islandora:sp-audioCModel',
'ogg' => 'islandora:sp-audioCModel',
'flac' => 'islandora:sp-audioCModel',
'wav' => 'islandora:sp-audioCModel',
'mp4' => 'islandora:sp_videoCModel',
'm4v' => 'islandora:sp_videoCModel',
'mkv' => 'islandora:sp_videoCModel',
'mpeg' => 'islandora:sp_videoCModel',
'mpe' => 'islandora:sp_videoCModel',
'mpg' => 'islandora:sp_videoCModel',
'qt' => 'islandora:sp_videoCModel',
'mov' => 'islandora:sp_videoCModel',
'ogv' => 'islandora:sp_videoCModel',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment