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

Version Path
active-fedora-8.7.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.6.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.5.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.4.2 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.4.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-7.3.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-7.3.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.4.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.3.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.2.2 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.2.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.2.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-7.2.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-6.8.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.1.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.0.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.0.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-8.0.0.rc3 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-9.0.0.beta8 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-9.0.0.beta7 lib/generators/active_fedora/model/templates/datastream.rb.erb