config/initializers/active_fedora_base.rb in ddr-models-2.8.0 vs config/initializers/active_fedora_base.rb in ddr-models-2.9.0.rc1
- old
+ new
@@ -67,9 +67,17 @@
def has_thumbnail?
can_have_thumbnail? && thumbnail.has_content?
end
+ def captionable?
+ datastreams.include? Ddr::Datastreams::CAPTION
+ end
+
+ def captioned?
+ captionable? && datastreams[Ddr::Datastreams::CAPTION].has_content?
+ end
+
def can_be_streamable?
datastreams.include? Ddr::Datastreams::STREAMABLE_MEDIA
end
def streamable?