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
11 12 13 14 15 |
# File 'lib/dor/models/concerns/rightsable.rb', line 11 def build_rightsMetadata_datastream(ds) content_ds = admin_policy_object.datastreams['defaultObjectRights'] ds.dsLabel = 'Rights Metadata' ds.ng_xml = content_ds.ng_xml.clone end |
#world_doc ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/dor/models/concerns/rightsable.rb', line 17 def world_doc Nokogiri::XML::Builder.new do |xml| xml.access(type: 'read') do xml.machine { xml.world } end end.doc end |