Class: HydraPbcore::Datastream::Document
- Inherits:
-
ActiveFedora::OmDatastream
- Object
- ActiveFedora::OmDatastream
- HydraPbcore::Datastream::Document
- Defined in:
- lib/hydra_pbcore/datastream/document.rb
Direct Known Subclasses
Class Method Summary collapse
Methods included from Templates
#digital_instantiation, #insert_contributor, #insert_creator, #insert_date, #insert_identifier, #insert_next, #insert_place, #insert_previous, #insert_publisher, #insert_relation, #is_part_of, #physical_instantiation
Methods included from Methods
#get_year, #remove_node, #to_pbcore_xml, #valid?
Class Method Details
.xml_template ⇒ Object
167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
# File 'lib/hydra_pbcore/datastream/document.rb', line 167 def self.xml_template builder = Nokogiri::XML::Builder.new do |xml| xml.pbcoreDescriptionDocument("xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance", "xsi:schemaLocation"=>"http://www.pbcore.org/PBCore/PBCoreNamespace.html") { xml.pbcoreTitle(:titleType=>"Main") xml.pbcoreDescription(:descriptionType=>"Description", :descriptionTypeSource=>"pbcoreDescription/descriptionType", :descriptionTypeRef=>"http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#description", :annotation=>"Summary" ) xml.pbcoreDescription(:descriptionType=>"Table of Contents", :descriptionTypeSource=>"pbcoreDescription/descriptionType", :descriptionTypeRef=>"http://pbcore.org/vocabularies/pbcoreDescription/descriptionType#table-of-contents", :annotation=>"Parts List" ) xml.pbcoreRightsSummary { xml.rightsSummary } xml.pbcoreAnnotation(:annotationType=>"Notes") } end return builder.doc end |