config/initializers/active_fedora_base.rb in ddr-models-2.7.6 vs config/initializers/active_fedora_base.rb in ddr-models-2.8.0.rc1

- old
+ new

@@ -67,9 +67,17 @@ def has_thumbnail? can_have_thumbnail? && thumbnail.has_content? end + def can_be_streamable? + datastreams.include? Ddr::Datastreams::STREAMABLE_MEDIA + end + + def streamable? + can_be_streamable? && datastreams[Ddr::Datastreams::STREAMABLE_MEDIA].has_content? + end + def safe_id id.sub(/:/, "-") end # For duck-typing with SolrDocument