Sha256: 842299743334decb9c72b37214f7dcb91236b7408e1c9887f1651850f7c40dd7

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

module Hydra::Datastream
  class Properties < ActiveFedora::NokogiriDatastream
    set_terminology do |t|
      t.root(:path=>"fields", :xmlns => '', :namespace_prefix => nil) 

      t.collection :xmlns => '', :namespace_prefix => nil
      t.depositor :xmlns => '', :namespace_prefix => nil
      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

4 entries across 4 versions & 1 rubygems

Version Path
hydra-head-4.0.0 app/models/hydra/datastream/properties.rb
hydra-head-4.0.0.rc6 app/models/hydra/datastream/properties.rb
hydra-head-4.0.0.rc5 app/models/hydra/datastream/properties.rb
hydra-head-4.0.0.rc4 app/models/hydra/datastream/properties.rb