Sha256: a89fefdc33f9a0a2c2a764c1643b2970c4cb4c9d442a4b9893cb8ec935ea19e4
Contents?: true
Size: 797 Bytes
Versions: 90
Compression:
Stored size: 797 Bytes
Contents
# Generated via # `rails generate active_fedora:model <%= class_name %>` class <%= class_name %>Metadata < ActiveFedora::OmDatastream # Define a terminology for parsing this XML document # See: https://github.com/projecthydra/om/wiki/Tame-your-XML-with-OM # # set_terminology do |t| # t.root(path: "fields") # t.title # t.author # end # Describe what an empty document looks like # # def self.xml_template # Nokogiri::XML.parse("<fields/>") # end # # "If you need to add additional attributes to the SOLR document, define the # #to_solr method and make sure to use super" # # def to_solr(solr_document={}, options={}) # super(solr_document, options) # solr_document["my_attribute_s"] = my_attribute # return solr_document # end end
Version data entries
90 entries across 90 versions & 1 rubygems