Sha256: 8a86cba0280897e7b656de85bcb2c65191c4402f31d93258a9acae161b87028b
Contents?: true
Size: 1.44 KB
Versions: 55
Compression:
Stored size: 1.44 KB
Contents
# Generated via # `rails generate active_fedora:model <%= class_name %>` class <%= class_name %> < ActiveFedora::Base <% if options['datastream'] %> has_subresource :descMetadata, class_name: "<%= options['datastream'] %>" <% else %> # Define some properties to store: # property :title, predicate: ::RDF::Vocab::DC.title do |index| index.as :stored_searchable, :facetable end property :creator, predicate: ::RDF::Vocab::DC.creator do |index| index.as :stored_searchable, :facetable end property :contributor, predicate: ::RDF::Vocab::DC.contributor do |index| index.as :stored_searchable, :facetable end property :description, predicate: ::RDF::Vocab::DC.description do |index| index.as :stored_searchable end <%- end -%> <% if options['has_subresource'] %> has_subresource :<%= options['has_subresource'] %>" <% else %> # Uncomment the following lines to add an #attachment method that is a file # # has_subresource "attachment" <% end %> # # If you need to add additional attributes to the SOLR document, extend the default indexer: # # def indexer # MyApp::IndexingService # end # # This can go into app/services/my_app/indexing_service.rb # module MyApp # class IndexingService < ActiveFedora::IndexingService # def generate_solr_document # super.tap do |solr_doc| # solr_doc["my_attribute_s"] = object.my_attribute # end # end # end # end end
Version data entries
55 entries across 55 versions & 2 rubygems