Sha256: d84adc97a6d4a6e5e6fe4b8cdd60c27f307d9a685bac65746b4f62dd82d8fb4a

Contents?: true

Size: 883 Bytes

Versions: 14

Compression:

Stored size: 883 Bytes

Contents

# frozen_string_literal: true

# Represents a single document returned from Solr
class <%= model_name.classify %>
  include Blacklight::Solr::Document

  # self.unique_key = 'id'

  # Email uses the semantic field mappings below to generate the body of an email.
  SolrDocument.use_extension(Blacklight::Document::Email)

  # SMS uses the semantic field mappings below to generate the body of an SMS email.
  SolrDocument.use_extension(Blacklight::Document::Sms)

  # DublinCore uses the semantic field mappings below to assemble an OAI-compliant Dublin Core document
  # Semantic mappings of solr stored fields. Fields may be multi or
  # single valued. See Blacklight::Document::SemanticFields#field_semantics
  # and Blacklight::Document::SemanticFields#to_semantic_values
  # Recommendation: Use field names from Dublin Core
  use_extension(Blacklight::Document::DublinCore)
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
blacklight-7.40.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.39.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.38.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/lib/generators/blacklight/templates/solr_document.rb
blacklight-7.37.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.36.2 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.36.1 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.36.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.35.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-7.34.0 lib/generators/blacklight/templates/solr_document.rb
blacklight-8.0.0.beta4 lib/generators/blacklight/templates/solr_document.rb
blacklight-8.0.0.beta3 lib/generators/blacklight/templates/solr_document.rb
blacklight-8.0.0.beta2 lib/generators/blacklight/templates/solr_document.rb
blacklight-8.0.0.beta1 lib/generators/blacklight/templates/solr_document.rb