Module: Dor::Rightsable

Extended by:
ActiveSupport::Concern
Included in:
Abstract
Defined in:
lib/dor/models/concerns/rightsable.rb

Instance Method Summary collapse

Instance Method Details

#build_rightsMetadata_datastream(ds) ⇒ Object



9
10
11
12
13
# File 'lib/dor/models/concerns/rightsable.rb', line 9

def (ds)
  content_ds = admin_policy_object.datastreams['defaultObjectRights']
  ds.dsLabel = 'Rights Metadata'
  ds.ng_xml = content_ds.ng_xml.clone
end

#world_docObject



15
16
17
18
19
20
21
# File 'lib/dor/models/concerns/rightsable.rb', line 15

def world_doc
  Nokogiri::XML::Builder.new do |xml|
    xml.access(:type => 'read') {
      xml.machine { xml.world }
    }
  end.doc
end