lib/hydra/mods_image.rb in hydra-head-4.0.0.rc2 vs lib/hydra/mods_image.rb in hydra-head-4.0.0.rc3

- old
+ new

@@ -1,8 +1,13 @@ module Hydra class ModsImage < ActiveFedora::NokogiriDatastream include Hydra::CommonModsIndexMethods + def initialize(digital_object, dsid, options={}) + ActiveSupport::Deprecation.warn("Hydra::ModsImage has been deprecated. Use Hydra::Datastream::ModsImage instead") + super + end + set_terminology do |t| t.root(:path=>"mods", :xmlns=>"http://www.loc.gov/mods/v3", :schema=>"http://www.loc.gov/standards/mods/v3/mods-3-2.xsd") t.title_info(:path=>"titleInfo") { t.main_title(:path=>"title", :label=>"title")