Class: Dor::DescMetadataDS

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

Constant Summary collapse

MODS_NS =
'http://www.loc.gov/mods/v3'

Class Method Summary collapse

Methods included from SolrDocHelper

#add_solr_value

Class Method Details

.xml_templateObject


26
27
28
29
30
31
32
33
34
# File 'lib/dor/datastreams/desc_metadata_ds.rb', line 26

def self.xml_template
  Nokogiri::XML::Builder.new do |xml|
    xml.mods( 'xmlns' => 'http://www.loc.gov/mods/v3', '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