Sha256: 69deb3d36550af946867651c18ec5b1f4248e6d870ec3d23d8c4b5d1963df3c3

Contents?: true

Size: 848 Bytes

Versions: 3

Compression:

Stored size: 848 Bytes

Contents

# frozen_string_literal: true
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

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-6.0.2 lib/generators/blacklight/templates/solr_document.rb
blacklight-6.0.1 lib/generators/blacklight/templates/solr_document.rb
blacklight-6.0.0 lib/generators/blacklight/templates/solr_document.rb