diff --git a/images/bluefolder.png b/images/bluefolder.png new file mode 100644 index 00000000..f0f9e08c Binary files /dev/null and b/images/bluefolder.png differ diff --git a/images/greenfolder.png b/images/greenfolder.png new file mode 100644 index 00000000..ff6aff01 Binary files /dev/null and b/images/greenfolder.png differ diff --git a/images/purplefolder.png b/images/purplefolder.png new file mode 100644 index 00000000..71428ca5 Binary files /dev/null and b/images/purplefolder.png differ diff --git a/images/redfolder.png b/images/redfolder.png new file mode 100644 index 00000000..78bf0a33 Binary files /dev/null and b/images/redfolder.png differ diff --git a/images/tealfolder.png b/images/tealfolder.png new file mode 100644 index 00000000..7e8b5a1b Binary files /dev/null and b/images/tealfolder.png differ diff --git a/images/yellowfolder.png b/images/yellowfolder.png new file mode 100644 index 00000000..33935b75 Binary files /dev/null and b/images/yellowfolder.png differ diff --git a/islandora.module b/islandora.module index 603ab6a0..171e8ca9 100644 --- a/islandora.module +++ b/islandora.module @@ -1372,7 +1372,33 @@ function islandora_islandora_required_objects(IslandoraTuque $connection) { $datastream = $root_collection->constructDatastream('TN', 'M'); $datastream->label = 'Thumbnail'; $datastream->mimetype = 'image/png'; - $datastream->setContentFromFile("$module_path/images/folder.png", FALSE); + + // randomly pick a colour for the folder + $randomColour = mt_rand(1,7); + switch ($randomColour) { + case 1: + $datastream->setContentFromFile("$module_path/images/folder.png", FALSE); + break; + case 2: + $datastream->setContentFromFile("$module_path/images/redfolder.png", FALSE); + break; + case 3: + $datastream->setContentFromFile("$module_path/images/bluefolder.png", FALSE); + break; + case 4: + $datastream->setContentFromFile("$module_path/images/yellowfolder.png", FALSE); + break; + case 5: + $datastream->setContentFromFile("$module_path/images/greenfolder.png", FALSE); + break; + case 6: + $datastream->setContentFromFile("$module_path/images/purplefolder.png", FALSE); + break; + case 7: + $datastream->setContentFromFile("$module_path/images/tealfolder.png", FALSE); + break; + } + $root_collection->ingestDatastream($datastream); return array( 'islandora' => array(