Sha256: 9a82b24805b97c69e6bad8d38ae3189198a37ca4195518b12403fc67860e4f79

Contents?: true

Size: 792 Bytes

Versions: 23

Compression:

Stored size: 792 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/samvera/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

23 entries across 23 versions & 2 rubygems

Version Path
active-fedora-15.0.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-15.0.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-14.0.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-14.0.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.3.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-12.2.4 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.2.7 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.2.5 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.2.4 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-12.2.3 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.2.3 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.2.2 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.2.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.1.3 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-12.2.2 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-12.2.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.1.2 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.1.1 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.1.0 lib/generators/active_fedora/model/templates/datastream.rb.erb
active-fedora-13.0.0 lib/generators/active_fedora/model/templates/datastream.rb.erb