Class: Dor::DefaultObjectRightsDS

Inherits:
ActiveFedora::OmDatastream
  • Object
show all
Defined in:
lib/dor/datastreams/default_object_rights_ds.rb

Class Method Summary collapse

Class Method Details

.xml_templateObject


26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/dor/datastreams/default_object_rights_ds.rb', line 26

def self.xml_template
    Nokogiri::XML::Builder.new do |xml|
      xml.{
        xml.access(:type => 'discover'){
          xml.machine{
            xml.world
          }
        } 
        xml.access(:type => 'read'){
          xml.machine{
            xml.world
          }
        }
        xml.use{
          xml.human(:type => 'useAndReproduction')
          xml.human(:type => "creativeCommons")
          xml.machine(:type => "creativeCommons")
        }
        xml.copyright{
          xml.human
        }
      
    }
  end.doc
end