Islandora-Labs / islandora_solution_pack_oralhistories

Adds all required Fedora objects to allow users to ingest and retrieve Oral Histories (video/audio) files through the Islandora interface
GNU General Public License v3.0
13 stars 23 forks source link

multiple datastream version issues #87

Closed Natkeeran closed 7 years ago

Natkeeran commented 7 years ago

What does this Pull Request do?

Resolves this issue: https://github.com/digitalutsc/islandora_solution_pack_oralhistories/issues/85

What's new?

As per this thread https://groups.google.com/forum/#!searchin/islandora-dev/hook_islandora_derivative_alter%7Csort:relevance/islandora-dev/GOhw6GhF_9Q/WOT5tUeuBwAJ, if a property is set to the datastream, it tends to create a new version. Added a test to avoid unnecessarily setting the mimetype property, which was causing the multiple versions.

How should this be tested?

MarcusBarnes commented 7 years ago

Tested and works as described. Thank you @Natkeeran.