Sha256: 4729db835c0b4fd60e79d0b944582d7df701295531d592d7733a05bc2f855120
Contents?: true
Size: 1.55 KB
Versions: 3
Compression:
Stored size: 1.55 KB
Contents
module Dor class DescMetadataDS < ActiveFedora::OmDatastream MODS_NS = 'http://www.loc.gov/mods/v3' set_terminology do |t| t.root :path => 'mods', :xmlns => MODS_NS, :index_as => [:not_searchable] t.originInfo :index_as => [:not_searchable] do t.publisher :index_as => [:stored_searchable] t.date_created :path => 'dateCreated', :index_as => [:stored_searchable] t.place :index_as => [:not_searchable] do t.placeTerm :attributes => {:type => 'text'}, :index_as => [:stored_searchable] end end t.subject(:index_as => [:not_searchable]) do t.geographic :index_as => [:stored_searchable] t.topic :index_as => [:stored_searchable] t.temporal :index_as => [:stored_searchable] end t.title_info(:path=>"titleInfo") { t.main_title(:index_as=>[:facetable], :path=>"title", :label=>"title") { t.main_title_lang(:path=>{:attribute=> "xml:lang"}) } } t.coordinates :index_as => [:searchable] t.extent :index_as => [:searchable] t.scale :index_as => [:searchable] t.topic :index_as => [:stored_searchable] t.abstract :index_as => [:stored_searchable] end 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dor-services-5.1.0 | lib/dor/datastreams/desc_metadata_ds.rb |
dor-services-5.0.2 | lib/dor/datastreams/desc_metadata_ds.rb |
dor-services-5.0.1 | lib/dor/datastreams/desc_metadata_ds.rb |