Class: Dor::AdministrativeMetadataDS

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.xml_templateObject


90
91
92
93
94
# File 'lib/dor/datastreams/administrative_metadata_ds.rb', line 90

def self.xml_template
  Nokogiri::XML::Builder.new do |xml|
    xml.{ }
  end.doc
end

Instance Method Details

#default_shelving_pathObject


113
114
115
# File 'lib/dor/datastreams/administrative_metadata_ds.rb', line 113

def default_shelving_path
  self.defaults.shelving.path.first
end

#default_shelving_path=(path) ⇒ Object


109
110
111
# File 'lib/dor/datastreams/administrative_metadata_ds.rb', line 109

def default_shelving_path= path
  self.defaults.shelving.path = path
end

#default_workflow_laneObject


105
106
107
# File 'lib/dor/datastreams/administrative_metadata_ds.rb', line 105

def default_workflow_lane
  self.defaults.initiate_workflow.lane.first
end

#default_workflow_lane=(lane) ⇒ Object

Convenience methods to get and set properties Hides complexity/verbosity of OM TermOperators for simple, non-repeating values


101
102
103
# File 'lib/dor/datastreams/administrative_metadata_ds.rb', line 101

def default_workflow_lane= lane
  self.defaults.initiate_workflow.lane = lane
end