Sha256: 864601da9e40d0533f2b8e17d8748303a16d785b0ba097ca559af6e8b944c60f
Contents?: true
Size: 798 Bytes
Versions: 70
Compression:
Stored size: 798 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
70 entries across 70 versions & 1 rubygems