Class: Dor::DescMetadataDS
- Inherits:
-
ActiveFedora::OmDatastream
- Object
- ActiveFedora::OmDatastream
- Dor::DescMetadataDS
- Defined in:
- lib/dor/datastreams/desc_metadata_ds.rb
Constant Summary collapse
- MODS_NS =
'http://www.loc.gov/mods/v3'.freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#prefix ⇒ Object
maintain AF < 8 indexing behavior.
Class Method Details
.xml_template ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/dor/datastreams/desc_metadata_ds.rb', line 38 def self.xml_template Nokogiri::XML::Builder.new do |xml| xml.mods( 'xmlns' => MODS_NS, 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', :version => '3.3', 'xsi:schemaLocation' => 'http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd') { xml.titleInfo { xml.title } } end.doc end |
Instance Method Details
#prefix ⇒ Object
maintain AF < 8 indexing behavior
51 52 53 |
# File 'lib/dor/datastreams/desc_metadata_ds.rb', line 51 def prefix '' end |