Sha256: 5328290dc1e11aebb3889ba6ac1e1d5cabe7199bea2939c1b774285f447e8e76

Contents?: true

Size: 946 Bytes

Versions: 37

Compression:

Stored size: 946 Bytes

Contents

# properties datastream: catch-all for info that didn't have another home.  Particularly depositor.
module Hydra::Datastream
  class Properties < ActiveFedora::NokogiriDatastream
    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

37 entries across 37 versions & 2 rubygems

Version Path
hydra-core-5.4.1 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre8 app/models/hydra/datastream/properties.rb
hydra-core-5.4.0 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre7 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre6 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre5 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre4 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre3 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre2 app/models/hydra/datastream/properties.rb
hydra-core-6.0.0.pre1 app/models/hydra/datastream/properties.rb
hydra-core-5.4.0.pre1 app/models/hydra/datastream/properties.rb
hydra-core-5.3.0 app/models/hydra/datastream/properties.rb
hydra-core-5.2.0 app/models/hydra/datastream/properties.rb
hydra-core-5.1.0 app/models/hydra/datastream/properties.rb
hydra-core-5.0.1 app/models/hydra/datastream/properties.rb
hydra-core-5.0.0 app/models/hydra/datastream/properties.rb
hydra-core-5.0.0.rc1 app/models/hydra/datastream/properties.rb
hydra-core-5.0.0.pre15 app/models/hydra/datastream/properties.rb
hydra-core-5.0.0.pre14 app/models/hydra/datastream/properties.rb
hydra-core-5.0.0.pre13 app/models/hydra/datastream/properties.rb