Sha256: 174eebfa79e6bbbb3f38a89ef5e1242d535de2713f8e6d42485ee0b2266c6c90

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 Bytes

Contents

class OpinionatedModsDocument < Nokogiri::XML::Document
  
  include OM::XML      
     
  self.schema_url = "http://www.loc.gov/standards/mods/v3/mods-3-2.xsd"
  
  # Could add support for multiple root declarations.  
  #  For now, assume that any modsCollections have already been broken up and fed in as individual mods documents
  # root :mods_collection, :path=>"modsCollection", 
  #           :attributes=>[],
  #           :subelements => :mods
  root_property :mods, "mods", "http://www.loc.gov/mods/v3", :attributes=>["id", "version"]          
            
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
active-fedora-1.1.8 lib/hydra/opinionated_mods_document.rb
active-fedora-1.1.7 lib/hydra/opinionated_mods_document.rb