Sha256: 79cd295174a8cd15b46b2f0001f75087b534341e45500399e70acbc8643af7e6
Contents?: true
Size: 1.32 KB
Versions: 2
Compression:
Stored size: 1.32 KB
Contents
module Dor class DefaultObjectRightsDS < ActiveFedora::OmDatastream set_terminology do |t| t.root :path => 'rightsMetadata', :index_as => [:not_searchable] t.copyright :path => 'copyright/human', :index_as => [:symbol] t.use_statement :path => '/use/human[@type=\'useAndReproduction\']', :index_as => [:symbol] t.use do t.machine t.human end t.creative_commons :path => '/use/machine', :type => 'creativeCommons' t.creative_commons_human :path => '/use/human[@type=\'creativeCommons\']' end define_template :creative_commons do |xml| xml.use { xml.human(:type => "creativeCommons") xml.machine(:type => "creativeCommons") } end def self.xml_template Nokogiri::XML::Builder.new do |xml| xml.rightsMetadata{ 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dor-services-5.2.0 | lib/dor/datastreams/default_object_rights_ds.rb |
dor-services-5.1.1 | lib/dor/datastreams/default_object_rights_ds.rb |