Sha256: 3d5cf15e5181b9ab48ea735f189c1afbba38de2b6f894ebc42ebf10aa26cbb1c

Contents?: true

Size: 1.1 KB

Versions: 22

Compression:

Stored size: 1.1 KB

Contents

# properties datastream: catch-all for info that didn't have another home.  Particularly depositor.
module Hydra::Datastream
  class Properties < ActiveFedora::OmDatastream
    extend Deprecation

    def initialize(*)
      super
      Deprecation.warn(Properties, "Hydra::Datastream::Properties is deprecated and will be removed in hydra-head 10.0")
    end

    set_terminology do |t|
      t.root(:path=>"fields", :xmlns => '', :namespace_prefix => nil) 

      # This is where we put the user id of the object depositor -- impacts permissions/access controls
      t.depositor :xmlns => '', :namespace_prefix => nil

      # @deprecated  Collection should be tracked in RELS-EXT RDF.  collection term will be removed no later than release 6.x
      t.collection :xmlns => '', :namespace_prefix => nil
      # @deprecated  Title should be tracked in descMetadata.  title term will be removed no later than release 6.x
      t.title :xmlns => '', :namespace_prefix => nil
    end

    def self.xml_template
      builder = Nokogiri::XML::Builder.new do |xml|
        xml.fields
      end

      builder.doc
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
hydra-core-9.10.0 app/models/hydra/datastream/properties.rb
hydra-core-9.9.0 app/models/hydra/datastream/properties.rb
hydra-core-9.8.1 app/models/hydra/datastream/properties.rb
hydra-core-9.8.0 app/models/hydra/datastream/properties.rb
hydra-core-9.7.1 app/models/hydra/datastream/properties.rb
hydra-core-9.7.0 app/models/hydra/datastream/properties.rb
hydra-core-9.6.0 app/models/hydra/datastream/properties.rb
hydra-core-9.5.0 app/models/hydra/datastream/properties.rb
hydra-core-9.4.1 app/models/hydra/datastream/properties.rb
hydra-core-9.4.0 app/models/hydra/datastream/properties.rb
hydra-core-9.3.0 app/models/hydra/datastream/properties.rb
hydra-core-9.2.2 app/models/hydra/datastream/properties.rb
hydra-core-9.2.1 app/models/hydra/datastream/properties.rb
hydra-core-9.2.0 app/models/hydra/datastream/properties.rb
hydra-core-9.2.0.rc1 app/models/hydra/datastream/properties.rb
hydra-core-9.1.4 app/models/hydra/datastream/properties.rb
hydra-core-9.1.3 app/models/hydra/datastream/properties.rb
hydra-core-9.1.2 app/models/hydra/datastream/properties.rb
hydra-core-9.1.1 app/models/hydra/datastream/properties.rb
hydra-core-9.1.0 app/models/hydra/datastream/properties.rb